Import Redirects + fix videos not able to be longer than 25 days
This commit is contained in:
@@ -96,6 +96,18 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
"BitmapUtil" => funkin.backend.utils.BitmapUtil,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Used internally to keep backwards compatability with old scripts.
|
||||
* This gets set on `hscript.Interp.importRedirects`,
|
||||
* if you wanna modify it, please edit `hscript.Interp.importRedirects` directly.
|
||||
**/
|
||||
public static function getDefaultImportRedirects():Map<String, String> {
|
||||
return [
|
||||
"Meow" => "funkin.backend.utils.CoolUtil",
|
||||
];
|
||||
}
|
||||
|
||||
public static function getDefaultPreprocessors():Map<String, Dynamic> {
|
||||
var defines = funkin.backend.system.macros.DefinesMacro.defines;
|
||||
defines.set("CODENAME_ENGINE", true);
|
||||
|
||||
Reference in New Issue
Block a user