added back -basedir in a different place (win32 only)

This commit is contained in:
Forest Hale 2000-11-19 23:34:09 +00:00
parent 06ead88d9d
commit 2231b97572
2 changed files with 10 additions and 0 deletions

View file

@ -495,6 +495,11 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
SetForegroundWindow (hwnd_dialog);
}
// LordHavoc: check for -basedir
t = Com_CheckParm ("-basedir");
if (t && (t + 1) < com_argc)
parms.basedir = com_argv[t];
// take the greater of all the available memory or half the total memory,
// but at least 8 Mb and no more than 16 Mb, unless they explicitly
// request otherwise

View file

@ -225,6 +225,11 @@ int main (int argc, char **argv)
parms.basedir = ".";
// LordHavoc: check for -basedir
t = Com_CheckParm ("-basedir");
if (t && (t + 1) < com_argc)
parms.basedir = com_argv[t];
SV_Init (&parms);
if (COM_CheckParm ("-nopriority"))