scrn.cpp : Fix kovytzy not accepted by Kaillera servers
This commit is contained in:
parent
4498b9708c
commit
5431651ef2
|
@ -102,9 +102,18 @@ char* DecorateKailleraGameName(UINT32 nBurnDrv)
|
|||
|
||||
const char* s1 = "", * s2 = "";
|
||||
|
||||
memset(szFullName, 0, sizeof(szFullName));
|
||||
memset(szKailleraName, 0, sizeof(szKailleraName));
|
||||
|
||||
s1 = BurnDrvGetTextA(DRV_FULLNAME);
|
||||
s2 = BurnDrvGetTextA(DRV_NAME);
|
||||
|
||||
if (0 == strcmp(s2, "kovytzy")) {
|
||||
// Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (SANGO EX+) (ver. 201 'Yitong Zhongyuan', China)
|
||||
// The kaillera server does not accept 'Yitong Zhongyuan'.
|
||||
s1 = "Knights of Valour Super Heroes / Sanguo Zhan Ji Fengyun Zaiqi / Sangoku Senki Super Heroes (SANGO EX+) (ver. 201)";
|
||||
}
|
||||
|
||||
UINT32 nLen = 127 - (strlen(" - ") + strlen(s2)) - 1;
|
||||
strncpy(szFullName, s1, nLen);
|
||||
s1 = szFullName;
|
||||
|
@ -747,15 +756,15 @@ extern HWND hSelDlg;
|
|||
|
||||
void PausedRedraw(void)
|
||||
{
|
||||
if (bVidOkay && bRunPause && bDrvOkay && (hSelDlg == NULL)) { // Redraw the screen to show certain messages while paused. - dink
|
||||
INT16 *pBtemp = pBurnSoundOut;
|
||||
pBurnSoundOut = NULL;
|
||||
if (bVidOkay && bRunPause && bDrvOkay && (hSelDlg == NULL)) { // Redraw the screen to show certain messages while paused. - dink
|
||||
INT16 *pBtemp = pBurnSoundOut;
|
||||
pBurnSoundOut = NULL;
|
||||
|
||||
VidRedraw();
|
||||
VidPaint(0);
|
||||
|
||||
pBurnSoundOut = pBtemp;
|
||||
}
|
||||
pBurnSoundOut = pBtemp;
|
||||
}
|
||||
}
|
||||
|
||||
static void OnPaint(HWND hWnd)
|
||||
|
@ -781,13 +790,13 @@ static void OnClose(HWND)
|
|||
#ifdef INCLUDE_AVI_RECORDING
|
||||
AviStop();
|
||||
#endif
|
||||
PostQuitMessage(0); // Quit the program if the window is closed
|
||||
PostQuitMessage(0); // Quit the program if the window is closed
|
||||
}
|
||||
|
||||
static void OnDestroy(HWND)
|
||||
{
|
||||
VidExit(); // Stop using video with the Window
|
||||
hScrnWnd = NULL; // Make sure handle is not used again
|
||||
VidExit(); // Stop using video with the Window
|
||||
hScrnWnd = NULL; // Make sure handle is not used again
|
||||
}
|
||||
|
||||
OPENFILENAME bgFn;
|
||||
|
@ -1269,7 +1278,7 @@ static void OnCommand(HWND /*hDlg*/, int id, HWND /*hwndCtl*/, UINT codeNotify)
|
|||
AviStop();
|
||||
#endif
|
||||
DrvExit();
|
||||
if (kNetGame) {
|
||||
if (kNetGame) {
|
||||
kNetGame = 0;
|
||||
Kaillera_End_Game();
|
||||
DeActivateChat();
|
||||
|
@ -2432,13 +2441,13 @@ static void OnCommand(HWND /*hDlg*/, int id, HWND /*hwndCtl*/, UINT codeNotify)
|
|||
if (UseDialogs()) {
|
||||
CreateDatfileWindows(DAT_SGX_ONLY);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
|
||||
case MENU_CLRMAME_PRO_XML_SG1000_ONLY:
|
||||
if (UseDialogs()) {
|
||||
CreateDatfileWindows(DAT_SG1000_ONLY);
|
||||
}
|
||||
break;
|
||||
break;
|
||||
|
||||
case MENU_CLRMAME_PRO_XML_COLECO_ONLY:
|
||||
if (UseDialogs()) {
|
||||
|
@ -2654,7 +2663,7 @@ static void OnCommand(HWND /*hDlg*/, int id, HWND /*hwndCtl*/, UINT codeNotify)
|
|||
case MENU_ASSOCIATE:
|
||||
RegisterExtensions(true);
|
||||
break;
|
||||
case MENU_DISASSOCIATE:
|
||||
case MENU_DISASSOCIATE:
|
||||
RegisterExtensions(false);
|
||||
break;
|
||||
|
||||
|
@ -3375,8 +3384,8 @@ static void OnEnterIdle(HWND /*hwnd*/, UINT /*source*/, HWND /*hwndSource*/)
|
|||
{
|
||||
MSG Message;
|
||||
|
||||
// Modeless dialog is idle
|
||||
while (kNetGame && !PeekMessage(&Message, NULL, 0, 0, PM_NOREMOVE)) {
|
||||
// Modeless dialog is idle
|
||||
while (kNetGame && !PeekMessage(&Message, NULL, 0, 0, PM_NOREMOVE)) {
|
||||
RunIdle();
|
||||
}
|
||||
}
|
||||
|
@ -3612,7 +3621,7 @@ int ScrnSize()
|
|||
|
||||
nWindowPosX = x; nWindowPosY = y;
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include "neocdlist.h" // IsNeoGeoCD()
|
||||
|
|
Loading…
Reference in New Issue