forked from Dniel97/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 */
|
/* Initialize debug helpers */
|
||||||
|
|
||||||
spike_hook_init();
|
spike_hook_init("chunispike.txt");
|
||||||
gfx_set_windowed();
|
gfx_set_windowed();
|
||||||
|
|
||||||
dprintf("--- End chuni_pre_startup ---\n");
|
dprintf("--- End chuni_pre_startup ---\n");
|
||||||
|
@ -121,7 +121,7 @@ static void spike_insert_log_levels(ptrdiff_t rva, size_t count)
|
|||||||
|
|
||||||
/* Config reader */
|
/* Config reader */
|
||||||
|
|
||||||
void spike_hook_init(void)
|
void spike_hook_init(const char *path)
|
||||||
{
|
{
|
||||||
int match;
|
int match;
|
||||||
int count;
|
int count;
|
||||||
@ -130,7 +130,7 @@ void spike_hook_init(void)
|
|||||||
char *ret;
|
char *ret;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
f = fopen("spike.txt", "r");
|
f = fopen(path, "r");
|
||||||
|
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
return;
|
return;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
void spike_hook_init(void);
|
void spike_hook_init(const char *path);
|
||||||
|
Loading…
Reference in New Issue
Block a user