Some code clean up for new OpenGL hacks(No fix for game.ini yet (If anyone can please do it as it seems to take me forever to get it working properly))

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3198 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid 2009-05-11 08:02:30 +00:00
parent 98b0bbedf3
commit 06366417a8
2 changed files with 47 additions and 39 deletions

View File

@ -526,47 +526,44 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event)
g_Config.iPhackvalue = m_PhackvalueCB->GetSelection(); g_Config.iPhackvalue = m_PhackvalueCB->GetSelection();
if (g_Config.iPhackvalue >= 0) if (g_Config.iPhackvalue >= 0)
{ {
if (g_Config.iPhackvalue == 0) switch(g_Config.iPhackvalue)
{ {
case OGL_HACK_NONE:
g_Config.bPhackvalue1 = 0; g_Config.bPhackvalue1 = 0;
g_Config.bPhackvalue2 = 0; g_Config.bPhackvalue2 = 0;
} break;
if (g_Config.iPhackvalue == 1) case OGL_HACK_ZELDA_TP_BLOOM_HACK:
{ g_Config.bPhackvalue1 = 1;
g_Config.bProjectionHax1 = 1; break;
} case OGL_HACK_SUPER_MARIO_GALAXY:
if (g_Config.iPhackvalue == 2)
{
g_Config.bPhackvalue1 = 1; g_Config.bPhackvalue1 = 1;
g_Config.fhackvalue1 = 0.00006f; g_Config.fhackvalue1 = 0.00006f;
g_Config.bPhackvalue2 = 0; g_Config.bPhackvalue2 = 0;
} break;
if (g_Config.iPhackvalue == 3) case OGL_HACK_MARIO_KART_WII:
{
g_Config.bPhackvalue1 = 1; g_Config.bPhackvalue1 = 1;
g_Config.fhackvalue1 = 0.0006f; g_Config.fhackvalue1 = 0.00006f;
g_Config.bPhackvalue2 = 0; g_Config.bPhackvalue2 = 0;
} break;
if (g_Config.iPhackvalue == 4) case OGL_HACK_SONIC_AND_THE_BLACK_KNIGHT:
{
g_Config.bPhackvalue1 = 1; g_Config.bPhackvalue1 = 1;
g_Config.fhackvalue1 = 0.00002f; g_Config.fhackvalue1 = 0.00002f;
g_Config.bPhackvalue2 = 1; g_Config.bPhackvalue2 = 1;
g_Config.fhackvalue2 = 1.999980f; g_Config.fhackvalue2 = 1.999980f;
} break;
if (g_Config.iPhackvalue == 5) case OGL_HACK_BLEACH_VERSUS_CRUSADE:
{
g_Config.bPhackvalue2 = 1; g_Config.bPhackvalue2 = 1;
g_Config.fhackvalue2 = 0.5f; g_Config.fhackvalue2 = 0.5f;
g_Config.bPhackvalue1 = 0; g_Config.bPhackvalue1 = 0;
} break;
if (g_Config.iPhackvalue == 6) case OGL_HACK_FINAL_FANTASY_CC_ECHO_OF_TIME:
{
g_Config.bPhackvalue1 = 1; g_Config.bPhackvalue1 = 1;
g_Config.fhackvalue1 = 0.8f; g_Config.fhackvalue1 = 0.8f;
g_Config.bPhackvalue2 = 1; g_Config.bPhackvalue2 = 1;
g_Config.fhackvalue2 = 1.2f; g_Config.fhackvalue2 = 1.2f;
break;
} }
} }
break; break;
} }

View File

@ -31,6 +31,17 @@
#include <wx/filepicker.h> #include <wx/filepicker.h>
#include <wx/gbsizer.h> #include <wx/gbsizer.h>
enum
{
OGL_HACK_NONE = 0,
OGL_HACK_ZELDA_TP_BLOOM_HACK = 1,
OGL_HACK_SUPER_MARIO_GALAXY = 2,
OGL_HACK_MARIO_KART_WII = 3,
OGL_HACK_SONIC_AND_THE_BLACK_KNIGHT = 4,
OGL_HACK_BLEACH_VERSUS_CRUSADE = 5,
OGL_HACK_FINAL_FANTASY_CC_ECHO_OF_TIME = 6,
};
class ConfigDialog : public wxDialog class ConfigDialog : public wxDialog
{ {