wxgui: Get the speed hacks squared away.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxgui@1755 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-09-06 10:46:38 +00:00
parent 0f4bad4d67
commit 3ee092530e
1 changed files with 9 additions and 1 deletions

View File

@ -135,7 +135,7 @@ Panels::SpeedHacksPanel::SpeedHacksPanel( wxWindow& parent, int idealWidth ) :
// ------------------------------------------------------------------------
// VU Cycle Stealing Hack Section:
m_slider_vustealer = new wxSlider( this, wxID_ANY, opts.VUCycleSteal, 0, 4, wxDefaultPosition, wxDefaultSize,
m_slider_vustealer = new wxSlider( this, wxID_ANY, opts.VUCycleSteal, 0, 3, wxDefaultPosition, wxDefaultSize,
wxHORIZONTAL | wxSL_AUTOTICKS | wxSL_LABELS );
tooltip = pxE( ".Tooltips:Speedhacks:VUCycleStealing Slider",
@ -164,6 +164,8 @@ Panels::SpeedHacksPanel::SpeedHacksPanel( wxWindow& parent, int idealWidth ) :
L"RPG titles. Games that do not use this method of vsync will see little or no speeup from this hack."
) );
m_check_intc->SetValue(opts.IntcStat);
m_check_b1fc0 = &AddCheckBox(miscSizer, _("Enable BIFC0 Spin Detection"),
_("Moderate speedup for some games, with no known side effects. [Recommended]" ),
pxE( ".Tooltips:Speedhacks:BIFC0",
@ -172,6 +174,8 @@ Panels::SpeedHacksPanel::SpeedHacksPanel( wxWindow& parent, int idealWidth ) :
L"that and responds by fast-forwarding the EE until the IOP signals that the task is complete."
) );
m_check_b1fc0->SetValue(opts.BIFC0);
m_check_IOPx2 = &AddCheckBox(miscSizer, _("IOP x2 cycle rate hack"),
_("Small Speedup and works well with most games; may cause some games to hang during startup."),
pxE( ".Tooltips:Speedhacks:IOPx2",
@ -179,6 +183,8 @@ Panels::SpeedHacksPanel::SpeedHacksPanel( wxWindow& parent, int idealWidth ) :
L"The speedup is very minor, so this hack is generally not recommended."
) );
m_check_IOPx2->SetValue(opts.IopCycleRate_X2);
cycleHacksSizer.Add( &cyclerateSizer, SizerFlags::TopLevelBox() );
cycleHacksSizer.Add( &stealerSizer, SizerFlags::TopLevelBox() );
@ -203,10 +209,12 @@ void Panels::SpeedHacksPanel::Apply( AppConfig& conf )
void Panels::SpeedHacksPanel::EECycleRate_Scroll(wxScrollEvent &event)
{
m_msg_eecycle->SetLabel(GetEEcycleSliderMsg(m_slider_eecycle->GetValue()));
event.Skip();
}
void Panels::SpeedHacksPanel::VUCycleRate_Scroll(wxScrollEvent &event)
{
m_msg_vustealer->SetLabel(GetVUcycleSliderMsg(m_slider_vustealer->GetValue()));
event.Skip();
}