mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(dustbin): restore belt disposal on the current game loop
Replace the obsolete GameData.GameTick transpiler with the serial factory-frame hook. Build current preloader-injected references instead of using the bundled 2023 game DLL. Refs #70, #69, #91
This commit is contained in:
1 parent
ac16794f07
commit
2cb351ebd3
6 files changed
+92
-43
No files matched your search
@@ -13,9 +13,28 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DysonSphereProgram.Modding.DSPModSave" Version="1.*" />
|
||||
<PackageReference Include="DysonSphereProgram.Modding.NebulaMultiplayerModApi" Version="2.0.0" />
|
||||
<ProjectReference Include="..\DustbinPreloader\DustbinPreloader.csproj" ReferenceOutputAssembly="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="assets/icon/signal-410.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Compile against the current game with the same fields injected at runtime. -->
|
||||
<Target Name="UsePreloaderGameReference" BeforeTargets="CoreCompile" DependsOnTargets="ResolveReferences">
|
||||
<MSBuild Projects="..\DustbinPreloader\DustbinPreloader.csproj" Targets="GetTargetPath" Properties="Configuration=$(Configuration)">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_DustbinPreloaderTarget" />
|
||||
</MSBuild>
|
||||
<PropertyGroup>
|
||||
<_DustbinGameReference>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)game-reference\Assembly-CSharp.dll</_DustbinGameReference>
|
||||
<_OriginalGameReference>@(ReferencePath->WithMetadataValue('Filename', 'Assembly-CSharp'))</_OriginalGameReference>
|
||||
</PropertyGroup>
|
||||
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\GenerateGameReference.ps1" -InputAssembly "$(_OriginalGameReference)" -OutputAssembly "$(_DustbinGameReference)" -PreloaderAssembly "@(_DustbinPreloaderTarget)" -CecilAssembly "@(ReferencePath->WithMetadataValue('Filename', 'Mono.Cecil'))" -BepInExAssembly "@(ReferencePath->WithMetadataValue('Filename', 'BepInEx'))" -UnityAssembly "@(ReferencePath->WithMetadataValue('Filename', 'UnityEngine.CoreModule'))"" />
|
||||
<ItemGroup>
|
||||
<ReferencePath Remove="$(_OriginalGameReference)" />
|
||||
<ReferencePath Include="$(_DustbinGameReference)" Private="false" />
|
||||
<ReferencePathWithRefAssemblies Remove="$(_OriginalGameReference)" />
|
||||
<ReferencePathWithRefAssemblies Include="$(_DustbinGameReference)" Private="false" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in new issue
Block a user