Fix a crash when HARDCODED_CREDITS is disabled.

This commit is contained in:
Sphis-Sinco
2025-10-13 20:15:39 -06:00
committed by Hundrec
parent 987b3846ef
commit 4366fbe512
+5
View File
@@ -1385,6 +1385,11 @@ class Project extends HXProject
addAssetLibrary("default", shouldEmbed, shouldPreloadDefault);
addAssetPath("assets/preload", "assets", "default", ["*"], exclude, shouldEmbed, "assets");
if (!HARDCODED_CREDITS.isEnabled(this))
{
addAsset("assets/exclude/data/credits.json", "assets/data/credits.json", "default", shouldEmbed);
}
if (!FEATURE_ANIMATION_EDITOR.isEnabled(this))
removeAssetPath('assets/preload/data/ui/animation-editor', "default");