Skip to content

Commit

Permalink
Fix serverlist on -DRUN_IN_PLACE=0 (use path_user instead of path_share)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeg9 authored and PilzAdam committed Apr 25, 2013
1 parent 88ffb3f commit c33b993
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/serverlist.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ std::string getFilePath()
{ {
std::string serverlist_file = g_settings->get("serverlist_file"); std::string serverlist_file = g_settings->get("serverlist_file");


std::string rel_path = std::string("client") + DIR_DELIM std::string dir_path = std::string("client") + DIR_DELIM
+ "serverlist" + DIR_DELIM + "serverlist" + DIR_DELIM;
+ serverlist_file; fs::CreateDir(porting::path_user + DIR_DELIM + "client");
std::string path = porting::path_share + DIR_DELIM + rel_path; 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; return path;
} }


Expand Down

0 comments on commit c33b993

Please sign in to comment.