mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
the pain begins
This commit is contained in:
parent
b936c5fd2f
commit
c841e1958d
@ -118,8 +118,6 @@ public class QSBCore : ModBehaviour
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
SteamRerouter.ModSide.Interop.Go();
|
||||
|
||||
// no, we cant localize this - languages are loaded after the splash screen
|
||||
UIHelper.ReplaceUI(UITextType.PleaseUseController,
|
||||
"<color=orange>Quantum Space Buddies</color> is best experienced with friends...");
|
||||
@ -156,6 +154,8 @@ public class QSBCore : ModBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
SteamRerouter.ModSide.Interop.Go();
|
||||
|
||||
DebugLog.ToConsole($"Is steam - overriding AppID");
|
||||
OverrideAppId();
|
||||
}
|
||||
|
@ -15,19 +15,13 @@ public static class Interop
|
||||
|
||||
public static void Go()
|
||||
{
|
||||
if (typeof(EpicPlatformManager).GetField("_platformInterface", BindingFlags.NonPublic | BindingFlags.Instance) == null)
|
||||
{
|
||||
Log("not epic. don't reroute");
|
||||
return;
|
||||
}
|
||||
|
||||
Log("go");
|
||||
|
||||
Patches.Apply();
|
||||
|
||||
var processPath = Path.Combine(
|
||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!,
|
||||
"EpicRerouter.exe"
|
||||
"SteamRerouter.exe"
|
||||
);
|
||||
Log($"process path = {processPath}");
|
||||
var gamePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(typeof(EpicPlatformManager).Assembly.Location)!, ".."));
|
||||
@ -64,5 +58,5 @@ public static class Interop
|
||||
Log($"error:\n{process.StandardError.ReadToEnd()}");
|
||||
}
|
||||
|
||||
public static void Log(object msg) => Debug.Log($"[EpicRerouter] {msg}");
|
||||
public static void Log(object msg) => Debug.Log($"[SteamRerouter] {msg}");
|
||||
}
|
Loading…
Reference in New Issue
Block a user