forked from Hay1tsme/segatools
util/spike.c: Use different filenames for each DLL
Might want to hook Chunithm and the card reader satellite process side by side for instance.
This commit is contained in:
parent
2440be1cbf
commit
9614185511
@ -64,7 +64,7 @@ static DWORD CALLBACK chuni_pre_startup(void)
|
||||
|
||||
/* Initialize debug helpers */
|
||||
|
||||
spike_hook_init();
|
||||
spike_hook_init("chunispike.txt");
|
||||
gfx_set_windowed();
|
||||
|
||||
dprintf("--- End chuni_pre_startup ---\n");
|
||||
|
@ -121,7 +121,7 @@ static void spike_insert_log_levels(ptrdiff_t rva, size_t count)
|
||||
|
||||
/* Config reader */
|
||||
|
||||
void spike_hook_init(void)
|
||||
void spike_hook_init(const char *path)
|
||||
{
|
||||
int match;
|
||||
int count;
|
||||
@ -130,7 +130,7 @@ void spike_hook_init(void)
|
||||
char *ret;
|
||||
FILE *f;
|
||||
|
||||
f = fopen("spike.txt", "r");
|
||||
f = fopen(path, "r");
|
||||
|
||||
if (f == NULL) {
|
||||
return;
|
||||
|
@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
void spike_hook_init(void);
|
||||
void spike_hook_init(const char *path);
|
||||
|
Loading…
Reference in New Issue
Block a user