mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 19:12:47 +02:00
EXI_DeviceMemoryCard: Use more efficient overload of find_last_of
This commit is contained in:
parent
4ad88ce2e4
commit
279197b278
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user