From 96ceb1121017aeb40960d528b795228db1dd9833 Mon Sep 17 00:00:00 2001 From: VoxelTek <53562267+VoxelTek@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:01:19 +1000 Subject: [PATCH] Remove obsolete video options, other changes `Draw 3D to Video Memory` and `Flip Video Memory Pages` were removed from the config tool, and `Use Joystick` is set to True by default (when no prior config exists) --- CONFIG/MainDlg.cpp | 29 ------------------------ CONFIG/MainDlg.h | 2 -- CONFIG/config.cpp | 2 +- CONFIG/res/maindialog.ui | 48 +--------------------------------------- 4 files changed, 2 insertions(+), 79 deletions(-) diff --git a/CONFIG/MainDlg.cpp b/CONFIG/MainDlg.cpp index e5c44062..f6a49b9f 100644 --- a/CONFIG/MainDlg.cpp +++ b/CONFIG/MainDlg.cpp @@ -17,10 +17,6 @@ DECOMP_SIZE_ASSERT(CDialog, 0x60) DECOMP_SIZE_ASSERT(CMainDialog, 0x70) -// FIXME: disable dialog resizing -// FIXME: advanced mode should resize dialog, ignoring advanced controls -// FIXME: list widget should have less rows - // FUNCTION: CONFIG 0x00403d50 CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent) { @@ -58,8 +54,6 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent) ); connect(m_ui->devicesList, &QListWidget::currentRowChanged, this, &CMainDialog::OnList3DevicesSelectionChanged); connect(m_ui->musicCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxMusic); - connect(m_ui->videomemoryCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DVideoMemory); - connect(m_ui->flipVideoMemoryPagesCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxFlipVideoMemPages); connect(m_ui->sound3DCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DSound); connect(m_ui->joystickCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxJoystick); connect(m_ui->okButton, &QPushButton::clicked, this, &CMainDialog::accept); @@ -139,8 +133,6 @@ void CMainDialog::OnList3DevicesSelectionChanged(int selected) if (currentConfigApp->GetHardwareDeviceColorModel() == D3DCOLOR_NONE) { currentConfigApp->m_3d_video_ram = FALSE; currentConfigApp->m_flip_surfaces = FALSE; - m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram); - m_ui->flipVideoMemoryPagesCheckBox->setChecked(currentConfigApp->m_flip_surfaces); } m_modified = true; UpdateInterface(); @@ -164,11 +156,6 @@ void CMainDialog::accept() void CMainDialog::UpdateInterface() { currentConfigApp->ValidateSettings(); - m_ui->videomemoryCheckBox->setEnabled( - !currentConfigApp->m_flip_surfaces && currentConfigApp->GetHardwareDeviceColorModel() == D3DCOLOR_NONE - ); - m_ui->flipVideoMemoryPagesCheckBox->setChecked(currentConfigApp->m_flip_surfaces); - m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram); bool full_screen = currentConfigApp->m_full_screen; currentConfigApp->AdjustDisplayBitDepthBasedOnRenderStatus(); if (!full_screen) { @@ -208,22 +195,6 @@ void CMainDialog::OnCheckbox3DSound(bool checked) UpdateInterface(); } -// FUNCTION: CONFIG 0x00404610 -void CMainDialog::OnCheckbox3DVideoMemory(bool checked) -{ - currentConfigApp->m_3d_video_ram = checked; - m_modified = true; - UpdateInterface(); -} - -// FUNCTION: CONFIG 0x004046a0 -void CMainDialog::OnCheckboxFlipVideoMemPages(bool checked) -{ - currentConfigApp->m_flip_surfaces = checked; - m_modified = true; - UpdateInterface(); -} - // FUNCTION: CONFIG 0x004046d0 void CMainDialog::OnRadiobuttonModelLowQuality(bool checked) { diff --git a/CONFIG/MainDlg.h b/CONFIG/MainDlg.h index f0df6e60..bed7dbba 100644 --- a/CONFIG/MainDlg.h +++ b/CONFIG/MainDlg.h @@ -34,8 +34,6 @@ class CMainDialog : public QDialog { private slots: void OnList3DevicesSelectionChanged(int row); void OnCheckbox3DSound(bool checked); - void OnCheckbox3DVideoMemory(bool checked); - void OnCheckboxFlipVideoMemPages(bool checked); void OnRadiobuttonModelLowQuality(bool checked); void OnRadiobuttonModelMediumQuality(bool checked); void OnRadiobuttonModelHighQuality(bool checked); diff --git a/CONFIG/config.cpp b/CONFIG/config.cpp index be1f1c83..6555fafd 100644 --- a/CONFIG/config.cpp +++ b/CONFIG/config.cpp @@ -63,7 +63,7 @@ bool CConfigApp::InitInstance() m_device = NULL; m_full_screen = TRUE; m_wide_view_angle = TRUE; - m_use_joystick = FALSE; + m_use_joystick = TRUE; m_music = TRUE; m_flip_surfaces = FALSE; m_3d_video_ram = FALSE; diff --git a/CONFIG/res/maindialog.ui b/CONFIG/res/maindialog.ui index b7df8d83..ace9a7a3 100644 --- a/CONFIG/res/maindialog.ui +++ b/CONFIG/res/maindialog.ui @@ -482,7 +482,7 @@ 6 - 0 + 6 @@ -534,50 +534,6 @@ - - - - - 0 - 25 - - - - - 0 - - - 0 - - - 0 - - - 6 - - - - - - 0 - 0 - - - - Flip Video Memory Pages - - - - - - - Draw 3D to Video Memory - - - - - - @@ -644,8 +600,6 @@ musicCheckBox joystickCheckBox devicesList - flipVideoMemoryPagesCheckBox - videomemoryCheckBox okButton cancelButton