From: misomosi Date: Mon, 18 May 2026 20:06:19 +0000 (-0400) Subject: Add a way to restart the game through steam X-Git-Url: http://git.misomosispi.com/?a=commitdiff_plain;h=8fe06cd1ed75738503c582b7de60131bea4bc1ed;p=radev.git Add a way to restart the game through steam --- diff --git a/OSFE/RetroAchievements.cs b/OSFE/RetroAchievements.cs index dd96cb5..b4a0dbd 100644 --- a/OSFE/RetroAchievements.cs +++ b/OSFE/RetroAchievements.cs @@ -1,6 +1,12 @@ using HarmonyLib; using System.IO; using UnityEngine; +using Steamworks; + +static class RetroAchievements +{ + public static uint AppID = 960690u; +}; // We don't actually care much about hooking LoadItemData, but it's // called soon after mods are loaded, so it gives us an early entrypoint @@ -17,6 +23,12 @@ internal class EntryPoint static EntryPoint() { Debug.Log("Hello World!"); +#if false + // This is a way to restart the app immediately through steam + // Useful for restarting when user wants to switch to hardcore mode + Application.OpenURL("steam://run/" + RetroAchievements.AppID); + Application.Quit(); +#endif } static void Prefix() {} }