From ea12009c5dd07e7496f67c40cfe415b41f5850e8 Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Tue, 2 Apr 2013 00:45:33 +0300
Subject: [PATCH] frontend: attempt basic ios logging

---
 frontend/main.c | 7 +++++++
 1 file changed, 7 insertions(+)

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));
-- 
2.39.5