mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-17 19:51:06 +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;
|
||||
|
||||
import sys.FileSystem;
|
||||
import mis.MisParser;
|
||||
import src.Settings;
|
||||
import src.Debug;
|
||||
|
|
@ -37,6 +38,9 @@ class Console {
|
|||
consumers = [];
|
||||
timeSinceStart = haxe.Timer.stamp();
|
||||
#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);
|
||||
#end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue