Fix AssetManifest base path

This commit is contained in:
Joshua Granick
2017-02-26 14:06:11 -08:00
parent 6432c77f8c
commit 2d27cf1144
2 changed files with 5 additions and 2 deletions

View File

@@ -43,13 +43,15 @@ import sys.FileSystem;
}
Assets.defaultRootPath = rootPath;
var data, manifest, library;
::foreach assets::::if (type == "manifest")::::if (embed)::data = '::data::';
manifest = AssetManifest.parse (data, rootPath);
library = AssetLibrary.fromManifest (manifest);
Assets.registerLibrary ("::library::", library);
::else::Assets.libraryPaths["::library::"] = "::resourceName::";
::else::Assets.libraryPaths["::library::"] = rootPath + "::resourceName::";
::end::::end::::end::
::foreach libraries::::if (preload)::library = Assets.getLibrary ("::name::");