mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
EXI_DeviceMemoryCard: Use more efficient overload of find_last_of
This commit is contained in:
parent
4ad88ce2e4
commit
279197b278
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ void CEXIMemoryCard::SetupRawMemcard(u16 size_mb)
|
||||||
MemoryCard::CheckPath(filename, region_dir, is_slot_a);
|
MemoryCard::CheckPath(filename, region_dir, is_slot_a);
|
||||||
|
|
||||||
if (size_mb == Memcard::MBIT_SIZE_MEMORY_CARD_251)
|
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);
|
memorycard = std::make_unique<MemoryCard>(filename, card_index, size_mb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue