DolphinQt2/GameCubePane: Correct duplicate condition in LoadSettings()

Also turns a std::string const reference into a value instance.
While this is well-defined, it does look out of place, given a new string
is being created.
This commit is contained in:
Lioncash 2018-03-23 07:35:34 -04:00
parent 894d4c99a8
commit 38f045cee5
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 2 additions and 2 deletions

View File

@ -240,9 +240,9 @@ void GameCubePane::LoadSettings()
for (const std::string& dir : {USA_DIR, JAP_DIR, EUR_DIR})
{
const auto& path = DIR_SEP + dir + DIR_SEP GC_IPL;
const auto path = DIR_SEP + dir + DIR_SEP GC_IPL;
if (File::Exists(File::GetUserPath(D_GCUSER_IDX) + path) ||
File::Exists(File::GetUserPath(D_GCUSER_IDX) + path))
File::Exists(File::GetSysDirectory() + GC_SYS_DIR + path))
{
have_menu = true;
break;