From c2804a28061337088d367472e4fb35fc4d70b00e Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sat, 17 Jul 2010 10:55:22 +0000 Subject: [PATCH] zzogl-pg: Change the messages when finding a game crc a bit. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3512 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/GSmain.cpp | 23 +++++++++++++++++------ plugins/zzogl-pg/opengl/targets.cpp | 1 + 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/plugins/zzogl-pg/opengl/GSmain.cpp b/plugins/zzogl-pg/opengl/GSmain.cpp index 9e15dc7d85..83d8d34af3 100644 --- a/plugins/zzogl-pg/opengl/GSmain.cpp +++ b/plugins/zzogl-pg/opengl/GSmain.cpp @@ -141,7 +141,7 @@ void CALLBACK GSsetGameCRC(int crc, int options) g_LastCRC = crc; - ZZLog::Error_Log("CRC = %x", crc); + if (crc != 0) ZZLog::Error_Log("Current game CRC is %x.", crc); if (CRCValueChanged && (crc != 0)) { @@ -149,13 +149,24 @@ void CALLBACK GSsetGameCRC(int crc, int options) { if (crc_game_list[i].crc == crc) { - if (crc_game_list[i].v_thresh > 0) VALIDATE_THRESH = crc_game_list[i].v_thresh; - if (crc_game_list[i].t_thresh > 0) TEXDESTROY_THRESH = crc_game_list[i].t_thresh; + ZZLog::Error_Log("Found CRC[%x] in crc game list.", crc); + + if (crc_game_list[i].v_thresh > 0) + { + VALIDATE_THRESH = crc_game_list[i].v_thresh; + ZZLog::Error_Log("Setting VALIDATE_THRESH to %d", VALIDATE_THRESH); + } + if (crc_game_list[i].t_thresh > 0) + { + TEXDESTROY_THRESH = crc_game_list[i].t_thresh; + ZZLog::Error_Log("Setting TEXDESTROY_THRESH to %d", VALIDATE_THRESH); + } conf.def_hacks._u32 |= crc_game_list[i].flags; - - ZZLog::Error_Log("Found CRC[%x] in crc game list.", crc); - + if (crc_game_list[i].flags != 0) + { + ZZLog::Error_Log("Enabling flags (0x%x).", crc_game_list[i].flags); + } return; } } diff --git a/plugins/zzogl-pg/opengl/targets.cpp b/plugins/zzogl-pg/opengl/targets.cpp index d24376eb38..41e0ccbabf 100644 --- a/plugins/zzogl-pg/opengl/targets.cpp +++ b/plugins/zzogl-pg/opengl/targets.cpp @@ -246,6 +246,7 @@ void ZeroGS::CRenderTarget::SetTarget(int fbplocal, const Rect2& scissor, int co } // set render states + // Bleh. I *really* need to fix this. << 3 when setting the scissors, then >> 3 when using them... --Arcum42 scissorrect.x = scissor.x0 >> 3; scissorrect.y = (scissor.y0 >> 3) + dy; scissorrect.w = (scissor.x1 >> 3) + 1;