From bb1d855e65954663758ea1bdd203f309b95edaf9 Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Wed, 21 Feb 2024 21:58:31 +0300 Subject: [PATCH] MachGuiCtxOptions: Rename options get/set methods --- src/libdev/machgui/ctxoptns.cpp | 8 ++++---- src/libdev/machgui/ctxoptns.hpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libdev/machgui/ctxoptns.cpp b/src/libdev/machgui/ctxoptns.cpp index faf07aa9..2d4b8ab9 100644 --- a/src/libdev/machgui/ctxoptns.cpp +++ b/src/libdev/machgui/ctxoptns.cpp @@ -443,7 +443,7 @@ MachGuiCtxOptions::MachGuiCtxOptions(MachGuiStartupScreens* pStartupScreens) auto items = MachGuiDropDownListBoxCreator::createBoxItems(scaleValues); pScaleFactorSelector_->items(items); - setOptions(); + readFromConfig(); TEST_INVARIANT; } @@ -493,7 +493,7 @@ void MachGuiCtxOptions::buttonEvent(MachGuiStartupScreens::ButtonEvent buttonEve { int currentScaleFactorValue = SysRegistry::instance().queryIntegerValue(c_ScaleFactorOptionKey, "Value"); - getOptions(); + writeToConfig(); SysRegistry::instance().reload(); @@ -561,7 +561,7 @@ void MachGuiCtxOptions::buttonEvent(MachGuiStartupScreens::ButtonEvent buttonEve } } -void MachGuiCtxOptions::getOptions() +void MachGuiCtxOptions::writeToConfig() { // Used to set current game settings to be that of gui items @@ -690,7 +690,7 @@ void MachGuiCtxOptions::getOptions() } } -void MachGuiCtxOptions::setOptions() +void MachGuiCtxOptions::readFromConfig() { // Used to set gui items to reflect current game settings SysRegistry::KeyHandle handle; diff --git a/src/libdev/machgui/ctxoptns.hpp b/src/libdev/machgui/ctxoptns.hpp index 70bab781..4c9c60de 100644 --- a/src/libdev/machgui/ctxoptns.hpp +++ b/src/libdev/machgui/ctxoptns.hpp @@ -51,8 +51,8 @@ class MachGuiCtxOptions : public MachGuiStartupScreenContext private: friend std::ostream& operator<<(std::ostream& o, const MachGuiCtxOptions& t); - void getOptions(); - void setOptions(); + void writeToConfig(); + void readFromConfig(); void showDirect3DDrivers(); MachGuiCtxOptions(const MachGuiCtxOptions&);