mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +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()
|
public void Awake()
|
||||||
{
|
{
|
||||||
SteamRerouter.ModSide.Interop.Go();
|
|
||||||
|
|
||||||
// no, we cant localize this - languages are loaded after the splash screen
|
// no, we cant localize this - languages are loaded after the splash screen
|
||||||
UIHelper.ReplaceUI(UITextType.PleaseUseController,
|
UIHelper.ReplaceUI(UITextType.PleaseUseController,
|
||||||
"<color=orange>Quantum Space Buddies</color> is best experienced with friends...");
|
"<color=orange>Quantum Space Buddies</color> is best experienced with friends...");
|
||||||
@ -156,6 +154,8 @@ public class QSBCore : ModBehaviour
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SteamRerouter.ModSide.Interop.Go();
|
||||||
|
|
||||||
DebugLog.ToConsole($"Is steam - overriding AppID");
|
DebugLog.ToConsole($"Is steam - overriding AppID");
|
||||||
OverrideAppId();
|
OverrideAppId();
|
||||||
}
|
}
|
||||||
|
@ -15,19 +15,13 @@ public static class Interop
|
|||||||
|
|
||||||
public static void Go()
|
public static void Go()
|
||||||
{
|
{
|
||||||
if (typeof(EpicPlatformManager).GetField("_platformInterface", BindingFlags.NonPublic | BindingFlags.Instance) == null)
|
|
||||||
{
|
|
||||||
Log("not epic. don't reroute");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log("go");
|
Log("go");
|
||||||
|
|
||||||
Patches.Apply();
|
Patches.Apply();
|
||||||
|
|
||||||
var processPath = Path.Combine(
|
var processPath = Path.Combine(
|
||||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!,
|
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!,
|
||||||
"EpicRerouter.exe"
|
"SteamRerouter.exe"
|
||||||
);
|
);
|
||||||
Log($"process path = {processPath}");
|
Log($"process path = {processPath}");
|
||||||
var gamePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(typeof(EpicPlatformManager).Assembly.Location)!, ".."));
|
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()}");
|
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