Merge pull request #12769 from fjtrujy/DEBUG_SCREEN

Use printf_screen for make easier the debugging
This commit is contained in:
Autechre 2021-08-09 14:23:21 +02:00 committed by GitHub
commit efffa2a76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();