From 94e73f6d2d6ad87c52a14b3d4449a35d4883a96f Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Tue, 29 Oct 2002 02:41:27 +0000 Subject: [PATCH] "This small patch sets numdrives to the number of installed logical drives on startup." kode54 --- zsnes/src/win/zloaderw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsnes/src/win/zloaderw.c b/zsnes/src/win/zloaderw.c index 61597674..f101f824 100644 --- a/zsnes/src/win/zloaderw.c +++ b/zsnes/src/win/zloaderw.c @@ -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)