internal static void GameSpecificSetup(Harmony harmony) { Assert.IsNotNull(harmony); SceneManager.activeSceneChanged += SceneChanged; ExtendedSave.CardBeingSaved += CardBeingSaved; TranslationHelper.CardTranslationBehaviorChanged += TranslationHelperCardTranslationBehaviorChanged; CharaFileInfoWrapper.RegisterWrapperType(typeof(CustomFileInfo), typeof(CustomFileInfoWrapper)); if (KoikatuAPI.IsSteamRelease()) { Party.Hooks.Setup(); } else { Standard.Hooks.Setup(); } }
internal static void Setup() { CharaFileInfoWrapper.RegisterWrapperType(typeof(CustomFileInfo), typeof(CustomFileInfoWrapper)); Harmony.CreateAndPatchAll(typeof(Hooks)); }