mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
Fix serverlist on -DRUN_IN_PLACE=0 (use path_user instead of path_share)
This commit is contained in:
parent
88ffb3f73b
commit
c33b993397
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user