1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00

Use printf_screen for make easier the debugging

This commit is contained in:
Francisco Javier Trujillo Mata 2021-08-07 21:59:16 +02:00
parent c19c6a3ca8
commit 187a73d93a
3 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,6 @@
BUILD_FOR_PCSX2 = 0
DEBUG = 0
SCREEN_DEBUG = 0
HAVE_THREADS = 0
MUTE_WARNINGS = 1
PS2_IP = 192.168.1.10
@ -36,6 +37,11 @@ LDFLAGS += -L$(PS2DEV)/gsKit/lib -L$(PS2SDK)/ports/lib -L.
# Lib cdvd is needed to get proper time
LIBS += -lretro_ps2 -lpatches -lgskit -ldmakit -laudsrv -lmtap -lpadx -lz -lcdvd -lelf-loader
ifeq ($(SCREEN_DEBUG), 1)
LIBS += -ldebug
RARCH_DEFINES += -DSCREEN_DEBUG
endif
ifeq ($(BUILD_FOR_PCSX2), 1)
RARCH_DEFINES += -DBUILD_FOR_PCSX2
endif

View File

@ -1,5 +1,6 @@
BUILD_FOR_PCSX2 = 0
DEBUG = 0
SCREEN_DEBUG = 0
MUTE_WARNINGS = 1
PS2_IP = 192.168.1.150
@ -32,6 +33,11 @@ LIBDIR =
LDFLAGS =
LIBS = -lelf-loader -lpatches
ifeq ($(SCREEN_DEBUG), 1)
LIBS += -ldebug
RARCH_DEFINES += -DSCREEN_DEBUG
endif
ifeq ($(BUILD_FOR_PCSX2), 1)
RARCH_DEFINES += -DBUILD_FOR_PCSX2
endif

View File

@ -26,6 +26,10 @@
#include <loadfile.h>
#include <elf-loader.h>
#if defined(SCREEN_DEBUG)
#include <debug.h>
#endif
#include <file/file_path.h>
#include <string/stdstring.h>
@ -189,6 +193,10 @@ static void frontend_ps2_get_env(int *argc, char *argv[],
static void frontend_ps2_init(void *data)
{
reset_IOP();
#if defined(SCREEN_DEBUG)
init_scr();
scr_printf("Starting RetroArch...\n");
#endif
load_modules();