mirror of
https://github.com/halpz/re3.git
synced 2025-05-12 05:56:38 +03:00
Implemented faststrcmp, faststricmp, strcasecmp
This commit is contained in:
parent
c075b863d2
commit
c202fc3b55
19 changed files with 101 additions and 53 deletions
|
@ -28,7 +28,7 @@ FindPlayerDff(uint32 &offset, uint32 &size)
|
|||
do {
|
||||
if (!CFileMgr::Read(file, (char*)&info, sizeof(CDirectory::DirectoryInfo)))
|
||||
return;
|
||||
} while (strcmpi("player.dff", info.name));
|
||||
} while (strcasecmp("player.dff", info.name) != 0);
|
||||
|
||||
offset = info.offset;
|
||||
size = info.size;
|
||||
|
@ -94,7 +94,7 @@ CPlayerSkin::GetSkinTexture(const char *texName)
|
|||
CTxdStore::PopCurrentTxd();
|
||||
if (tex) return tex;
|
||||
|
||||
if (!strcmp(DEFAULT_SKIN_NAME, texName))
|
||||
if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
|
||||
sprintf(gString, "models\\generic\\player.bmp");
|
||||
else
|
||||
sprintf(gString, "skins\\%s.bmp", texName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue