ManifestResources: if disable_preloader_assets is defined, keep the public API available
Ensures that existing custom templates still work
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#if !disable_preloader_assets
|
||||
package;
|
||||
|
||||
|
||||
import haxe.io.Bytes;
|
||||
import lime.utils.AssetBundle;
|
||||
import lime.utils.AssetLibrary;
|
||||
@@ -12,6 +10,18 @@ import lime.utils.Assets;
|
||||
import sys.FileSystem;
|
||||
#end
|
||||
|
||||
#if disable_preloader_assets
|
||||
@:dox(hide) class ManifestResources {
|
||||
public static var preloadLibraries:Array<AssetLibrary>;
|
||||
public static var preloadLibraryNames:Array<String>;
|
||||
public static var rootPath:String;
|
||||
|
||||
public static function init (config:Dynamic):Void {
|
||||
preloadLibraries = new Array ();
|
||||
preloadLibraryNames = new Array ();
|
||||
}
|
||||
}
|
||||
#else
|
||||
@:access(lime.utils.Assets)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user