"This small patch sets numdrives to the number of installed logical drives on startup."
kode54
This commit is contained in:
@@ -47,6 +47,8 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
|||||||
extern unsigned char autoloadstate;
|
extern unsigned char autoloadstate;
|
||||||
// FIX STATMAT
|
// FIX STATMAT
|
||||||
|
|
||||||
|
extern unsigned int numdrives;
|
||||||
|
|
||||||
void ccmdline(void);
|
void ccmdline(void);
|
||||||
|
|
||||||
char *ers[] =
|
char *ers[] =
|
||||||
@@ -352,6 +354,9 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSh
|
|||||||
argv[argc] = NULL;
|
argv[argc] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (drivebits = GetLogicalDrives(), numdrives = 0;drivebits != 0;drivebits>>= 1)
|
||||||
|
numdrives++;
|
||||||
|
|
||||||
zstart();
|
zstart();
|
||||||
|
|
||||||
if(argc)
|
if(argc)
|
||||||
|
|||||||
Reference in New Issue
Block a user