- Hide the hacks from users, unless "allowHacks" is written to the GSdx.ini first.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2609 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-02-19 22:01:28 +00:00
parent ef8fe6639e
commit eff9506cd8
1 changed files with 11 additions and 1 deletions

View File

@ -76,7 +76,7 @@ GSSettingsDlg::GSSettingsDlg( bool isOpen2 )
, m_IsOpen2(isOpen2)
{
}
bool allowHacks = false;
void GSSettingsDlg::OnInit()
{
__super::OnInit();
@ -232,6 +232,9 @@ void GSSettingsDlg::UpdateControls()
{
INT_PTR i;
// Simple check only
bool allowHacks = !!theApp.GetConfig("allowHacks", 0);
if(ComboBoxGetSelData(IDC_RENDERER, i))
{
bool dx9 = i >= 0 && i <= 2;
@ -261,5 +264,12 @@ void GSSettingsDlg::UpdateControls()
EnableWindow(GetDlgItem(m_hWnd, IDC_AA1), sw);
EnableWindow(GetDlgItem(m_hWnd, IDC_SWTHREADS_EDIT), sw);
EnableWindow(GetDlgItem(m_hWnd, IDC_SWTHREADS), sw);
EnableWindow(GetDlgItem(m_hWnd, IDC_MSAAEDIT), hw);
EnableWindow(GetDlgItem(m_hWnd, IDC_MSAA), hw);
EnableWindow(GetDlgItem(m_hWnd, IDC_ALPHAHACK), allowHacks && hw);
EnableWindow(GetDlgItem(m_hWnd, IDC_OFFSETHACK), allowHacks && hw);
EnableWindow(GetDlgItem(m_hWnd, IDC_SKIPDRAWHACK), allowHacks && hw);
EnableWindow(GetDlgItem(m_hWnd, IDC_SKIPDRAWHACKEDIT), allowHacks && hw);
}
}