mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-21 19:41:24 +00:00
- fixed command line arguments for game when debugger client launches it.
This commit is contained in:
parent
d7be3964d4
commit
5260de58c4
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ int rvDebuggerWindow::HandleCommand ( WPARAM wparam, LPARAM lparam )
|
||||||
GetCurrentDirectory ( MAX_PATH, curDir );
|
GetCurrentDirectory ( MAX_PATH, curDir );
|
||||||
|
|
||||||
GetModuleFileName ( NULL, exeFile, MAX_PATH );
|
GetModuleFileName ( NULL, exeFile, MAX_PATH );
|
||||||
const char* s = va("%s +set fs_game %s +set fs_cdpath %s", exeFile, cvarSystem->GetCVarString( "fs_game" ), cvarSystem->GetCVarString( "fs_cdpath" ) );
|
const char* s = va("%s +set fs_game %s +set fs_cdpath %s +set com_enableDebuggerServer 1", exeFile, cvarSystem->GetCVarString( "fs_game" ), cvarSystem->GetCVarString( "fs_cdpath" ) );
|
||||||
CreateProcess ( NULL, (LPSTR)s,
|
CreateProcess ( NULL, (LPSTR)s,
|
||||||
NULL, NULL, FALSE, 0, NULL, curDir, &startup, &process );
|
NULL, NULL, FALSE, 0, NULL, curDir, &startup, &process );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue