mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
path_userdata is now created before potentially creating debug.txt in there
This commit is contained in:
parent
bdd1375011
commit
051c0048d8
@ -1140,6 +1140,9 @@ int main(int argc, char *argv[])
|
|||||||
// Initialize porting::path_data and porting::path_userdata
|
// Initialize porting::path_data and porting::path_userdata
|
||||||
porting::initializePaths();
|
porting::initializePaths();
|
||||||
|
|
||||||
|
// Create user data directory
|
||||||
|
fs::CreateDir(porting::path_userdata);
|
||||||
|
|
||||||
// Initialize debug streams
|
// Initialize debug streams
|
||||||
#ifdef RUN_IN_PLACE
|
#ifdef RUN_IN_PLACE
|
||||||
std::string debugfile = DEBUGFILE;
|
std::string debugfile = DEBUGFILE;
|
||||||
@ -1152,9 +1155,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
DSTACK(__FUNCTION_NAME);
|
DSTACK(__FUNCTION_NAME);
|
||||||
|
|
||||||
// Create user data directory
|
|
||||||
fs::CreateDir(porting::path_userdata);
|
|
||||||
|
|
||||||
// Init material properties table
|
// Init material properties table
|
||||||
//initializeMaterialProperties();
|
//initializeMaterialProperties();
|
||||||
|
|
||||||
|
@ -139,6 +139,9 @@ int main(int argc, char *argv[])
|
|||||||
// Initialize porting::path_data and porting::path_userdata
|
// Initialize porting::path_data and porting::path_userdata
|
||||||
porting::initializePaths();
|
porting::initializePaths();
|
||||||
|
|
||||||
|
// Create user data directory
|
||||||
|
fs::CreateDir(porting::path_userdata);
|
||||||
|
|
||||||
// Initialize debug streams
|
// Initialize debug streams
|
||||||
#ifdef RUN_IN_PLACE
|
#ifdef RUN_IN_PLACE
|
||||||
std::string debugfile = DEBUGFILE;
|
std::string debugfile = DEBUGFILE;
|
||||||
|
Loading…
Reference in New Issue
Block a user