notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update libretro.h
[pcsx_rearmed.git]
/
frontend
/
main.c
diff --git
a/frontend/main.c
b/frontend/main.c
index
09f6a1c
..
2ef5f52
100644
(file)
--- 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");
// 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;
emuLog = stdout;
+
SetIsoFile(NULL);
memset(&Config, 0, sizeof(Config));
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);
va_start(list, fmt);
vfprintf(emuLog, fmt, list);
va_end(list);
+ fflush(emuLog);
}
#else
}
#else