From: retro-wertz Date: Mon, 29 Jul 2019 03:32:40 +0000 (+0800) Subject: psxhle.c: Silence logging when using HLE bios X-Git-Tag: r24l~715^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=833174ecc4ca153acb4bf7417836af2e6cc2de49;hp=77d120bc1afa4386a4e602df6712a0850630bc1c;p=pcsx_rearmed.git psxhle.c: Silence logging when using HLE bios - at least one game (Wild Arms) is continouos spamming the log window. Silence this in a way that its easy to enable when need to. - Remove unnecessary message in Makefile --- diff --git a/Makefile b/Makefile index 1f491f30..a2785194 100644 --- a/Makefile +++ b/Makefile @@ -337,13 +337,11 @@ frontend/revision.h: FORCE target_: $(TARGET) $(TARGET): $(OBJS) - @echo "** BUILDING $(TARGET) FOR PLATFORM $(PLATFORM) **" ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $(OBJS) else $(CC_LINK) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(EXTRA_LDFLAGS) endif - @echo "** BUILD SUCCESSFUL! GG NO RE **" clean: $(PLAT_CLEAN) clean_plugins $(RM) $(TARGET) $(OBJS) $(TARGET).map frontend/revision.h diff --git a/libpcsxcore/psxhle.c b/libpcsxcore/psxhle.c index 83362ecd..75071922 100644 --- a/libpcsxcore/psxhle.c +++ b/libpcsxcore/psxhle.c @@ -23,6 +23,12 @@ #include "psxhle.h" +#if 0 +#define PSXHLE_LOG SysPrintf +#else +#define PSXHLE_LOG(...) +#endif + static void hleDummy() { psxRegs.pc = psxRegs.GPR.n.ra; @@ -54,10 +60,10 @@ static void hleC0() { } static void hleBootstrap() { // 0xbfc00000 - SysPrintf("hleBootstrap\n"); + PSXHLE_LOG("hleBootstrap\n"); CheckCdrom(); LoadCdrom(); - SysPrintf("CdromLabel: \"%s\": PC = %8.8lx (SP = %8.8lx)\n", CdromLabel, psxRegs.pc, psxRegs.GPR.n.sp); + PSXHLE_LOG("CdromLabel: \"%s\": PC = %8.8lx (SP = %8.8lx)\n", CdromLabel, psxRegs.pc, psxRegs.GPR.n.sp); } typedef struct { @@ -77,7 +83,7 @@ typedef struct { static void hleExecRet() { EXEC *header = (EXEC*)PSXM(psxRegs.GPR.n.s0); - SysPrintf("ExecRet %x: %x\n", psxRegs.GPR.n.s0, header->ret); + PSXHLE_LOG("ExecRet %x: %x\n", psxRegs.GPR.n.s0, header->ret); psxRegs.GPR.n.ra = header->ret; psxRegs.GPR.n.sp = header->_sp;