mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match RemoveColorEmbedsFromString(...)
This commit is contained in:
parent
1f42d8cc6e
commit
07904813b5
@ -1897,6 +1897,20 @@ DWORD GetColorFromEmbedCode(wchar_t *szString)
|
||||
return 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
void RemoveColorEmbedsFromString(char *szString)
|
||||
{
|
||||
while(*szString)
|
||||
{
|
||||
if(GetColorFromEmbedCode(szString) != 0xFFFFFFFF)
|
||||
{
|
||||
strcpy(szString, szString + 8);
|
||||
continue;
|
||||
}
|
||||
szString++;
|
||||
}
|
||||
*szString = 0;
|
||||
}
|
||||
|
||||
DWORD unnamed_100B6100(char *szString, int nMaxLen)
|
||||
{
|
||||
char tmp_buf[2049];
|
||||
|
@ -69,3 +69,4 @@ BOOL IsHexChar(char c);
|
||||
BOOL IsHexChar(wchar_t c);
|
||||
DWORD GetColorFromEmbedCode(char *szString);
|
||||
DWORD GetColorFromEmbedCode(wchar_t *szString);
|
||||
void RemoveColorEmbedsFromString(char *szString);
|
||||
|
@ -8,7 +8,7 @@ LRESULT APIENTRY NewWndProc(HWND,UINT,WPARAM,LPARAM);
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void InstallNewWindowProcedure()
|
||||
void InstallWindowProcedure()
|
||||
{
|
||||
HWND hwndGameWnd = pGame->GetMainWindowHwnd();
|
||||
|
||||
@ -31,7 +31,7 @@ BOOL SubclassGameWindow()
|
||||
DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE);
|
||||
SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS);
|
||||
|
||||
InstallNewWindowProcedure();
|
||||
InstallWindowProcedure();
|
||||
|
||||
SetWindowText(hwndGameWnd,"GTA:SA:MP");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user