Fix running script debugger if fs_basepath is used

I don't think fs_cdpath is relevant (anymore? has it ever been?), but
fs_basepath sure is.
This commit is contained in:
Daniel Gibson 2022-05-18 04:22:25 +02:00
parent e8a1eb8baf
commit 0f9e066bf6

View file

@ -109,7 +109,7 @@ void DebuggerClientLaunch ( void )
GetCurrentDirectory ( MAX_PATH, curDir );
GetModuleFileName ( NULL, exeFile, MAX_PATH );
const char* s = va("%s +set fs_game %s +set fs_cdpath %s +debugger", exeFile, cvarSystem->GetCVarString( "fs_game" ), cvarSystem->GetCVarString( "fs_cdpath" ) );
const char* s = va("%s +set fs_game %s +set fs_basepath %s +debugger", exeFile, cvarSystem->GetCVarString( "fs_game" ), cvarSystem->GetCVarString( "fs_basepath" ) );
CreateProcess ( NULL, (LPSTR)s,
NULL, NULL, FALSE, 0, NULL, curDir, &startup, &process );