MemoryCardFolder: Use icon osd notification method.

This commit is contained in:
Stuart Kenny 2022-09-24 11:13:17 +01:00 committed by lightningterror
parent 0aea2bac74
commit b3590430c9
1 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#include "System.h"
#include "Config.h"
#include "Host.h"
#include "IconsFontAwesome5.h"
#include "common/FileSystem.h"
#include "common/Path.h"
@ -2333,8 +2334,8 @@ s32 FolderMemoryCardAggregator::Save(uint slot, const u8* src, u32 adr, int size
if (saveResult)
{
const std::string_view filename = Path::GetFileName(m_cards[slot].GetFolderName());
Host::AddKeyedFormattedOSDMessage(StringUtil::StdStringFromFormat("MemoryCardSave%u", slot), 10.0f,
"Memory Card %.*s written.", static_cast<int>(filename.size()), static_cast<const char*>(filename.data()));
Host::AddIconOSDMessage(fmt::format("MemoryCardSave{}", slot), ICON_FA_SD_CARD,
fmt::format("Memory card '{}' was saved to storage.", filename), 10.0f);
}
return saveResult;