Skip to content

Commit

Permalink
.NET: Fix ObjectExplorer.cs compilation in DMC5
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Sep 17, 2024
1 parent 9d7d203 commit 331022b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions csharp-api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,16 @@ check_dlls_exist("re2" "${RE2_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_RE2")
set(RE4_DLLS "REFramework.NET._mscorlib.dll;REFramework.NET._System.dll;REFramework.NET._System.Core.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("re4" "${RE4_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_RE4")

# DMC5
set(DMC5_DLLS "REFramework.NET._mscorlib.dll;REFramework.NET._System.dll;REFramework.NET._System.Core.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("dmc5" "${DMC5_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_DMC5")

# DD2
set(DD2_DLLS "REFramework.NET._System.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("dd2" "${DD2_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_DD2")



# Define a list of NuGet packages and their versions
# the last part, the package framework will only be used for copying the files
set(REFRAMEWORK_NUGET_PACKAGES
Expand Down
6 changes: 6 additions & 0 deletions csharp-api/cmake.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,16 @@ check_dlls_exist("re2" "${RE2_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_RE2")
set(RE4_DLLS "REFramework.NET._mscorlib.dll;REFramework.NET._System.dll;REFramework.NET._System.Core.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("re4" "${RE4_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_RE4")
# DMC5
set(DMC5_DLLS "REFramework.NET._mscorlib.dll;REFramework.NET._System.dll;REFramework.NET._System.Core.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("dmc5" "${DMC5_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_DMC5")
# DD2
set(DD2_DLLS "REFramework.NET._System.dll;REFramework.NET.application.dll;REFramework.NET.viacore.dll")
check_dlls_exist("dd2" "${DD2_DLLS}" "REFRAMEWORK_REF_ASSEMBLIES_EXIST_DD2")
# Define a list of NuGet packages and their versions
# the last part, the package framework will only be used for copying the files
set(REFRAMEWORK_NUGET_PACKAGES
Expand Down
2 changes: 1 addition & 1 deletion csharp-api/test/Test/ObjectExplorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public static void Render() {
if (ImGui.TreeNode("AppDomain")) {
if (assemblies != null && ImGui.TreeNode("Assemblies")) {
for (int i = 0; i < assemblies.Length; i++) {
var assembly = assemblies[i];
var assembly = assemblies.Get(i); // There is a strange thing in the generation where newer REE games do not generate an accessor for this, so we have to use Get instead
var assemblyT = (assembly as IObject).GetTypeDefinition();
var location = assembly.Location ?? "null";

Expand Down

0 comments on commit 331022b

Please sign in to comment.