Better stub for PM_IsAdsAllowed
This commit is contained in:
parent
f7301b3864
commit
c218aa89ec
@ -1100,19 +1100,23 @@ namespace Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PM_IsAdsAllowed(Game::playerState_s* playerState)
|
__declspec(naked) bool PM_IsAdsAllowed(playerState_s* /*ps*/)
|
||||||
{
|
{
|
||||||
bool result;
|
|
||||||
|
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
mov esi, playerState
|
push eax
|
||||||
mov ebx, 0x5755A0
|
pushad
|
||||||
call ebx
|
|
||||||
mov result, al // AL
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
mov esi, [esp + 0x24 + 0x4] // ps
|
||||||
|
mov ecx, 0x5755A0
|
||||||
|
call ecx
|
||||||
|
|
||||||
|
mov [esp + 0x20], eax
|
||||||
|
popad
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
ret
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__declspec(naked) void FS_AddLocalizedGameDirectory(const char* /*path*/, const char* /*dir*/)
|
__declspec(naked) void FS_AddLocalizedGameDirectory(const char* /*path*/, const char* /*dir*/)
|
||||||
|
@ -1069,7 +1069,7 @@ namespace Game
|
|||||||
|
|
||||||
void FS_AddLocalizedGameDirectory(const char *path, const char *dir);
|
void FS_AddLocalizedGameDirectory(const char *path, const char *dir);
|
||||||
|
|
||||||
bool PM_IsAdsAllowed(Game::playerState_s* playerState);
|
bool PM_IsAdsAllowed(playerState_s* ps);
|
||||||
|
|
||||||
void ShowMessageBox(const std::string& message, const std::string& title);
|
void ShowMessageBox(const std::string& message, const std::string& title);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user