mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
(Wii) Add HAVE_FILE_LOGGER debugging code
This commit is contained in:
parent
9be0365b0e
commit
1352c29f39
@ -636,6 +636,13 @@ int ssnes_main_init_wrap(const struct ssnes_main_wrap *args)
|
||||
if (args->verbose)
|
||||
argv[argc++] = strdup("-v");
|
||||
|
||||
#ifdef HAVE_FILE_LOGGER
|
||||
SSNES_LOG("foo\n");
|
||||
for(int i = 0; i < argc; i++)
|
||||
SSNES_LOG("arg #%d: %s\n", i, argv[i]);
|
||||
SSNES_LOG("bar\n");
|
||||
#endif
|
||||
|
||||
int ret = ssnes_main_init(argc, argv);
|
||||
|
||||
char **tmp = argv;
|
||||
@ -645,6 +652,7 @@ int ssnes_main_init_wrap(const struct ssnes_main_wrap *args)
|
||||
tmp++;
|
||||
}
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -131,6 +131,7 @@ int main(void)
|
||||
fatInitDefault();
|
||||
|
||||
#ifdef HAVE_FILE_LOGGER
|
||||
g_extern.verbose = true;
|
||||
log_fp = fopen("sd:/ssnes-log.txt", "w");
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user