post-release bugfixes

This commit is contained in:
CrazyRedMachine 2024-05-04 01:51:59 +02:00
parent 4d618e5d1c
commit 15b1bf20a7
4 changed files with 7 additions and 7 deletions

View File

@ -16,13 +16,13 @@ include popnhax/Module.mk
zipdir := $(BUILDDIR)/zip
popnhax_version := $(shell grep "define PROGRAM_VERSION" popnhax/dllmain.cc | cut -d'"' -f2)
$(BUILDDIR)/popnhax_$(popnhax_version).zip: \
$(BUILDDIR)/popnhax_v$(popnhax_version).zip: \
build/bin/avs2_1508-32/popnhax.dll
@echo ... $@
@mkdir -p $(zipdir)
@cp -a -p build/bin/avs2_1508-32/popnhax.dll $(zipdir)
@cp -r -a -p dist/popnhax/* $(zipdir)
@cd $(zipdir) \
&& zip -r ../popnhax_$(popnhax_version).zip ./*
&& zip -r ../popnhax_v$(popnhax_version).zip ./*
all: $(BUILDDIR)/popnhax_$(popnhax_version).zip
all: $(BUILDDIR)/popnhax_v$(popnhax_version).zip

View File

@ -146,8 +146,8 @@
<!-- Custom category options -->
<!-- minimum songid for a song to be seen as "custom" -->
<custom_categ_min_songid __type="u16">4000</custom_categ_min_songid>
<!-- maximum songid for a song to be seen as "custom" (0 = no limit) -->
<custom_categ_max_songid __type="u16">0</custom_categ_max_songid>
<!-- maximum songid for a song to be seen as "custom" (0 = no limit, not recommended since "random" category will use fake song ids in the 65400+ range) -->
<custom_categ_max_songid __type="u16">65400</custom_categ_max_songid>
<!-- Category title for customs -->
<custom_category_title __type="str">Customs</custom_category_title>
<!-- Format used for category title (in BM2DXFontScript format, refer to BM2DXFontScript.md in popnhax_tools repo) -->

View File

@ -695,7 +695,7 @@ static bool patch_favorite_categ(const char *game_dll_fn) {
//hook result screen to replace 3 functions
{
int64_t first_loc = search(data, dllSize, "\x10\xBF\x07\x00\x00\x00\xC6\x85", 8, 0);
int64_t first_loc = search(data, dllSize, "\xBF\x07\x00\x00\x00\xC6\x85", 7, 0);
if (first_loc == -1) {
LOG("popnhax: local_favorites: cannot find result screen function\n");
return false;

View File

@ -32,7 +32,7 @@
#include "SearchFile.h"
#define PROGRAM_VERSION "1.11"
#define PROGRAM_VERSION "1.11b"
const char *g_game_dll_fn = NULL;
const char *g_config_fn = NULL;