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:
Tau 2018-11-12 00:13:27 -05:00
parent 2440be1cbf
commit 9614185511
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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;

View File

@ -1,3 +1,3 @@
#pragma once
void spike_hook_init(void);
void spike_hook_init(const char *path);