2022-05-24 11:09:00 +02:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
|
|
|
|
|
namespace TaikoModStuff
|
|
|
|
|
{
|
2022-04-14 03:00:58 +02:00
|
|
|
|
[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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|