Minor tweak
This commit is contained in:
@@ -159,7 +159,9 @@ class HXProject {
|
||||
}
|
||||
|
||||
} else if (target == Platform.TVOS) {
|
||||
|
||||
architectures = [ Architecture.ARM64 ];
|
||||
|
||||
} else {
|
||||
|
||||
architectures = [ Architecture.ARMV6 ];
|
||||
|
||||
@@ -239,12 +239,6 @@ class MacPlatform extends PlatformTarget {
|
||||
|
||||
}
|
||||
|
||||
if (targetFlags.exists("tvos")) {
|
||||
|
||||
commands.push ([ "-Dtvos", "-Dtoolchain=appletvos", "-DBINDIR=AppleTV" ]);
|
||||
|
||||
}
|
||||
|
||||
CPPHelper.rebuild (project, commands);
|
||||
|
||||
}
|
||||
|
||||
@@ -315,15 +315,14 @@ class DefaultAssetLibrary extends AssetLibrary {
|
||||
#else
|
||||
|
||||
if (className.exists (id)) {
|
||||
|
||||
var fontClass = className.get (id);
|
||||
return cast (Type.createInstance (fontClass, []), Image);
|
||||
|
||||
} else {
|
||||
#if tvos
|
||||
return Image.fromFile ("assets/" + path.get (id));
|
||||
#else
|
||||
|
||||
return Image.fromFile (path.get (id));
|
||||
#end
|
||||
|
||||
}
|
||||
|
||||
#end
|
||||
@@ -712,7 +711,7 @@ class DefaultAssetLibrary extends AssetLibrary {
|
||||
|
||||
if (!className.exists (asset.id)) {
|
||||
|
||||
#if ios || tvos
|
||||
#if (ios || tvos)
|
||||
path.set (asset.id, "assets/" + asset.path);
|
||||
#else
|
||||
path.set (asset.id, asset.path);
|
||||
|
||||
@@ -759,7 +759,7 @@ class CommandLineTools {
|
||||
LogHelper.println (" \x1b[1mlinux\x1b[0m -- Create a Linux application");
|
||||
LogHelper.println (" \x1b[1mmac\x1b[0m -- Create a Mac OS X application");
|
||||
LogHelper.println (" \x1b[1mtizen\x1b[0m -- Create a Tizen application");
|
||||
LogHelper.println (" \x1b[1mtvos\x1b[0m -- Create an AppleTVOS application");
|
||||
LogHelper.println (" \x1b[1mtvos\x1b[0m -- Create a tvOS application");
|
||||
LogHelper.println (" \x1b[1mwebos\x1b[0m -- Create a webOS application");
|
||||
LogHelper.println (" \x1b[1mwindows\x1b[0m -- Create a Windows application");
|
||||
LogHelper.println ("");
|
||||
|
||||
Reference in New Issue
Block a user