[TRACE] Added %name support for BOX64_TRACE_FILE - #4273
Conversation
BOX64_TRACE_FILE can now use %name to include the target executable basename in the trace filename, in addition to the existing %pid. This is useful when tracing is enabled globally through an rcfile or environment variable, including Wine and Wine preloader invocations. The name is sanitized before being used as a filename and falls back to "unknown" when it cannot be determined. Updated the relevant documentation.
|
The idea is okay, but the code seems to be some copy-paste from the |
To be honest, I can't think of a better way... Obtaining the executable filename in |
|
Sure, but someone needs to clean this up later. |
|
looks ok to me, but yeah, some cleaning to make the change smaller would be nice. |
BOX64_TRACE_FILE can now use %name to include the target executable basename in the trace filename, in addition to the existing %pid.
This is useful when tracing is enabled globally through an rcfile or environment variable, including Wine and Wine preloader invocations. The name is sanitized before being used as a filename and falls back to "unknown" when it cannot be determined.
Updated the relevant documentation.
Tested by running Needy Girl Overdose via Steam.