upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:11:08 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:11:08 -0500
commitfe9864f116a10e1815b0809d691c03d906f0dd66 (patch)
tree73ab96a3e2aa0c0b90162fbea98ca541c10662ea /runtime/src/pe_loader.cpp
parent7da128aca372f138ea3b01b61fc63bdab6409c78 (diff)
parent174b87c7e657fb9f18bc669849fa334212924391 (diff)
Merge pull request #4086 from Maraco91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
-rw-r--r--runtime/src/pe_loader.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp
index bbb04cd6c..d7ea38549 100644
--- a/runtime/src/pe_loader.cpp
+++ b/runtime/src/pe_loader.cpp
@@ -767,9 +767,15 @@ void __cdecl on_host_thread_event(DWORD reason) {
767 767
768// The Xbox builds of the MSVC runtime import the same CRT the desktop does, so the host's own copies are used. 768// The Xbox builds of the MSVC runtime import the same CRT the desktop does, so the host's own copies are used.
769bool prefer_host_copy(const std::string& dll) { 769bool prefer_host_copy(const std::string& dll) {
770 // The second row is the Debug builds of the same DLLs. A Debug build of a stand-in image (tiny_game) links them,
771 // and without them here its C++ exceptions were not redirected below: a throw caught inside the image ended the
772 // run with 0xE06D7363 (run_tiny_game_eh in a Debug build).
770 static const char* names[] = {"vcruntime140.dll", "vcruntime140_1.dll", "msvcp140.dll", "msvcp140_1.dll", 773 static const char* names[] = {"vcruntime140.dll", "vcruntime140_1.dll", "msvcp140.dll", "msvcp140_1.dll",
771 "msvcp140_2.dll", "msvcp140_atomic_wait.dll", "msvcp140_codecvt_ids.dll", 774 "msvcp140_2.dll", "msvcp140_atomic_wait.dll", "msvcp140_codecvt_ids.dll",
772 "concrt140.dll", "vccorlib140.dll", "vcomp140.dll"}; 775 "concrt140.dll", "vccorlib140.dll", "vcomp140.dll",
776 "vcruntime140d.dll", "vcruntime140_1d.dll", "msvcp140d.dll", "msvcp140_1d.dll",
777 "msvcp140_2d.dll", "msvcp140d_atomic_wait.dll", "msvcp140d_codecvt_ids.dll",
778 "concrt140d.dll", "vccorlib140d.dll", "vcomp140d.dll"};
773 for (auto* n : names) 779 for (auto* n : names)
774 if (dll == n) return true; 780 if (dll == n) return true;
775 return false; 781 return false;