From: notaz Date: Mon, 1 Apr 2013 21:45:33 +0000 (+0300) Subject: frontend: attempt basic ios logging X-Git-Tag: r20~96 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=ea12009c5dd07e7496f67c40cfe415b41f5850e8 frontend: attempt basic ios logging --- diff --git a/frontend/main.c b/frontend/main.c index 09f6a1cc..2cf5ee0b 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -402,7 +402,14 @@ int emu_core_preinit(void) // it may be redefined by -cfg on the command line strcpy(cfgfile_basename, "pcsx.cfg"); +#ifdef IOS + emuLog = fopen("/User/Documents/pcsxr.log", "w"); + if (emuLog == NULL) + emuLog = fopen("pcsxr.log", "w"); + if (emuLog == NULL) +#endif emuLog = stdout; + SetIsoFile(NULL); memset(&Config, 0, sizeof(Config));