using HarmonyLib;\r
using System.IO;\r
using UnityEngine;\r
+using Steamworks;\r
+\r
+static class RetroAchievements\r
+{\r
+ public static uint AppID = 960690u;\r
+};\r
\r
// We don't actually care much about hooking LoadItemData, but it's\r
// called soon after mods are loaded, so it gives us an early entrypoint\r
static EntryPoint()\r
{\r
Debug.Log("Hello World!");\r
+#if false\r
+ // This is a way to restart the app immediately through steam\r
+ // Useful for restarting when user wants to switch to hardcore mode\r
+ Application.OpenURL("steam://run/" + RetroAchievements.AppID);\r
+ Application.Quit();\r
+#endif\r
} \r
static void Prefix() {}\r
}\r