Skip to content

Commit

Permalink
Allow assets and manifests to be provided to lime pre-processed
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-espedal committed Jul 2, 2024
1 parent 6bd1a9b commit a6c418e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lime/tools/AssetHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ class AssetHelper

public static function processLibraries(project:HXProject, targetDirectory:String = null):Void
{
if(project.haxedefs.exists("custom_assets"))
{
return;
}

var hasManifest = new Map<String, Bool>();
var libraryMap = new Map<String, Bool>();

Expand Down Expand Up @@ -551,7 +556,7 @@ class AssetHelper
processPackedLibraries(project, targetDirectory);
}

if (project.assets.length == 0)
if (project.assets.length == 0 && !project.haxedefs.exists("custom_assets"))
{
project.haxedefs.set("disable_preloader_assets", "1");
}
Expand Down
5 changes: 5 additions & 0 deletions src/lime/tools/ProjectXMLParser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ class ProjectXMLParser extends HXProject

private function parseAssetsElement(element:Access, basePath:String = "", isTemplate:Bool = false):Void
{
if(!isTemplate && haxedefs.exists("custom_assets"))
{
return;
}

var path = "";
var embed:Null<Bool> = null;
var library = null;
Expand Down

0 comments on commit a6c418e

Please sign in to comment.