Files
mckinleeandGitHub 7e10b1315e [Enhancement] Disable Takkuri Steal (#776)
* simple and works

* implement proxy's feedback
Co-authored-by: Garrett Joe Cox <garrettjcox@gmail.com>

* forgot to remove unneeded check from testing

* remove null arg

* simple and works

* implement proxy's feedback
Co-authored-by: Garrett Joe Cox <garrettjcox@gmail.com>

* forgot to remove unneeded check from testing

* remove null arg

* changes

* bump lus

* add checkbox to modern menu

* clang

* archez feedback

* proxy feedback
2024-10-07 11:02:36 -05:00

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; });
}