Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Update hint addresses for Update 5 Hotfix, add logging for signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ActualMandM committed Jan 10, 2024
1 parent 10ca6d7 commit a7faf8c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions HibikiPatches/Mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
SIG_SCAN
(
sigUTOCSignature,
0x1425CF036,
0x1425CF4A6,
"\x0F\x85\x00\x00\x00\x00\x40\x80\xE6\x04",
"xx????xxxx"
);

SIG_SCAN
(
sigPillarbox,
0x1440522D5,
0x1440527A5,
"\xF6\x41\x30\x01\x45\x0F\x29\x43\x00",
"xxxxxxxx?"
);

void Mod::init()
{
if (Config::console)
{
printf("[%s] sigUTOCSignature: 0x%llx\n", MOD_NAME, sigUTOCSignature());
printf("[%s] sigPillarbox: 0x%llx\n", MOD_NAME, sigPillarbox());
}

if (sigValid)
{
WRITE_MEMORY((char*)sigUTOCSignature() + 1, uint8_t, 0x84);
Expand All @@ -29,6 +35,6 @@ void Mod::init()
}
else
{
MessageBox(nullptr, TEXT("Failed to initialize! Please make sure that Hi-Fi RUSH is on Update 5 and try again."), TEXT("HibikiPatches"), MB_ICONERROR);
MessageBox(nullptr, TEXT("Failed to initialize! Please make sure that Hi-Fi RUSH is on Update 5 Hotfix and try again."), MOD_NAME, MB_ICONERROR);
}
}
2 changes: 2 additions & 0 deletions HibikiPatches/Pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#define WIN32_LEAN_AND_MEAN

#define MOD_NAME "HibikiPatches"

// Detours
#include <Windows.h>
#include <detours.h>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HibikiPatches
An ASI plugin for Hi-Fi RUSH that implements the following features:
An ASI plugin for [Hi-Fi RUSH](https://store.steampowered.com/app/1817230) that implements the following features:
- Narknon and Praydog's [UTOC Signature Bypass](https://www.nexusmods.com/hifirush/mods/1) exe patch
- Removing the letter/pillar box that can appear on non-16:9 displays

Expand Down

0 comments on commit a7faf8c

Please sign in to comment.