3
0
mirror of https://github.com/CrazyRedMachine/popnhax.git synced 2024-11-23 22:00:57 +01:00

wip custom highlight

This commit is contained in:
CrazyRedMachine 2024-04-27 21:45:04 +02:00
parent 3083c62c67
commit 52048c2133

View File

@ -23,9 +23,10 @@ bool g_subcategmode = false;
uint32_t g_min_id = 4000;
uint32_t g_max_id = 0;
const char *g_categname = "Custom Tracks";
const char *g_categicon = "cate_13";
const char *g_categname = "Customs";
const char *g_categicon = "cate_cc";
const char *g_categformat = "[ol:4][olc:d92f0d]%s";
const char *g_customformat = "※[rz:3][c:d92f0d]%s[/rz][/c]※";
char *g_string_addr;
uint8_t idx = 0;
@ -395,7 +396,7 @@ void hook_song_printf()
__asm("print_custom_song:\n");
__asm("lea eax, [esp+0x08]\n");
__asm("mov ebx, _g_categformat\n");
__asm("mov ebx, _g_customformat\n");
__asm("mov [eax], ebx\n");
__asm("print_regular_song:\n");
@ -420,7 +421,7 @@ void hook_artist_printf()
__asm("print_custom_artist:\n");
__asm("lea eax, [esp+0x08]\n");
__asm("mov ebx, _g_categformat\n");
__asm("mov ebx, _g_customformat\n");
__asm("mov [eax], ebx\n");
__asm("print_regular_artist:\n");