diff options
| author | Nolan Cotter <186326284+NolanCotter@users.noreply.github.com> | 2026-11-22 17:53:08 -0700 |
|---|---|---|
| committer | Nolan Cotter <186326284+NolanCotter@users.noreply.github.com> | 2026-11-22 17:53:08 -0700 |
| commit | f95bea1d8869f3ce4a162897efcf009f1c6af4bf (patch) | |
| tree | dbc23f57467a7bfbd68b729e523bc5e7c05d09a6 /runtime/test/command_list_test.cpp | |
| parent | 309052ad31a1ab9d6728930ae782c790985a2f46 (diff) | |
shims/loader: GetModuleFileName answers for the mapped images
GetModuleFileName was host-bound, so a mapped image asking for its own
path got gta6rt.exe's. The bundled-module ops now expose the main image
and each module's load path: GetModuleFileNameA/W return the mapped
module's path (the exe for a null handle, any bundled module for its
base) and GetModuleFileName falls through to the host otherwise.
GetModuleHandle(nullptr) answers the mapped exe's base the same way.
A unix-absolute stored path is spelled Z:\... under Wine.
First use measured: the package's game_scarlett_master.exe (a payload
verification probe, not the engine) took its own module path as the
scan root and verified the full 1.0.2.1 payload through the file
layer — 104/104 files, 223,534,748,018 bytes, rpf 22/22, ttpf 57/57,
png 5/5, dll 16/16, bad magic 0 — verdict PASS, exit 0.
Tested: clang-cl 20 + xwin cross-build clean; loader_test 87 checks,
xs_proxy_mock_test PASS under Wine. AI-assisted.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime/test/command_list_test.cpp')
0 files changed, 0 insertions, 0 deletions