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:
authorZack <zmasi21@gmail.com>2026-12-02 04:09:12 -0800
committerZack <zmasi21@gmail.com>2026-12-02 04:09:12 -0800
commit155719f2755d1dbc89aa46a33abc6aa34a090abb (patch)
tree7f41aa57bfa6d8003d3334597e935aa07cd4dd72 /runtime/src/pe_loader.cpp
parenta62b4785268971d97cadf3dc7780a83c5414c90f (diff)
parent9b4d718992a343ef680d462203f3038fcef90c79 (diff)
d3d12/docs: merge main and add Series X 48 GB page-file sizing (#3109)
Forward-merges origin/main cleanly into d3d12/README.md, documents the measured Series X 58.8 GB commit footprint and fixed 32 GB page-file sizing on 48 GB RAM hosts from #3109 alongside residency.rs commit-reserve behavior, and switches the 8 GB starting command to direct PowerShell invocation so [hashtable]$More binds without stringification. Co-authored-by: mattiolocoding <mattiolocoding@users.noreply.github.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
-rw-r--r--runtime/src/pe_loader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp
index 303469b06..49588b424 100644
--- a/runtime/src/pe_loader.cpp
+++ b/runtime/src/pe_loader.cpp
@@ -188,6 +188,15 @@ std::filesystem::path tls_host_base_path() {
188} 188}
189 189
190std::filesystem::path tls_host_clone_dir() { 190std::filesystem::path tls_host_clone_dir() {
191 if (const char* dir = std::getenv("LEONIDA_TEST_DIR"); dir && *dir) return std::filesystem::path(dir);
192 const char* tmp = std::getenv("TMP");
193 const char* temp = std::getenv("TEMP");
194 const char* profile = std::getenv("USERPROFILE");
195 if ((!tmp || !*tmp) && (!temp || !*temp) && (!profile || !*profile)) {
196 std::error_code ec;
197 auto cwd = std::filesystem::current_path(ec);
198 if (!ec) return cwd;
199 }
191 wchar_t buf[MAX_PATH]; 200 wchar_t buf[MAX_PATH];
192 DWORD n = GetTempPathW(MAX_PATH, buf); 201 DWORD n = GetTempPathW(MAX_PATH, buf);
193 if (n > 0 && n < MAX_PATH) return std::filesystem::path(buf); 202 if (n > 0 && n < MAX_PATH) return std::filesystem::path(buf);