mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix old world search path for non-run-in-place build
This commit is contained in:
parent
db5db587be
commit
2e0c0e9d89
1 changed files with 4 additions and 0 deletions
|
@ -130,8 +130,12 @@ 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