Tweak the blacklist a bit more and add back modOptions map
This commit is contained in:
@@ -403,9 +403,9 @@ class PolymodHandler
|
||||
|
||||
// `flixel.util.FlxSave`
|
||||
// resolveFlixelClasses() can access blacklisted packages
|
||||
Polymod.blacklistStaticFields(flixel.util.FlxSave, ['resolveFlixelClasses', 'save']);
|
||||
Polymod.blacklistStaticFields(flixel.util.FlxSave, ['resolveFlixelClasses']);
|
||||
// Disallow direct manipulation of save data.
|
||||
Polymod.blacklistInstanceFields(flixel.util.FlxSave, ['data']);
|
||||
Polymod.blacklistStaticFields(flixel.FlxG, ['save']);
|
||||
|
||||
// `funkin.save.Save`
|
||||
// Direct access to save data is important for scripts (like checking unlocks),
|
||||
|
||||
@@ -217,6 +217,16 @@ class Save implements ConsoleClass
|
||||
}
|
||||
#end
|
||||
|
||||
/**
|
||||
* NOTE: Modifications will not be saved without calling `Save.flush()`!
|
||||
*/
|
||||
public var modOptions(get, never):Map<String, Dynamic>;
|
||||
|
||||
function get_modOptions():Map<String, Dynamic>
|
||||
{
|
||||
return data.mods.modOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* The user's current volume setting.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user