Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
MachGuiCtxOptions: Rename options get/set methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Feb 21, 2024
1 parent 97d57a7 commit bb1d855
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/libdev/machgui/ctxoptns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ MachGuiCtxOptions::MachGuiCtxOptions(MachGuiStartupScreens* pStartupScreens)
auto items = MachGuiDropDownListBoxCreator::createBoxItems(scaleValues);
pScaleFactorSelector_->items(items);

setOptions();
readFromConfig();

TEST_INVARIANT;
}
Expand Down Expand Up @@ -493,7 +493,7 @@ void MachGuiCtxOptions::buttonEvent(MachGuiStartupScreens::ButtonEvent buttonEve
{
int currentScaleFactorValue = SysRegistry::instance().queryIntegerValue(c_ScaleFactorOptionKey, "Value");

getOptions();
writeToConfig();

SysRegistry::instance().reload();

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/libdev/machgui/ctxoptns.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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&);
Expand Down

0 comments on commit bb1d855

Please sign in to comment.