33306c9f5e
Adds a Quick Restart and Quick exit to Select Song patch as well as a patch to load saves offline. and of course, credit to Lukino for that offline saving patch.
17 lines
780 B
C#
17 lines
780 B
C#
using HarmonyLib;
|
|
|
|
namespace TaikoModStuff
|
|
{
|
|
[HarmonyPatch]
|
|
public class OfflineSaveLoad
|
|
{
|
|
[HarmonyPatch(typeof(GameTitleManager), "Start")]
|
|
[HarmonyPostfix]
|
|
private static void BootManager_Postfix(GameTitleManager __instance)
|
|
{
|
|
TaikoSingletonMonoBehaviour<CommonObjects>.Instance.MyDataManager.PlayData.LoadData("x_game_save_default_container", "save_data_blob");
|
|
TaikoSingletonMonoBehaviour<CommonObjects>.Instance.MyDataManager.PlayData.LoadData("x_game_save_default_container", "system_data_blob");
|
|
TaikoSingletonMonoBehaviour<CommonObjects>.Instance.MySceneManager.ChangeScene("SongSelect", false);
|
|
}
|
|
}
|
|
} |