diff --git a/source/funkin/backend/system/macros/ScriptsMacro.hx b/source/funkin/backend/system/macros/ScriptsMacro.hx index 555dc8c1..013d58b6 100644 --- a/source/funkin/backend/system/macros/ScriptsMacro.hx +++ b/source/funkin/backend/system/macros/ScriptsMacro.hx @@ -38,9 +38,6 @@ class ScriptsMacro { Compiler.include("funkin", #if !UPDATE_CHECKING ['funkin.backend.system.updating'] #end); - // FOR ABSTRACTS - Compiler.addGlobalMetadata('haxe.xml', '@:build(hscript.UsingHandler.build())'); - Compiler.addGlobalMetadata('haxe.CallStack', '@:build(hscript.UsingHandler.build())'); #if HL HashLinkFixer.init(); #end // Todo rewrite this to use if(Context.defined("")) } diff --git a/source/hscript/Config.hx b/source/hscript/Config.hx new file mode 100644 index 00000000..bba205c5 --- /dev/null +++ b/source/hscript/Config.hx @@ -0,0 +1,31 @@ +package hscript; + +class Config { + // Runs support for custom classes in these + public static final ALLOWED_CUSTOM_CLASSES = [ + "flixel", + + "funkin", + ]; + + // Runs support for abstract support in these + public static final ALLOWED_ABSTRACT_AND_ENUM = [ + "flixel", + "openfl.display.BlendMode", + + "haxe.xml", + "haxe.CallStack", + "funkin", + ]; + + // Incase any of your files fail + // These are the module names + public static final DISALLOW_CUSTOM_CLASSES = [ + + ]; + + public static final DISALLOW_ABSTRACT_AND_ENUM = [ + "funkin.backend.FunkinSprite", // Error: String has no field trim, Due to Func + "funkin.backend.scripting.events.PlayAnimEvent", // Error: expected member name or ';' after declaration specifiers, Due to Func + ]; +} \ No newline at end of file