From 15b1bf20a7445f3f0fcf5de483aafd60a0cc268d Mon Sep 17 00:00:00 2001 From: CrazyRedMachine Date: Sat, 4 May 2024 01:51:59 +0200 Subject: [PATCH] post-release bugfixes --- Module.mk | 6 +++--- dist/popnhax/popnhax.xml | 4 ++-- popnhax/custom_categs.cc | 2 +- popnhax/dllmain.cc | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Module.mk b/Module.mk index ef3c380..a880884 100644 --- a/Module.mk +++ b/Module.mk @@ -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 diff --git a/dist/popnhax/popnhax.xml b/dist/popnhax/popnhax.xml index cb51513..a0baebf 100644 --- a/dist/popnhax/popnhax.xml +++ b/dist/popnhax/popnhax.xml @@ -146,8 +146,8 @@ 4000 - - 0 + + 65400 Customs diff --git a/popnhax/custom_categs.cc b/popnhax/custom_categs.cc index ad29d3c..b292fcd 100644 --- a/popnhax/custom_categs.cc +++ b/popnhax/custom_categs.cc @@ -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; diff --git a/popnhax/dllmain.cc b/popnhax/dllmain.cc index 8c0702b..cedda86 100644 --- a/popnhax/dllmain.cc +++ b/popnhax/dllmain.cc @@ -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;