Skip to content
Snippets Groups Projects
Commit c33b9933 authored by Zeg9's avatar Zeg9 Committed by PilzAdam
Browse files

Fix serverlist on -DRUN_IN_PLACE=0 (use path_user instead of path_share)

parent 88ffb3f7
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,12 @@ std::string getFilePath()
{
std::string serverlist_file = g_settings->get("serverlist_file");
std::string rel_path = std::string("client") + DIR_DELIM
+ "serverlist" + DIR_DELIM
+ serverlist_file;
std::string path = porting::path_share + DIR_DELIM + rel_path;
std::string dir_path = std::string("client") + DIR_DELIM
+ "serverlist" + DIR_DELIM;
fs::CreateDir(porting::path_user + DIR_DELIM + "client");
fs::CreateDir(porting::path_user + DIR_DELIM + dir_path);
std::string rel_path = dir_path + serverlist_file;
std::string path = porting::path_user + DIR_DELIM + rel_path;
return path;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment