X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmain.c;h=2ef5f5210790c66264251381cfd41b749f7973b2;hp=09f6a1ccf6bd2fa0b4eed5b308848033d82b296f;hb=7c830578fdee2aceaf974cba89c5e3a19d62f1cc;hpb=ee1a37fd6ae23862dfcdb06958e8f686ce1a5519 diff --git a/frontend/main.c b/frontend/main.c index 09f6a1cc..2ef5f521 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)); @@ -788,6 +795,7 @@ void SysPrintf(const char *fmt, ...) { va_start(list, fmt); vfprintf(emuLog, fmt, list); va_end(list); + fflush(emuLog); } #else