"This small patch sets numdrives to the number of installed logical drives on startup."

kode54
This commit is contained in:
theoddone33
2002-10-29 02:41:27 +00:00
parent 7fbd95c8b4
commit 94e73f6d2d

View File

@@ -47,6 +47,8 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
extern unsigned char autoloadstate;
// FIX STATMAT
extern unsigned int numdrives;
void ccmdline(void);
char *ers[] =
@@ -352,6 +354,9 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSh
argv[argc] = NULL;
}
for (drivebits = GetLogicalDrives(), numdrives = 0;drivebits != 0;drivebits>>= 1)
numdrives++;
zstart();
if(argc)