upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 17:22:43 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 17:22:43 +0100
commit3d1dbf1cef8b9240cce69b2bcdba0c09ea0f1d5e (patch)
tree5d84c2e541aa31bcf23d9921dde7e9cb92b2ac59 /runtime/src/main.cpp
parent2560485f76c45779ec93a2a6dc001c93211f7b3f (diff)
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
Merge main into test/coverage-gaps (#1299)
Conflicts: runtime/test/shaders/check.py, scripts/run_gpu_tests.py AI-assisted.
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index 7d3491653..560f68349 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -23,6 +23,7 @@
23#include <string> 23#include <string>
24#include <vector> 24#include <vector>
25 25
26#include "base_reservation.h"
26#include "pe_loader.h" 27#include "pe_loader.h"
27#include "../shims/d3d12_trace.h" 28#include "../shims/d3d12_trace.h"
28#include "../shims/file_system.h" 29#include "../shims/file_system.h"
@@ -73,6 +74,10 @@ int wmain(int argc, wchar_t** argv) {
73 // Exactly one mode: --dry-run --run would otherwise initialise the modules and call the entry point. 74 // Exactly one mode: --dry-run --run would otherwise initialise the modules and call the entry point.
74 if (dry_run + init + run != 1) return usage(); 75 if (dry_run + init + run != 1) return usage();
75 if (game_dir.empty()) game_dir = image.parent_path(); 76 if (game_dir.empty()) game_dir = image.parent_path();
77 // An image without relocations whose range this process already uses (arm64 Wine on macOS) runs in a new
78 // process that has the range reserved from the start (base_reservation.h); that process does not do this again.
79 if (!rt::base_reservation::inherited())
80 if (const auto range = rt::base_reservation::needed(image)) return rt::base_reservation::relaunch(*range);
76 // GAME: paths read under --game-dir; whatever a title writes lands in the overlay, never in the package. 81 // GAME: paths read under --game-dir; whatever a title writes lands in the overlay, never in the package.
77 if (overlay_dir.empty()) overlay_dir = game_dir / "overlay"; 82 if (overlay_dir.empty()) overlay_dir = game_dir / "overlay";
78 rt::fs::configure(game_dir, overlay_dir); 83 rt::fs::configure(game_dir, overlay_dir);