forked from TeamTofuShop/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:
@ -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);
|
||||
|
Reference in New Issue
Block a user