scrn.cpp : Fix kovytzy not accepted by Kaillera servers

This commit is contained in:
taoenwen 2024-06-06 13:23:32 +08:00
parent 4498b9708c
commit 5431651ef2
1 changed files with 24 additions and 15 deletions

View File

@ -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;