mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix old world search path for non-run-in-place build
This commit is contained in:
@@ -130,8 +130,12 @@ std::vector<WorldSpec> getAvailableWorlds()
|
|||||||
}
|
}
|
||||||
// Check old world location
|
// Check old world location
|
||||||
do{
|
do{
|
||||||
|
#ifdef RUN_IN_PLACE
|
||||||
std::string fullpath = porting::path_user + DIR_DELIM + ".."
|
std::string fullpath = porting::path_user + DIR_DELIM + ".."
|
||||||
+ DIR_DELIM + "world";
|
+ DIR_DELIM + "world";
|
||||||
|
#else
|
||||||
|
std::string fullpath = porting::path_user + DIR_DELIM + "world";
|
||||||
|
#endif
|
||||||
if(!fs::PathExists(fullpath))
|
if(!fs::PathExists(fullpath))
|
||||||
break;
|
break;
|
||||||
std::string name = "Old World";
|
std::string name = "Old World";
|
||||||
|
Reference in New Issue
Block a user