mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
14 lines
499 B
C++
14 lines
499 B
C++
#include <libultraship/bridge.h>
|
|||
|
|
#include "2s2h/GameInteractor/GameInteractor.h"
|
||
|
|
|
||
|
|
void RegisterDisableTakkuriSteal() {
|
||
|
|
static HOOK_ID thiefBirdStealHookID = 0;
|
||
|
|
GameInteractor::Instance->UnregisterGameHookForID<GameInteractor::ShouldVanillaBehavior>(thiefBirdStealHookID);
|
||
|
|
thiefBirdStealHookID = 0;
|
||
|
|
|
||
|
|
if (!CVarGetInteger("gEnhancements.Cheats.DisableTakkuriSteal", 0)) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
thiefBirdStealHookID = REGISTER_VB_SHOULD(VB_THIEF_BIRD_STEAL, { *should = false; });
|
||
|
|
}
|