(PSP1) Now logs to file

This commit is contained in:
twinaphex 2012-11-26 02:59:29 +01:00
parent e1ea973e58
commit 9a02b747d7
2 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,7 @@
RARCH_VERSION = "0.9.8-beta3"
HAVE_FILE_LOGGER = 1
TARGET = retroarchpsp
INCDIR =
@ -7,6 +9,11 @@ CFLAGS = -O2 -G0 -Wall -g -std=gnu99 -ffast-math
ASFLAGS = $(CFLAGS)
RARCH_DEFINES = -DPSP -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_GETOPT_LONG -DHAVE_FILEBROWSER -DHAVE_RARCH_MAIN_WRAP -DHAVE_ZLIB -DWANT_RZLIB -DHAVE_CONFIGFILE=1 -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
CFLAGS += $(RARCH_DEFINES)
LIBDIR =

View File

@ -72,13 +72,27 @@ int main(int argc, char *argv[])
get_environment_settings(argc, argv);
#ifdef HAVE_FILE_LOGGER
log_fp = fopen("ms0:/retroarch-log.txt", "w");
#endif
g_extern.verbose = true;
RARCH_LOG("TEST...\n");
sceDisplayWaitVblankStart();
pspDebugScreenClear();
pspDebugScreenSetXY(0, 0);
printf("RetroArch PSP test.\n");
RARCH_LOG("RetroArch PSP test.\n");
rarch_sleep(20);
g_extern.verbose = false;
#ifdef HAVE_FILE_LOGGER
fclose(log_fp);
#endif
sceKernelExitGame();
return 1;
}