forked from Popn_Tools/popnhax
enhance custom popkuns handling for record mode
This commit is contained in:
parent
27d6453bd3
commit
aa7505206c
@ -4494,7 +4494,7 @@ static bool version_check() {
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *popkun_change = "system27/gmcmh.ifs";
|
||||
const char *popkun_change = "gmcmh.ifs";
|
||||
void (*gm_ifs_load)();
|
||||
void loadtexhook() {
|
||||
if(p_record) {
|
||||
@ -6569,6 +6569,11 @@ static bool patch_record_mode(bool quickretire)
|
||||
}
|
||||
{
|
||||
// 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,
|
||||
"\x5E\x83\xC4\x10\xC3\x51\xE8", 7, 0);
|
||||
if (pattern_offset == -1) {
|
||||
@ -6584,7 +6589,11 @@ static bool patch_record_mode(bool quickretire)
|
||||
#if DEBUG == 1
|
||||
LOG("popnhax: record: loadtexhook_addr is 0x%llX\n", patch_addr);
|
||||
#endif
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG("popnhax: record: custom popkun assets not found. Using regular ones\n");
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG == 1
|
||||
|
Loading…
Reference in New Issue
Block a user