Skip to content

Commit

Permalink
Use HOOK_ID typedef (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
inspectredc authored May 28, 2024
1 parent 01ae001 commit 291973f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mm/2s2h/Enhancements/Camera/DebugCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ void Camera_DebugCam(Camera* camera) {
*eye = *eyeNext;
}

static uint32_t freeCamVBHookId = 0;
static uint32_t freeCamDisableInputsId = 0;
static HOOK_ID freeCamVBHookId = 0;
static HOOK_ID freeCamDisableInputsId = 0;

void RegisterDebugCam() {
sDebugCamRefreshParams = true;
Expand Down
4 changes: 2 additions & 2 deletions mm/2s2h/Enhancements/Camera/FreeLook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ bool Camera_CanFreeLook(Camera* camera) {
return sCanFreeLook;
}

static uint32_t freeLookCameraSettingChangeHookId = 0;
static uint32_t freeLookCameraVBHookId = 0;
static HOOK_ID freeLookCameraSettingChangeHookId = 0;
static HOOK_ID freeLookCameraVBHookId = 0;

void RegisterCameraFreeLook() {
if (freeLookCameraVBHookId) {
Expand Down
2 changes: 1 addition & 1 deletion mm/2s2h/Enhancements/Cheats/MoonJump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "Enhancements/GameInteractor/GameInteractor.h"
#include "variables.h"

static uint32_t moonJumpOnLGameStateUpdateHookId = 0;
static HOOK_ID moonJumpOnLGameStateUpdateHookId = 0;
void RegisterMoonJumpOnL() {
if (moonJumpOnLGameStateUpdateHookId) {
GameInteractor::Instance->UnregisterGameHook<GameInteractor::OnGameStateUpdate>(
Expand Down
4 changes: 2 additions & 2 deletions mm/2s2h/Enhancements/Saving/SavingEnhancements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ static uint32_t iconTimer = 0;
static uint64_t currentTimestamp = 0;
static uint64_t lastSaveTimestamp = GetUnixTimestamp();

static uint32_t autosaveGameStateUpdateHookId = 0;
static uint32_t autosaveGameStateDrawFinishHookId = 0;
static HOOK_ID autosaveGameStateUpdateHookId = 0;
static HOOK_ID autosaveGameStateDrawFinishHookId = 0;

// Used for saving through Autosaves and Pause Menu saves.
extern "C" int32_t GetSaveEntrance(PlayState* play) {
Expand Down

0 comments on commit 291973f

Please sign in to comment.