2013-12-02 11:17:07 -05:00
|
|
|
// TabDirectX.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "TargetDlg.h"
|
|
|
|
#include "TabCompat.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#undef THIS_FILE
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CTabCompat dialog
|
|
|
|
|
|
|
|
CTabCompat::CTabCompat(CWnd* pParent /*=NULL*/)
|
|
|
|
// : CTargetDlg(pParent)
|
|
|
|
: CDialog(CTabCompat::IDD, pParent)
|
|
|
|
{
|
|
|
|
//{{AFX_DATA_INIT(CTabCompat)
|
|
|
|
// NOTE: the ClassWizard will add member initialization here
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
}
|
|
|
|
|
|
|
|
void CTabCompat::DoDataExchange(CDataExchange* pDX)
|
|
|
|
{
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
CTargetDlg *cTarget = ((CTargetDlg *)(this->GetParent()->GetParent()));
|
|
|
|
DDX_Check(pDX, IDC_FAKEVERSION, cTarget->m_FakeVersion);
|
|
|
|
DDX_LBIndex(pDX, IDC_LISTFAKE, cTarget->m_FakeVersionId);
|
2013-01-07 11:38:05 -05:00
|
|
|
DDX_Check(pDX, IDC_SINGLEPROCAFFINITY, cTarget->m_SingleProcAffinity);
|
2013-12-02 11:17:07 -05:00
|
|
|
DDX_Check(pDX, IDC_HANDLEEXCEPTIONS, cTarget->m_HandleExceptions);
|
|
|
|
DDX_Check(pDX, IDC_LIMITRESOURCES, cTarget->m_LimitResources);
|
|
|
|
DDX_Check(pDX, IDC_SUPPRESSIME, cTarget->m_SuppressIME);
|
2013-10-08 12:38:12 -04:00
|
|
|
DDX_Check(pDX, IDC_CDROMDRIVETYPE, cTarget->m_CDROMDriveType);
|
2013-07-09 12:38:16 -04:00
|
|
|
DDX_Check(pDX, IDC_FONTBYPASS, cTarget->m_FontBypass);
|
2013-09-16 12:38:17 -04:00
|
|
|
DDX_Check(pDX, IDC_BUFFEREDIOFIX, cTarget->m_BufferedIOFix);
|
2013-12-22 11:38:36 -05:00
|
|
|
DDX_Check(pDX, IDC_NOPERFCOUNTER, cTarget->m_NoPerfCounter);
|
2014-06-22 12:39:24 -04:00
|
|
|
DDX_Check(pDX, IDC_HIDECDROMEMPTY, cTarget->m_HideCDROMEmpty);
|
2014-07-28 12:39:37 -04:00
|
|
|
DDX_Check(pDX, IDC_DIABLOTWEAK, cTarget->m_DiabloTweak);
|
2015-07-04 12:40:35 -04:00
|
|
|
DDX_Check(pDX, IDC_EASPORTSHACK, cTarget->m_EASportsHack);
|
2015-10-05 12:40:44 -04:00
|
|
|
DDX_Check(pDX, IDC_LEGACYALLOC, cTarget->m_LegacyAlloc);
|
2014-08-10 12:39:50 -04:00
|
|
|
DDX_Check(pDX, IDC_NOIMAGEHLP, cTarget->m_NoImagehlp);
|
2014-11-15 11:39:58 -05:00
|
|
|
DDX_Check(pDX, IDC_REPLACEPRIVOPS, cTarget->m_ReplacePrivOps);
|
2014-04-04 12:39:03 -04:00
|
|
|
|
2014-05-24 12:39:16 -04:00
|
|
|
// Registry management
|
|
|
|
DDX_Check(pDX, IDC_EMULATEREGISTRY, cTarget->m_EmulateRegistry);
|
|
|
|
DDX_Check(pDX, IDC_OVERRIDEREGISTRY, cTarget->m_OverrideRegistry);
|
2013-12-02 11:17:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CTabCompat, CDialog)
|
|
|
|
//{{AFX_MSG_MAP(CTabCompat)
|
|
|
|
// NOTE: the ClassWizard will add message map macros here
|
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CTabCompat message handlers
|
|
|
|
|
2013-04-04 12:17:08 -04:00
|
|
|
static struct {char bMajor; char bMinor; char *sName;} WinVersions[9]=
|
2013-12-02 11:17:07 -05:00
|
|
|
{
|
2013-04-04 12:17:08 -04:00
|
|
|
{4, 0, "Windows 95"},
|
|
|
|
{4,10, "Windows 98/SE"},
|
|
|
|
{4,90, "Windows ME"},
|
2013-12-02 11:17:07 -05:00
|
|
|
{5, 0, "Windows 2000"},
|
|
|
|
{5, 1, "Windows XP"},
|
|
|
|
{5, 2, "Windows Server 2003"},
|
|
|
|
{6, 0, "Windows Vista"},
|
|
|
|
{6, 1, "Windows 7"},
|
|
|
|
{6, 2, "Windows 8"}
|
|
|
|
};
|
|
|
|
|
|
|
|
BOOL CTabCompat::OnInitDialog()
|
|
|
|
{
|
|
|
|
AfxEnableControlContainer();
|
|
|
|
CListBox *List;
|
|
|
|
CTargetDlg *cTarget = ((CTargetDlg *)(this->GetParent()->GetParent()));
|
|
|
|
int i;
|
|
|
|
List=(CListBox *)this->GetDlgItem(IDC_LISTFAKE);
|
|
|
|
List->ResetContent();
|
2013-04-04 12:17:08 -04:00
|
|
|
for(i=0; i<9; i++) List->AddString(WinVersions[i].sName);
|
2013-12-02 11:17:07 -05:00
|
|
|
List->SetCurSel(cTarget->m_FakeVersion);
|
|
|
|
CDialog::OnInitDialog();
|
|
|
|
return TRUE;
|
|
|
|
}
|