diff --git a/ios/RetroArch/main.m b/ios/RetroArch/main.m index 571ece203c..8630ebc2f1 100644 --- a/ios/RetroArch/main.m +++ b/ios/RetroArch/main.m @@ -40,7 +40,7 @@ #define GSEVENT_MOD_ALT (1 << 19) #define GSEVENT_MOD_CTRL (1 << 20) -//#define HAVE_DEBUG_FILELOG +#define HAVE_DEBUG_FILELOG static ios_input_data_t g_input_data; @@ -149,9 +149,8 @@ int main(int argc, char *argv[]) NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console_stdout.log"]; - freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a+", stdout); - NSString *logPath2 = [documentsDirectory stringByAppendingPathComponent:@"console_stderr.log"]; - freopen([logPath2 cStringUsingEncoding:NSASCIIStringEncoding], "a+", stderr); + freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stdout); + //freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding], "a", stderr); #endif #endif @autoreleasepool { diff --git a/libretro-test/Makefile b/libretro-test/Makefile index d05ce3679b..15853aaeeb 100644 --- a/libretro-test/Makefile +++ b/libretro-test/Makefile @@ -22,13 +22,19 @@ else ifeq ($(platform), osx) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC SHARED := -dynamiclib +else ifeq ($(platform), ios) + TARGET := $(TARGET_NAME)_libretro_ios.dylib + fpic := -fPIC + SHARED := -dynamiclib + DEFINES := -DIOS + CC = clang -arch armv7 -isysroot $(IOSSDK) else ifeq ($(platform), qnx) TARGET := $(TARGET_NAME)_libretro_qnx.so fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined else CC = gcc - TARGET := retro.dll + TARGET := $(TARGET_NAME)_retro.dll SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined endif