Use std::optional for ESFormats/SharedContentMap

This commit is contained in:
Léo Lam
2017-05-26 19:18:24 +02:00
parent b08653d69d
commit 545006f666
5 changed files with 15 additions and 13 deletions

View File

@ -208,7 +208,7 @@ void CNANDContentLoader::InitializeContentEntries(const std::vector<u8>& data_ap
{
std::string filename;
if (content.IsShared())
filename = shared_content.GetFilenameFromSHA1(content.sha1);
filename = *shared_content.GetFilenameFromSHA1(content.sha1);
else
filename = StringFromFormat("%s/%08x.app", m_Path.c_str(), content.id);