From b8b36445cb6a60d198d76fd36f69fb36a5f12b99 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Tue, 10 Mar 2009 11:54:19 +0000 Subject: [PATCH] Pcsx2-newgui: I missed *just one* file in my last commit to the newgui branch. This'll fix it so it compiles. >_< git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxgui@734 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/NewGUI/frmGameFixes.cpp | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 pcsx2/NewGUI/frmGameFixes.cpp diff --git a/pcsx2/NewGUI/frmGameFixes.cpp b/pcsx2/NewGUI/frmGameFixes.cpp new file mode 100644 index 0000000000..51dd56225a --- /dev/null +++ b/pcsx2/NewGUI/frmGameFixes.cpp @@ -0,0 +1,61 @@ + +#include "PrecompiledHeader.h" +#include "Misc.h" +#include "frmGameFixes.h" + +frmGameFixes::frmGameFixes(wxWindow* parent, int id, const wxPoint& pos, const wxSize& size, long style): + wxDialog( parent, id, _t("Game Special Fixes"), pos, size ) +{ + wxStaticBox* groupbox = new wxStaticBox( this, -1, _t("PCSX2 Gamefixes")); + wxStaticText* label_Title = new wxStaticText( + this, wxID_ANY, "Some games need special settings.\nConfigure them here.", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE + ); + wxCheckBox* chk_FPUCompareHack = new wxCheckBox( + this, wxID_ANY, "FPU Compare Hack - Special fix for Digimon Rumble Arena 2." + ); + wxCheckBox* chk_TriAce = new wxCheckBox( + this, wxID_ANY, "VU Add / Sub Hack - Special fix for Tri-Ace games!" + ); + wxCheckBox* chk_GodWar = new wxCheckBox( + this, wxID_ANY, "VU Clip Hack - Special fix for God of War" + ); + + wxBoxSizer& mainSizer = *new wxBoxSizer( wxVERTICAL ); + wxStaticBoxSizer& groupSizer = *new wxStaticBoxSizer( groupbox, wxVERTICAL ); + wxSizerFlags stdSpacing( wxSizerFlags().Border( wxALL, 6 ) ); + + groupSizer.Add( chk_FPUCompareHack, stdSpacing ); + groupSizer.Add( chk_TriAce, stdSpacing ); + groupSizer.Add( chk_GodWar, stdSpacing ); + + mainSizer.Add( label_Title, wxSizerFlags().Align(wxALIGN_CENTER).DoubleBorder() ); + mainSizer.Add( &groupSizer, wxSizerFlags().Align(wxALIGN_CENTER).DoubleHorzBorder() ); + mainSizer.Add( CreateStdDialogButtonSizer( wxOK | wxCANCEL ), wxSizerFlags().Align(wxALIGN_RIGHT).Border() ); + + SetSizerAndFit( &mainSizer ); +} + + +BEGIN_EVENT_TABLE(frmGameFixes, wxDialog) + EVT_CHECKBOX(wxID_ANY, FPUCompareHack_Click) + EVT_CHECKBOX(wxID_ANY, TriAce_Click) + EVT_CHECKBOX(wxID_ANY, GodWar_Click) +END_EVENT_TABLE(); + + +void frmGameFixes::FPUCompareHack_Click(wxCommandEvent &event) +{ + event.Skip(); +} + + +void frmGameFixes::TriAce_Click(wxCommandEvent &event) +{ + event.Skip(); +} + + +void frmGameFixes::GodWar_Click(wxCommandEvent &event) +{ + event.Skip(); +}