mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 22:28:38 +00:00
The title takes its console model from HKLM\Software\Microsoft\Windows NTCurrentVersion\OEM\ConsoleMode, not from XSystemGetDeviceType alone; a PC has no such value. registry_oem.cpp (ported from VIctory's xsystem.rs) answers RegOpenKeyW/RegOpenKeyExW/RegQueryValueExW/RegCloseKey for that key with 0x64 (Series X; 0x60 with LEONIDA_DEVICE_TYPE=6) and passes every other key to the host. advapi32.dll stays a host module for LoadLibrary. Found on the real title: its render-target pool budget (0x4000000 or 0x5200000) is picked by this model. The title still stops at its pool check (game_scarlett_master.exe+0x247af2d): it counts the back buffers through its XMemAlloc hooks, which Leonida does not call yet. Tested: registry_oem (new) and d3d12_title_memory pass; gta6rt binds the four imports to the shim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>