Add cmd line: -debugger-auto-run <script file>

. Use this to override the default "DebuggerAutoRun.txt"
This commit is contained in:
tomcw
2025-08-31 17:38:39 +01:00
parent afe3824f99
commit 8b31042c13
5 changed files with 24 additions and 5 deletions

View File

@@ -777,6 +777,13 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
{
g_cmdLine.useAltCpuEmulation = true;
}
else if (strcmp(lpCmdLine, "-debugger-auto-run") == 0)
{
lpCmdLine = GetCurrArg(lpNextArg);
lpNextArg = GetNextArg(lpNextArg);
g_cmdLine.debuggerAutoRunScriptFilename = lpCmdLine;
}
else // unsupported
{
LogFileOutput("Unsupported arg: %s\n", lpCmdLine);