mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
Use printf_screen for make easier the debugging
This commit is contained in:
parent
c19c6a3ca8
commit
187a73d93a
@ -1,5 +1,6 @@
|
|||||||
BUILD_FOR_PCSX2 = 0
|
BUILD_FOR_PCSX2 = 0
|
||||||
DEBUG = 0
|
DEBUG = 0
|
||||||
|
SCREEN_DEBUG = 0
|
||||||
HAVE_THREADS = 0
|
HAVE_THREADS = 0
|
||||||
MUTE_WARNINGS = 1
|
MUTE_WARNINGS = 1
|
||||||
PS2_IP = 192.168.1.10
|
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
|
# Lib cdvd is needed to get proper time
|
||||||
LIBS += -lretro_ps2 -lpatches -lgskit -ldmakit -laudsrv -lmtap -lpadx -lz -lcdvd -lelf-loader
|
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)
|
ifeq ($(BUILD_FOR_PCSX2), 1)
|
||||||
RARCH_DEFINES += -DBUILD_FOR_PCSX2
|
RARCH_DEFINES += -DBUILD_FOR_PCSX2
|
||||||
endif
|
endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
BUILD_FOR_PCSX2 = 0
|
BUILD_FOR_PCSX2 = 0
|
||||||
DEBUG = 0
|
DEBUG = 0
|
||||||
|
SCREEN_DEBUG = 0
|
||||||
MUTE_WARNINGS = 1
|
MUTE_WARNINGS = 1
|
||||||
PS2_IP = 192.168.1.150
|
PS2_IP = 192.168.1.150
|
||||||
|
|
||||||
@ -32,6 +33,11 @@ LIBDIR =
|
|||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LIBS = -lelf-loader -lpatches
|
LIBS = -lelf-loader -lpatches
|
||||||
|
|
||||||
|
ifeq ($(SCREEN_DEBUG), 1)
|
||||||
|
LIBS += -ldebug
|
||||||
|
RARCH_DEFINES += -DSCREEN_DEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BUILD_FOR_PCSX2), 1)
|
ifeq ($(BUILD_FOR_PCSX2), 1)
|
||||||
RARCH_DEFINES += -DBUILD_FOR_PCSX2
|
RARCH_DEFINES += -DBUILD_FOR_PCSX2
|
||||||
endif
|
endif
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
#include <loadfile.h>
|
#include <loadfile.h>
|
||||||
#include <elf-loader.h>
|
#include <elf-loader.h>
|
||||||
|
|
||||||
|
#if defined(SCREEN_DEBUG)
|
||||||
|
#include <debug.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
#include <string/stdstring.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)
|
static void frontend_ps2_init(void *data)
|
||||||
{
|
{
|
||||||
reset_IOP();
|
reset_IOP();
|
||||||
|
#if defined(SCREEN_DEBUG)
|
||||||
|
init_scr();
|
||||||
|
scr_printf("Starting RetroArch...\n");
|
||||||
|
#endif
|
||||||
load_modules();
|
load_modules();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user