change name instead of namespace, always inject so workflows work

This commit is contained in:
JohnCorby 2022-02-11 20:34:55 -08:00
parent 3b582c82d4
commit 39d6d62042
4 changed files with 4 additions and 5 deletions

Binary file not shown.

BIN
GameDlls/UnityEngine.UI.dll Normal file

Binary file not shown.

View File

@ -36,8 +36,7 @@ namespace ProxyInjector
continue;
}
var proxyTd = new TypeDefinition(td.Namespace, td.FullName, td.Attributes, qsbModule.ImportReference(td));
proxyTd.Namespace = string.IsNullOrEmpty(proxyTd.Namespace) ? "PROXY" : "PROXY." + proxyTd.Namespace;
var proxyTd = new TypeDefinition(td.Namespace, "PROXY_" + td.Name, td.Attributes, qsbModule.ImportReference(td));
qsbModule.Types.Add(proxyTd);
count++;
}

View File

@ -26,8 +26,8 @@
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
<Exec Command="&quot;..\MirrorWeaver\bin\$(Configuration)\MirrorWeaver&quot; &quot;$(TargetPath)&quot; ..\GameDlls" />
</Target>
<Target Name="inject proxy scripts" AfterTargets="PostBuildEvent" Condition="Exists('$(GameDllsDir)')">
<Exec Command="&quot;..\ProxyInjector\bin\$(Configuration)\ProxyInjector&quot; &quot;$(TargetPath)&quot; &quot;$(GameDllsDir)\Assembly-CSharp.dll&quot;" />
<Target Name="inject proxy scripts" AfterTargets="PostBuildEvent">
<Exec Command="&quot;..\ProxyInjector\bin\$(Configuration)\ProxyInjector&quot; &quot;$(TargetPath)&quot; ..\GameDlls\Assembly-CSharp.dll" />
</Target>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)') and Exists('$(GameDllsDir)')">
<Exec Command="del /f /q &quot;$(UnityDllsDir)\*.dll&quot;" />
@ -73,7 +73,7 @@
<ProjectReference Include="..\EpicOnlineTransport\EpicOnlineTransport.csproj" />
<ProjectReference Include="..\EpicRerouter\EpicRerouter.csproj" />
<ProjectReference Include="..\MirrorWeaver\MirrorWeaver.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Condition="Exists('$(GameDllsDir)')" Include="..\ProxyInjector\ProxyInjector.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\ProxyInjector\ProxyInjector.csproj" ReferenceOutputAssembly="false" />
<PackageReference Include="HarmonyX" Version="2.9.0" IncludeAssets="compile" />
<PackageReference Include="OWML" Version="2.3.2" IncludeAssets="compile" />
</ItemGroup>