diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-20 18:04:49 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-20 18:04:49 +0300 |
commit | 051c0048d8068b8690eee70e5491751e12c0fa30 (patch) | |
tree | 688979c588aac46d380262772037628ba2e28326 /src/main.cpp | |
parent | bdd13750117ee7414932772fe00631154bac6814 (diff) | |
download | minetest-051c0048d8068b8690eee70e5491751e12c0fa30.tar.gz minetest-051c0048d8068b8690eee70e5491751e12c0fa30.tar.bz2 minetest-051c0048d8068b8690eee70e5491751e12c0fa30.zip |
path_userdata is now created before potentially creating debug.txt in there
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index ae52bc36d..be932cdf2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1140,6 +1140,9 @@ int main(int argc, char *argv[]) // Initialize porting::path_data and porting::path_userdata
porting::initializePaths();
+ // Create user data directory
+ fs::CreateDir(porting::path_userdata);
+
// Initialize debug streams
#ifdef RUN_IN_PLACE
std::string debugfile = DEBUGFILE;
@@ -1152,9 +1155,6 @@ int main(int argc, char *argv[]) DSTACK(__FUNCTION_NAME);
- // Create user data directory
- fs::CreateDir(porting::path_userdata);
-
// Init material properties table
//initializeMaterialProperties();
|