Multiple instances fix
This commit is contained in:
@@ -38,7 +38,7 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
||||
romtype, scanlines, showallext, smallscreenon, soundon,
|
||||
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
|
||||
NetChatFirst,NetServer,NetNewNick,
|
||||
NetFilename,GUINetTextk2,NetQuitAfter,UDPConfig,AllowMultipleInst;
|
||||
NetFilename,GUINetTextk2,NetQuitAfter,UDPConfig;
|
||||
|
||||
void ccmdline(void);
|
||||
|
||||
@@ -81,18 +81,6 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSh
|
||||
|
||||
hInst=hInstance;
|
||||
|
||||
if (AllowMultipleInst == 0)
|
||||
{
|
||||
HWND hFindWindow;
|
||||
hFindWindow = FindWindow("ZSNESWIN", NULL);
|
||||
|
||||
if (hFindWindow != NULL)
|
||||
{
|
||||
SetForegroundWindow(hFindWindow);
|
||||
DosExit();
|
||||
}
|
||||
}
|
||||
|
||||
// Commandline: /ABCDE <nickname> <fname> <IP Addy>
|
||||
// nickname = user nickname
|
||||
// fname = filename w/ full path (if L) or path name (if C)
|
||||
|
||||
Reference in New Issue
Block a user