Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config: Port remaining General settings to new config system. #10332

Merged
merged 1 commit into from Jan 3, 2022

Conversation

AdmiralCurtiss
Copy link
Contributor

No description provided.

{
Config::Info<std::string> iso_path{
{Config::System::Main, "General", fmt::format("ISOPath{}", i)}, ""};
Config::SetBase(iso_path, ""); // TODO: This actually needs a Config::Erase().
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't seem to have a way to actually remove a key from the new config system, so I've left this like this for now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could call DeleteKey() on the relevant layer but yeah I think this is fine for now.

@AdmiralCurtiss
Copy link
Contributor Author

Also note: IsSettingSaveable already contained this section key and no specific in- or exclusions, so I didn't need to change anything there.

Source/Core/Core/Config/MainSettings.cpp Outdated Show resolved Hide resolved
{
Config::Info<std::string> iso_path{
{Config::System::Main, "General", fmt::format("ISOPath{}", i)}, ""};
Config::SetBase(iso_path, ""); // TODO: This actually needs a Config::Erase().
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could call DeleteKey() on the relevant layer but yeah I think this is fine for now.

@leoetlino leoetlino merged commit 0de008d into dolphin-emu:master Jan 3, 2022
10 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the config-port-general branch January 3, 2022 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants