From 7d8ce99ddde4728e1160e11265d8e113efcd918f Mon Sep 17 00:00:00 2001
From: Mister_Nebula <41904486+misternebula@users.noreply.github.com>
Date: Wed, 24 Nov 2021 22:16:39 +0000
Subject: [PATCH] Update QSB.csproj
---
QSB/QSB.csproj | 53 ++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 51 insertions(+), 2 deletions(-)
diff --git a/QSB/QSB.csproj b/QSB/QSB.csproj
index 8d5a085b..8e7f8569 100644
--- a/QSB/QSB.csproj
+++ b/QSB/QSB.csproj
@@ -330,6 +330,7 @@
+
@@ -478,19 +479,67 @@
- md "$(OwmlDir)\Mods\$(ProjectName)"
+ :: create folders
+md "$(OwmlDir)\Mods\$(ProjectName)"
md "$(OwmlDir)\Mods\$(ProjectName)\assets"
+
+:: delete old config file
del "$(OwmlDir)\Mods\$(ProjectName)\config.json"
+:: copy files that dont need to be processed
copy /y "$(ProjectDir)\default-config.json" "$(OwmlDir)\Mods\$(ProjectName)"
copy /y "$(SolutionDir)\AssetBundles" "$(OwmlDir)\Mods\$(ProjectName)\assets"
copy /y "$(ProjectDir)\manifest.json" "$(OwmlDir)\Mods\$(ProjectName)"
+:: process qsb.dll
"$(SolutionDir)\QNetWeaver\bin\$(Configuration)\QNetWeaver.exe" "$(GameDir)\OuterWilds_Data\Managed\UnityEngine.CoreModule.dll" "$(OwmlDir)\Mods\$(ProjectName)\QuantumUNET.dll" "$(ProjectDir)\lib\UnityEngine.Networking.dll" "$(SolutionDir)\WeavedFiles" "$(TargetPath)"
+:: copy processed dll
copy /y "$(SolutionDir)\WeavedFiles\QSB.dll" "$(OwmlDir)\Mods\$(ProjectName)"
-xcopy /y "$(ProjectDir)\lib" "$(OwmlDir)\Mods\$(ProjectName)"
+:: copy all lib files
+xcopy /y "$(ProjectDir)\lib" "$(OwmlDir)\Mods\$(ProjectName)"
+
+:: copy processed dll to unity project
+copy /y "$(SolutionDir)\WeavedFiles\QSB.dll" $(UnityAssetsDir)
+:: copy quantumunet to unity project
+copy /y "$(OwmlDir)\Mods\$(ProjectName)\QuantumUNET.dll" $(UnityAssetsDir)
+:: copy game assembly to unity project
+copy /y "$(GameDir)\OuterWilds_Data\Managed\Assembly-CSharp.dll" $(UnityAssetsDir)
+copy /y "$(GameDir)\OuterWilds_Data\Managed\Assembly-CSharp-firstpass.dll" $(UnityAssetsDir)
+copy /y "$(GameDir)\OuterWilds_Data\Managed\Unity.InputSystem.dll" $(UnityAssetsDir)
+copy /y "$(GameDir)\OuterWilds_Data\Managed\EOS-SDK.dll" $(UnityAssetsDir)
+copy /y "$(GameDir)\OuterWilds_Data\Managed\UniSense.dll" $(UnityAssetsDir)
+
+:: copy owml files to unity project
+copy /y "$(OwmlDir)\Autofac.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Newtonsoft.Json.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\0Harmony.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\MonoMod.Utils.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\MonoMod.RuntimeDetour.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Mono.Cecil.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Mono.Cecil.Mdb.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Mono.Cecil.Pdb.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Mono.Cecil.Rocks.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\dnpatch.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\dnlib.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\Gameloop.Vdf.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\NAudio-Unity.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Common.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.Assets.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.Events.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.Menus.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.Input.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModHelper.Interaction.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Utils.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Common.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Logging.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.ModLoader.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Patcher.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.GameFinder.dll" $(UnityAssetsDir)
+copy /y "$(OwmlDir)\OWML.Abstractions.dll" $(UnityAssetsDir)
+