mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-03-03 10:31:06 +00:00
Use MACOS_BUNDLE def properly
This commit is contained in:
parent
c1b98e6a32
commit
6e011ad799
2 changed files with 11 additions and 1 deletions
|
|
@ -20,7 +20,11 @@ import src.ResourceLoaderWorker;
|
|||
|
||||
class ResourceLoader {
|
||||
#if (hl && !android)
|
||||
public static var fileSystem:FileSystem = new LocalFileSystem(Path.normalize(Path.join([Path.directory(Sys.programPath()), "..", "..", ".."])), null);
|
||||
#if MACOS_BUNDLE
|
||||
public static var fileSystem:FileSystem = new TorqueFileSystem(Path.normalize(Path.join([Path.directory(Sys.programPath()), "..", "..", ".."])), null);
|
||||
#else
|
||||
public static var fileSystem:FileSystem = new TorqueFileSystem(".", null);
|
||||
#end
|
||||
#end
|
||||
#if (js || android)
|
||||
public static var fileSystem:FileSystem = null;
|
||||
|
|
|
|||
|
|
@ -116,7 +116,13 @@ class Settings {
|
|||
|
||||
public static var isTouch:Option<Bool> = Option.None;
|
||||
|
||||
#if hl
|
||||
#if MACOS_BUNDLE
|
||||
public static var settingsDir = Path.join([Sys.getEnv("HOME"), "Library", "Application Support", "MBHaxe-MBG"]);
|
||||
#else
|
||||
public static var settingsDir = ".";
|
||||
#end
|
||||
#end
|
||||
|
||||
public static function applySettings() {
|
||||
#if hl
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue