Skip to content

Commit 65433c0

Browse files
authored
Update UnityResolve.hpp
1 parent beb886c commit 65433c0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

UnityResolve.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,6 @@ class UnityResolve final {
382382
Invoke<void*>("mono_jit_thread_attach", pDomain);
383383

384384
ForeachAssembly();
385-
386-
if (Get("UnityEngine.dll") && (!Get("UnityEngine.CoreModule.dll") || !Get("UnityEngine.PhysicsModule.dll"))) {
387-
// 兼容某些游戏 (如生死狙击2)
388-
for (const std::vector<std::string> names = { "UnityEngine.CoreModule.dll", "UnityEngine.PhysicsModule.dll" }; const auto & name : names) {
389-
const auto ass = Get("UnityEngine.dll");
390-
const auto assembly = new Assembly{ .address = ass->address, .name = name, .file = ass->file, .classes = ass->classes };
391-
UnityResolve::assembly.push_back(assembly);
392-
}
393-
}
394385
}
395386
}
396387

0 commit comments

Comments
 (0)