mirror of
https://github.com/CrazyRedMachine/popnhax.git
synced 2025-01-23 23:04:10 +01:00
enhance custom popkuns handling for record mode
This commit is contained in:
parent
0ecb8a8d58
commit
f4f97e0b24
@ -4494,7 +4494,7 @@ static bool version_check() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *popkun_change = "system27/gmcmh.ifs";
|
const char *popkun_change = "gmcmh.ifs";
|
||||||
void (*gm_ifs_load)();
|
void (*gm_ifs_load)();
|
||||||
void loadtexhook() {
|
void loadtexhook() {
|
||||||
if(p_record) {
|
if(p_record) {
|
||||||
@ -6569,6 +6569,11 @@ static bool patch_record_mode(bool quickretire)
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
// recmode pop-kun change
|
// recmode pop-kun change
|
||||||
|
// Check if custom popkuns are present
|
||||||
|
if (access("data_mods\\_popnhax_assets\\tex\\gmcmh.ifs", F_OK) == 0)
|
||||||
|
{
|
||||||
|
LOG("popnhax: record: custom popkun assets found. Using %s\n", popkun_change);
|
||||||
|
|
||||||
int64_t pattern_offset = search(data, dllSize,
|
int64_t pattern_offset = search(data, dllSize,
|
||||||
"\x5E\x83\xC4\x10\xC3\x51\xE8", 7, 0);
|
"\x5E\x83\xC4\x10\xC3\x51\xE8", 7, 0);
|
||||||
if (pattern_offset == -1) {
|
if (pattern_offset == -1) {
|
||||||
@ -6584,7 +6589,11 @@ static bool patch_record_mode(bool quickretire)
|
|||||||
#if DEBUG == 1
|
#if DEBUG == 1
|
||||||
LOG("popnhax: record: loadtexhook_addr is 0x%llX\n", patch_addr);
|
LOG("popnhax: record: loadtexhook_addr is 0x%llX\n", patch_addr);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG("popnhax: record: custom popkun assets not found. Using regular ones\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG == 1
|
#if DEBUG == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user