(Wii) Add HAVE_FILE_LOGGER debugging code

This commit is contained in:
Twinaphex 2012-04-13 23:40:10 +02:00
parent 9be0365b0e
commit 1352c29f39
2 changed files with 9 additions and 0 deletions

View File

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

View File

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