mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-28 05:31:37 +00:00
actually create the directory for the game on mac when console starts
This commit is contained in:
parent
2121bf000c
commit
ce9532964b
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package src;
|
package src;
|
||||||
|
|
||||||
|
import sys.FileSystem;
|
||||||
import mis.MisParser;
|
import mis.MisParser;
|
||||||
import src.Settings;
|
import src.Settings;
|
||||||
import src.Debug;
|
import src.Debug;
|
||||||
|
|
@ -37,6 +38,9 @@ class Console {
|
||||||
consumers = [];
|
consumers = [];
|
||||||
timeSinceStart = haxe.Timer.stamp();
|
timeSinceStart = haxe.Timer.stamp();
|
||||||
#if hl
|
#if hl
|
||||||
|
if (!FileSystem.exists(Settings.settingsDir)) {
|
||||||
|
FileSystem.createDirectory(Settings.settingsDir);
|
||||||
|
}
|
||||||
consoleFileHandle = sys.io.File.write(haxe.io.Path.join([Settings.settingsDir, "console.log"]), false);
|
consoleFileHandle = sys.io.File.write(haxe.io.Path.join([Settings.settingsDir, "console.log"]), false);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue