mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
Merge pull request #9267 from leoetlino/fix-lambda-captures
Core: Fix invalid lambda captures
This commit is contained in:
commit
17da28ff07
1 changed files with 5 additions and 1 deletions
|
@ -185,7 +185,11 @@ void CEXIMemoryCard::SetupGciFolder(const Memcard::HeaderData& header_data)
|
|||
CurrentGameId = Common::swap32(reinterpret_cast<const u8*>(game_id.c_str()));
|
||||
}
|
||||
|
||||
const auto [strDirectoryName, migrate] = GetGCIFolderPath(card_index, AllowMovieFolder::Yes);
|
||||
// TODO(C++20): Use structured bindings when we can use C++20 and refer to structured bindings
|
||||
// in lambda captures
|
||||
const auto folder_path = GetGCIFolderPath(card_index, AllowMovieFolder::Yes);
|
||||
const auto& strDirectoryName = folder_path.first;
|
||||
const bool migrate = folder_path.second;
|
||||
|
||||
const File::FileInfo file_info(strDirectoryName);
|
||||
if (!file_info.Exists())
|
||||
|
|
Loading…
Add table
Reference in a new issue