mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Flatten share/ and user/ in the source and for the RUN_IN_PLACE build
This commit is contained in:
parent
19ed3bb193
commit
97b693052c
122 changed files with 57 additions and 43 deletions
|
@ -124,12 +124,7 @@ std::vector<WorldSpec> getAvailableWorlds()
|
|||
}
|
||||
// Check old world location
|
||||
do{
|
||||
#ifdef RUN_IN_PLACE
|
||||
std::string fullpath = porting::path_user + DIR_DELIM + ".."
|
||||
+ DIR_DELIM + "world";
|
||||
#else
|
||||
std::string fullpath = porting::path_user + DIR_DELIM + "world";
|
||||
#endif
|
||||
if(!fs::PathExists(fullpath))
|
||||
break;
|
||||
std::string name = "Old World";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue