mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 16:14:09 +00:00
Implemented faststrcmp, faststricmp, strcasecmp
This commit is contained in:
parent
c075b863d2
commit
c202fc3b55
19 changed files with 101 additions and 53 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "General.h"
|
||||
#include "TempColModels.h"
|
||||
#include "ModelIndices.h"
|
||||
#include "ModelInfo.h"
|
||||
|
@ -159,7 +160,7 @@ CModelInfo::GetModelInfo(const char *name, int *id)
|
|||
CBaseModelInfo *modelinfo;
|
||||
for(int i = 0; i < MODELINFOSIZE; i++){
|
||||
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
||||
if(modelinfo && _strcmpi(modelinfo->GetName(), name) == 0){
|
||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name)){
|
||||
if(id)
|
||||
*id = i;
|
||||
return modelinfo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue