File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11# Place Foundry dependencies here
22
3- * ` 0Harmony.dll ` (unstripped)
43* ` Main.dll ` (publicized)
54* ` UnityEngine.CoreModule.dll `
Original file line number Diff line number Diff line change 1- using HarmonyLib ;
1+ using System . Reflection ;
22
33namespace ScienceUnlock
44{
5- [ HarmonyPatch ( typeof ( ResearchTemplate ) , nameof ( ResearchTemplate . onLoad ) ) ]
6- internal class ResearchTemplate_onLoad
5+ internal static class Main
76 {
8- static void Postfix ( ResearchTemplate __instance )
7+ [ OnGameAssemblyLoad ]
8+ public static void OnGameAssemblyLoad ( Assembly assembly )
99 {
10- __instance . includeInDemo = true ;
10+ if ( ! BuildInfo . isDemo )
11+ return ;
12+
13+ BuildInfo . isDemo = false ;
1114 }
1215 }
1316}
Original file line number Diff line number Diff line change 66 </PropertyGroup >
77
88 <ItemGroup >
9- <Reference Include =" 0Harmony" >
10- <HintPath >../Dependencies/Foundry/0Harmony.dll</HintPath >
11- </Reference >
129 <Reference Include =" Main" >
1310 <HintPath >../Dependencies/Foundry/Main.dll</HintPath >
1411 </Reference >
You can’t perform that action at this time.
0 commit comments