Skip to content

Commit

Permalink
Forgot to re-enable Draw HUD Hook after port.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jan 20, 2020
1 parent c6e91dc commit 7fd00d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions sonicheroes.utils.freecam/Freecam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ private void HandleFreeMode(ref IExtendedHeroesController inputs)
{
// Toggle HUD (B)
if (ButtonPressed(inputs.OneFramePressButtonFlag, ButtonFlags.FormationR))
{
_heroesController.EnableHud = !_heroesController.EnableHud;
}

// Teleport Character (A)
if (ButtonPressed(inputs.ButtonFlags, ButtonFlags.Jump))
Expand Down
2 changes: 1 addition & 1 deletion sonicheroes.utils.freecam/HeroesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public HeroesController(int port)
{
/* There is an array of pointers at 00A4CE98 but the memory they point to is static, so we can use what they point to directly. */
_port = port;
_drawHUDHook = HudFunctions.Fun_DrawHud.Hook(DrawHudImpl);
_drawHUDHook = HudFunctions.Fun_DrawHud.Hook(DrawHudImpl).Activate();
}

// Hooks
Expand Down
2 changes: 1 addition & 1 deletion sonicheroes.utils.freecam/ModConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"ModId": "sonicheroes.utils.freecam",
"ModName": "Heroes Freecam",
"ModAuthor": "Sewer56",
"ModVersion": "2.0.2",
"ModVersion": "2.0.3",
"ModDescription": "A free camera for the PC version of Sonic Heroes. Provides additional utilities like freezing world, teleporting and removing HUD.",
"ModDll": "sonicheroes.utils.freecam.dll",
"ModIcon": "Preview.png",
Expand Down

0 comments on commit 7fd00d5

Please sign in to comment.