summarylogtreecommitdiffstats
path: root/motogt-init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'motogt-init.patch')
-rw-r--r--motogt-init.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/motogt-init.patch b/motogt-init.patch
new file mode 100644
index 00000000000..c19ef381ba9
--- /dev/null
+++ b/motogt-init.patch
@@ -0,0 +1,15 @@
+diff -urN MotoGT/src/main.cpp MotoGT-patched/src/main.cpp
+--- MotoGT/src/main.cpp 2011-01-18 13:50:57.000000000 +1000
++++ MotoGT-patched/src/main.cpp 2012-02-29 19:58:39.000000000 +1100
+@@ -82,7 +82,10 @@
+ }
+ #endif
+ if (home_dir.size()&&home_dir[home_dir.size()]!='/'&&home_dir[home_dir.size()]!='\\') home_dir+=SLASH;
+- home_dir+=".motogt"; system((string("mkdir \"")+home_dir+"\"").c_str()); home_dir+=SLASH;
++ home_dir+=".motogt";
++ system((string("mkdir \"")+home_dir+"\"").c_str());
++ system((string("touch \"")+home_dir+"\""+SLASH+"settings.lst").c_str());
++ home_dir+=SLASH;
+
+ config = new Config();
+ if (argc==2 && string(argv[1])=="--nosound") {