mirror of
https://github.com/utmapp/d3dmetal-native.git
synced 2026-12-01 07:53:19 -10:00
D3DMetal's per-app profile matcher reads getExecutablePath's return value as the length of the path, and takes the name after the last '\'. The interface returned void and dmn_set_executable_path stored the name as given, so an override was never seen. getExecutablePath and getModulePath now return the bytes written, and the override is kept as a Windows path with a lowercase ".exe". exe-identity-test, override bf1.exe (adapter vendor 0x106b in D3DMetal's table): before 0x1002, after 0x106b; BF1.EXE and C:\x\bf1.exe also 0x106b, no override still 0x1002. Co-Authored-By: Claude Opus 5.5 <[email protected]>