Convert GameInteractor_Should hook to use variadic arguments (#4383)

* Convert _Should to use variadic args

* Convert everything to use va_arg properly

* Update shop hooks to va_args

* Wrong Function

* Update hook_handlers.cpp

---------

Co-authored-by: Malkierian <malkierian@gmail.com>
Co-authored-by: Malkierian <malkierian@live.com>
This commit is contained in:
Archez
2024-10-08 23:20:09 -04:00
committed by GitHub
parent 9df3c41d8a
commit 5d311fac9f
63 changed files with 308 additions and 270 deletions

View File

@@ -200,7 +200,7 @@ void Sram_OpenSave() {
}
}
if (GameInteractor_Should(VB_REVERT_SPOILING_ITEMS, true, NULL)) {
if (GameInteractor_Should(VB_REVERT_SPOILING_ITEMS, true)) {
for (i = 0; i < ARRAY_COUNT(gSpoilingItems); i++) {
if (INV_CONTENT(ITEM_TRADE_ADULT) == gSpoilingItems[i]) {
INV_CONTENT(gSpoilingItemReverts[i]) = gSpoilingItemReverts[i];