mirror of https://github.com/PCSX2/pcsx2.git
GSdx:
- 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:
parent
ef8fe6639e
commit
eff9506cd8
|
@ -76,7 +76,7 @@ GSSettingsDlg::GSSettingsDlg( bool isOpen2 )
|
||||||
, m_IsOpen2(isOpen2)
|
, m_IsOpen2(isOpen2)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
bool allowHacks = false;
|
||||||
void GSSettingsDlg::OnInit()
|
void GSSettingsDlg::OnInit()
|
||||||
{
|
{
|
||||||
__super::OnInit();
|
__super::OnInit();
|
||||||
|
@ -232,6 +232,9 @@ void GSSettingsDlg::UpdateControls()
|
||||||
{
|
{
|
||||||
INT_PTR i;
|
INT_PTR i;
|
||||||
|
|
||||||
|
// Simple check only
|
||||||
|
bool allowHacks = !!theApp.GetConfig("allowHacks", 0);
|
||||||
|
|
||||||
if(ComboBoxGetSelData(IDC_RENDERER, i))
|
if(ComboBoxGetSelData(IDC_RENDERER, i))
|
||||||
{
|
{
|
||||||
bool dx9 = i >= 0 && i <= 2;
|
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_AA1), sw);
|
||||||
EnableWindow(GetDlgItem(m_hWnd, IDC_SWTHREADS_EDIT), sw);
|
EnableWindow(GetDlgItem(m_hWnd, IDC_SWTHREADS_EDIT), sw);
|
||||||
EnableWindow(GetDlgItem(m_hWnd, IDC_SWTHREADS), 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue