project64/Source/Project64/UserInterface/Settings/SettingsPage-Game-DiskDrive...

56 lines
1.3 KiB
C++
Raw Normal View History

2021-01-29 22:37:27 +00:00
#include "stdafx.h"
#include "SettingsPage-Game-DiskDrive.h"
2022-09-21 05:16:07 +00:00
#include "SettingsPage.h"
2021-01-29 22:37:27 +00:00
CGameDiskDrivePage::CGameDiskDrivePage(HWND hParent, const RECT & rcDispay)
{
if (!Create(hParent, rcDispay))
{
return;
}
// Set the text for all GUI items
2021-01-29 22:37:27 +00:00
SetDlgItemText(IDC_DISKSEEKTIMING_TEXT2, wGS(ROM_DISK_SEEK_TIMING).c_str());
2022-09-21 05:16:07 +00:00
CModifiedComboBox * ComboBox;
2021-01-29 22:37:27 +00:00
ComboBox = AddModComboBox(GetDlgItem(IDC_DISKSEEKTIMING2), Game_DiskSeekTiming);
if (ComboBox)
{
//ComboBox->SetTextField(GetDlgItem(IDC_MEMORY_SIZE_TEXT));
ComboBox->AddItem(wGS(ROM_DISK_SEEK_TIMING_TURBO).c_str(), DiskSeek_Turbo);
ComboBox->AddItem(wGS(ROM_DISK_SEEK_TIMING_SLOW).c_str(), DiskSeek_Slow);
}
UpdatePageSettings();
}
void CGameDiskDrivePage::ShowPage()
{
ShowWindow(SW_SHOW);
}
void CGameDiskDrivePage::HidePage()
{
ShowWindow(SW_HIDE);
}
void CGameDiskDrivePage::ApplySettings(bool UpdateScreen)
{
CSettingsPageImpl<CGameDiskDrivePage>::ApplySettings(UpdateScreen);
}
bool CGameDiskDrivePage::EnableReset(void)
{
2022-09-21 05:16:07 +00:00
if (CSettingsPageImpl<CGameDiskDrivePage>::EnableReset())
{
return true;
}
2021-01-29 22:37:27 +00:00
return false;
}
void CGameDiskDrivePage::ResetPage()
{
CSettingsPageImpl<CGameDiskDrivePage>::ResetPage();
}