Decompiled source of SuperDisks v1.0.2

plugins/Superdisks.dll

Decompiled 16 hours ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("Superdisks")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Superdisks")]
[assembly: AssemblyTitle("Superdisks")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SuperDisks;

[BepInPlugin("com.AsperTheDog.SuperDisks", "SuperDisks", "1.0.2")]
public class InfiniteDiskPlugin : BaseUnityPlugin
{
	private void Awake()
	{
		Harmony.CreateAndPatchAll(typeof(AppSavePatch), (string)null);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"SuperDisks Mod Loaded.");
	}
}
[HarmonyPatch(typeof(App_SavePage))]
public class AppSavePatch
{
	[HarmonyPatch("AddSave")]
	[HarmonyPrefix]
	private static void Prefix(ref int capacity)
	{
		capacity *= 1000;
	}
}