mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement unnamed_100B6100(...)
This commit is contained in:
parent
2bade13e0c
commit
d0e488b35e
@ -1206,6 +1206,30 @@ BOOL IsFileOrDirectoryExists(char * szPath)
|
||||
//----------------------------------------------------
|
||||
|
||||
|
||||
DWORD unnamed_100B6100(char *szString, int nMaxLen)
|
||||
{
|
||||
char tmp_buf[2049];
|
||||
memset(tmp_buf, 0, sizeof(tmp_buf));
|
||||
|
||||
if(szString &&
|
||||
strlen(szString) < 400 &&
|
||||
strstr(szString, "~k~") != NULL)
|
||||
{
|
||||
strcpy(tmp_buf, szString);
|
||||
|
||||
_asm lea edx, tmp_buf
|
||||
_asm push edx
|
||||
_asm mov edx, 0x69E160
|
||||
_asm call edx
|
||||
_asm pop edx
|
||||
|
||||
if((int)strlen(tmp_buf) > nMaxLen) return 0;
|
||||
|
||||
strcpy(szString, tmp_buf);
|
||||
return strlen(tmp_buf);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -14,3 +14,5 @@ BYTE __stdcall FindPlayerNumFromPedPtr(DWORD dwPedPtr);
|
||||
void GameResetRadarColors();
|
||||
|
||||
BOOL IsFileOrDirectoryExists(char * szPath);
|
||||
|
||||
DWORD unnamed_100B6100(char *szString, int nMaxLen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user