Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Harmony/Harmony_GamePrefs.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

23 lines
564 B
C#

namespace Harmony.GamePrefsPatches
{
[HarmonyPatch(typeof(GamePrefs))]
[HarmonyPatch("SetObjectInternal")]
public class SetObjectInternalPatch
{
public static bool Prefix(GamePrefs __instance, EnumGamePrefs _eProperty, object _value,
object[] ___propertyValues
)
{
int num = (int)_eProperty;
if (num >= ___propertyValues.Length)
{
return false;
}
return true;
}
}
}