From fd7b16364314c13952cee868bb3c1f54bcbcce9f Mon Sep 17 00:00:00 2001 From: "ramapcsx2.code" Date: Sat, 2 Mar 2013 11:51:14 +0000 Subject: [PATCH] GSdx: Committing a fix for the Steambot Chronicles hack, thanks miseru99. Also: using a new alias, yay :p git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5580 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSSettingsDlg.cpp | 3 ++- plugins/GSdx/GSState.cpp | 28 +++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/plugins/GSdx/GSSettingsDlg.cpp b/plugins/GSdx/GSSettingsDlg.cpp index b93aef9a16..b2413f01d7 100644 --- a/plugins/GSdx/GSSettingsDlg.cpp +++ b/plugins/GSdx/GSSettingsDlg.cpp @@ -588,7 +588,8 @@ bool GSHacksDlg::OnMessage(UINT message, WPARAM wParam, LPARAM lParam) case IDC_AGGRESSIVECRC: helpstr = "Use more aggressive CRC hacks on some games\n\n" "Only affects few games, removing some effects which might make the image sharper/clearer.\n" - "Affected games: FFX, FFX2, FFXII, GOW2, ICO, SoTC, SSX3."; + "Affected games: FFX, FFX2, FFXII, GOW2, ICO, SoTC, SSX3.\n" + "Works as a speedhack for: Steambot Chronicles."; break; case IDC_ALPHASTENCIL: helpstr = "Extend stencil based emulation of destination alpha to perform stencil operations while drawing.\n\n" diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index eef0ec79a4..093b2ec814 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -5042,23 +5042,25 @@ bool GSC_UrbanReign(const GSFrameInfo& fi, int& skip) bool GSC_SteambotChronicles(const GSFrameInfo& fi, int& skip) { - // Author: miseru99 on forums.pcsx2.net - if(fi.TME && fi.TPSM == PSM_PSMCT16S) + if(skip == 0) { - if(fi.FBP == 0x1180) + // Author: miseru99 on forums.pcsx2.net + if(fi.TME && fi.TPSM == PSM_PSMCT16S) { - skip=1;//1 deletes some of the glitched effects - } - else if(fi.FBP == 0) - { - skip=100;//deletes most others(too high deletes the buggy sea completely;c, too low causes glitches to be visible) - } - else if(g_aggressive && fi.FBP != 0)//Agressive CRC - { - skip=19;//"speedhack", makes the game very light, vaporized water can disappear when not looked at directly, possibly some interface still, other value to try: 6 breaks menu background, possibly nothing(?) during gameplay, but it's slower, hence not much of a speedhack anymore + if(fi.FBP == 0x1180) + { + skip=1;//1 deletes some of the glitched effects + } + else if(fi.FBP == 0) + { + skip=100;//deletes most others(too high deletes the buggy sea completely;c, too low causes glitches to be visible) + } + else if(g_aggressive && fi.FBP != 0)//Agressive CRC + { + skip=19;//"speedhack", makes the game very light, vaporized water can disappear when not looked at directly, possibly some interface still, other value to try: 6 breaks menu background, possibly nothing(?) during gameplay, but it's slower, hence not much of a speedhack anymore + } } } - return true; }