EXI_DeviceMemoryCard: Use more efficient overload of find_last_of

This commit is contained in:
Léo Lam 2020-11-20 18:44:07 +01:00
parent 4ad88ce2e4
commit 279197b278
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741

View File

@ -237,7 +237,7 @@ void CEXIMemoryCard::SetupRawMemcard(u16 size_mb)
MemoryCard::CheckPath(filename, region_dir, is_slot_a);
if (size_mb == Memcard::MBIT_SIZE_MEMORY_CARD_251)
filename.insert(filename.find_last_of("."), ".251");
filename.insert(filename.find_last_of('.'), ".251");
memorycard = std::make_unique<MemoryCard>(filename, card_index, size_mb);
}