diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-30 04:36:05 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-30 04:36:05 -0500 |
| commit | b8508a974bbd725c5f6cb2ca200583f12085c3ef (patch) | |
| tree | f0425be7d73365dcf0ae2f05ce96351c1557377f /runtime/src/main.cpp | |
| parent | efc1929908a728d95fa09ffef0a743d2a649b86d (diff) | |
| parent | 4014af7fe9a479caee2946c1814c11935b24bf60 (diff) | |
Merge branch 'main' of https://github.com/ProjectLeonida/mandy into fix/rendering-correctness
# Conflicts:
# tests/semantic/test_interp_computed_ij_fallback.py
Diffstat (limited to 'runtime/src/main.cpp')
| -rw-r--r-- | runtime/src/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp index f44eb2535..ad17dd3b0 100644 --- a/runtime/src/main.cpp +++ b/runtime/src/main.cpp | |||
| @@ -176,6 +176,7 @@ void start_title_peek(std::uint8_t* base) { | |||
| 176 | 176 | ||
| 177 | } // namespace | 177 | } // namespace |
| 178 | 178 | ||
| 179 | #include "assert_skip.h" | ||
| 179 | #include "avx2_emulation.h" | 180 | #include "avx2_emulation.h" |
| 180 | #include "base_reservation.h" | 181 | #include "base_reservation.h" |
| 181 | #include "compile_gate_policy.h" | 182 | #include "compile_gate_policy.h" |
| @@ -576,6 +577,17 @@ int wmain(int argc, wchar_t** argv) { | |||
| 576 | if (!rt::avx2_emulation::install()) | 577 | if (!rt::avx2_emulation::install()) |
| 577 | std::fprintf(stderr, "[rt] cpu: AddVectoredExceptionHandler (AVX2) failed (error %lu); instructions this CPU " | 578 | std::fprintf(stderr, "[rt] cpu: AddVectoredExceptionHandler (AVX2) failed (error %lu); instructions this CPU " |
| 578 | "lacks will stop the game\n", GetLastError()); | 579 | "lacks will stop the game\n", GetLastError()); |
| 580 | // LEONIDA_SKIP_ASSERTS=N (src/assert_skip.h): up to N int3 in guest code are logged and stepped over. Off unless | ||
| 581 | // set; installed before the first TLS callback, the first image code that runs. | ||
| 582 | if (init || run) | ||
| 583 | if (const unsigned skip_asserts = rt::assert_skip::limit_from_environment()) { | ||
| 584 | if (rt::assert_skip::install(skip_asserts)) | ||
| 585 | std::fprintf(stderr, "[rt] LEONIDA_SKIP_ASSERTS=%u: up to %u int3 in guest code are stepped over " | ||
| 586 | "(diagnostic)\n", skip_asserts, skip_asserts); | ||
| 587 | else | ||
| 588 | std::fprintf(stderr, "[rt] LEONIDA_SKIP_ASSERTS: AddVectoredExceptionHandler failed (error %lu); off\n", | ||
| 589 | GetLastError()); | ||
| 590 | } | ||
| 579 | 591 | ||
| 580 | try { | 592 | try { |
| 581 | rt::Loader loader(game_dir); | 593 | rt::Loader loader(game_dir); |