Skip to content

Commit

Permalink
forgot to check polymod's code 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Sep 24, 2024
1 parent 39374f4 commit 3c4c39a
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions source/funkin/modding/PolymodHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -227,30 +227,30 @@ class PolymodHandler
{
// Add default imports for common classes.

Polymod.addDefaultImport('funkin.util.ReflectUtil', 'Type');
Polymod.addDefaultImport('funkin.modding.module.Module');
Polymod.addDefaultImport('funkin.play.PlayState');
Polymod.addDefaultImport('funkin.play.event.SongEvent');
Polymod.addDefaultImport('Std');
Polymod.addDefaultImport('Math');
Polymod.addDefaultImport('flixel.FlxG');
Polymod.addDefaultImport('funkin.modding.module.ModuleHandler');
Polymod.addDefaultImport('funkin.Paths');
Polymod.addDefaultImport('funkin.Preferences');
Polymod.addDefaultImport('haxe.Json');
Polymod.addDefaultImport('lime.app.Application');
Polymod.addDefaultImport('flixel.FlxSprite');
Polymod.addDefaultImport('funkin.graphics.FunkinSprite');
Polymod.addDefaultImport('flixel.FlxBasic');
Polymod.addDefaultImport('flixel.tweens.FlxEase');
Polymod.addDefaultImport('flixel.tweens.FlxTween');
Polymod.addDefaultImport('flixel.system.FlxAssets');
Polymod.addDefaultImport('flixel.math.FlxMath');
Polymod.addDefaultImport('flixel.group.FlxGroup');
Polymod.addDefaultImport('flixel.group.FlxGroup.FlxTypedGroup');
Polymod.addDefaultImport('flixel.group.FlxSpriteGroup');
Polymod.addDefaultImport('flixel.text.FlxText');
Polymod.addDefaultImport('flixel.util.FlxTimer');
Polymod.addDefaultImport(funkin.util.ReflectUtil, 'Type');
Polymod.addDefaultImport(funkin.modding.module.Module);
Polymod.addDefaultImport(funkin.play.PlayState);
Polymod.addDefaultImport(funkin.play.event.SongEvent);
Polymod.addDefaultImport(Std);
Polymod.addDefaultImport(Math);
Polymod.addDefaultImport(flixel.FlxG);
Polymod.addDefaultImport(funkin.modding.module.ModuleHandler);
Polymod.addDefaultImport(funkin.Paths);
Polymod.addDefaultImport(funkin.Preferences);
Polymod.addDefaultImport(haxe.Json);
Polymod.addDefaultImport(lime.app.Application);
Polymod.addDefaultImport(flixel.FlxSprite);
Polymod.addDefaultImport(funkin.graphics.FunkinSprite);
Polymod.addDefaultImport(flixel.FlxBasic);
Polymod.addDefaultImport(flixel.tweens.FlxEase);
Polymod.addDefaultImport(flixel.tweens.FlxTween);
Polymod.addDefaultImport(flixel.system.FlxAssets);
Polymod.addDefaultImport(flixel.math.FlxMath);
Polymod.addDefaultImport(flixel.group.FlxGroup);
Polymod.addDefaultImport(flixel.group.FlxGroup.FlxTypedGroup);
Polymod.addDefaultImport(flixel.group.FlxSpriteGroup);
Polymod.addDefaultImport(flixel.text.FlxText);
Polymod.addDefaultImport(flixel.util.FlxTimer);

// Add import aliases for certain classes.
// NOTE: Scripted classes are automatically aliased to their parent class.
Expand All @@ -276,8 +276,8 @@ class PolymodHandler

// `Type`
// Type.createInstance(Type.resolveClass()) can access blacklisted packages
// Polymod.blacklistImport('Type');
Polymod.addDefaultImport(Type);
Polymod.blacklistImport('Type');
// Polymod.addDefaultImport(Type);

// `cpp.Lib`
// Lib.load() can load malicious DLLs
Expand Down

0 comments on commit 3c4c39a

Please sign in to comment.