mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
* 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
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; });
|
|
} |