Skip to content

Commit fde08f8

Browse files
committed
fix: unable to compile
1 parent 85e6a3a commit fde08f8

8 files changed

Lines changed: 16 additions & 9 deletions

File tree

sources/ModCore.Common/ContextConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public static ContextConfig Config
3838
}
3939
}
4040

41+
public bool disableWorkerProcessUtils;
4142
public string[] hashlinkLibraries;
4243
public Memory<byte>? hlbcOverride;
4344
public bool consoleOutput;

sources/ModCore.Common/ModCore.Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212
<ItemGroup>
1313
<PackageReference Include="Mono.Cecil" Version="0.11.6" />
14-
<PackageReference Include="MonoMod.RuntimeDetour" Version="25.3.3" />
15-
<PackageReference Include="Serilog" Version="4.3.0" />
14+
<PackageReference Include="MonoMod.RuntimeDetour" Version="25.3.4" />
15+
<PackageReference Include="Serilog" Version="4.3.1" />
1616
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
1717
</ItemGroup>
1818

sources/ModCore/ModCore.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Mono.Cecil" Version="0.11.6" />
13-
<PackageReference Include="MonoMod.RuntimeDetour" Version="25.3.3" />
14-
<PackageReference Include="MonoMod.Utils" Version="25.0.11" />
13+
<PackageReference Include="MonoMod.RuntimeDetour" Version="25.3.4" />
14+
<PackageReference Include="MonoMod.Utils" Version="25.0.12" />
1515
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
1616
<PackageReference Include="Serilog" Version="4.3.1" />
1717
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />

sources/ModCore/Modules/Game.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ private void Hook__Boot_main( Hook__Boot.orig_main orig )
291291
GameInfo.GameVersion);
292292
}
293293

294-
if (GameInfo.Platform == GameInfo.PlatformKind.Steam)
294+
/* if (GameInfo.Platform == GameInfo.PlatformKind.Steam)
295295
{
296296
if (SteamAPI.InitEx(out var err) != ESteamAPIInitResult.k_ESteamAPIInitResult_OK)
297297
{
298298
Logger.Warning("Unable to initialize the Steam API: {reason}", err);
299299
}
300-
}
300+
}*/
301301

302302
EventSystem.BroadcastEvent<IOnBeforeGameInit>();
303303
orig();

sources/ModCore/Utilities/WorkerProcessUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public static Process StartWorkerProcess(string typeFullName,
3232
ProcessStartInfo? startInfo,
3333
params ReadOnlySpan<string> loadAssemblies)
3434
{
35+
if (ContextConfig.Config.disableWorkerProcessUtils)
36+
{
37+
throw new InvalidOperationException();
38+
}
39+
3540
startInfo ??= new();
3641

3742
if (string.IsNullOrEmpty(startInfo.FileName))

sources/native/hdlls

test/TestRunner/GameContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ private void GameThread()
2828
};
2929
ContextConfig.Config = ContextConfig.Default with
3030
{
31-
consoleOutput = Debugger.IsAttached
31+
consoleOutput = Debugger.IsAttached,
32+
disableWorkerProcessUtils = true,
3233
};
3334
//Console.WriteLine("Setup receiver");
3435
EventSystem.AddReceiver(this);

test/TestRunner/TestRunner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
41+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
4242
<PackageReference Include="xunit.v3" Version="3.2.2" />
4343
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
4444
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)