diff options
| author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-08 14:46:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-08 14:46:31 -0400 |
| commit | 60e29dd3b0b2f2e4ce4896b9a2d9172ba1db7847 (patch) | |
| tree | bd1e570a3f0594557e28516b0974aa07f67ad616 /src/core/core.cpp | |
| parent | 4adb9d01f71f5b586af3a91621b91eb9cd131b52 (diff) | |
| parent | d9109a708b2b93841ca9f04ded29d030d751440e (diff) | |
Merge pull request #6539 from lat9nq/default-setting
general: Move most settings' defaults and labels into their definition
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index e6f1aa0e7b..891f1cb491 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -263,9 +263,9 @@ struct System::Impl { if (Settings::values.gamecard_inserted) { if (Settings::values.gamecard_current_game) { fs_controller.SetGameCard(GetGameFileFromPath(virtual_filesystem, filepath)); - } else if (!Settings::values.gamecard_path.empty()) { - fs_controller.SetGameCard( - GetGameFileFromPath(virtual_filesystem, Settings::values.gamecard_path)); + } else if (!Settings::values.gamecard_path.GetValue().empty()) { + const auto gamecard_path = Settings::values.gamecard_path.GetValue(); + fs_controller.SetGameCard(GetGameFileFromPath(virtual_filesystem, gamecard_path)); } } |
