Minor fix

This commit is contained in:
ArtemisX64 2022-08-27 05:11:49 +09:00
parent dd62ed7f51
commit 11abe50f46

View file

@ -8,7 +8,6 @@
#include <zarchive/zarchivereader.h> #include <zarchive/zarchivereader.h>
#include "config/ActiveSettings.h" #include "config/ActiveSettings.h"
#include <filesystem>
// detect format by reading file header/footer // detect format by reading file header/footer
CafeTitleFileType DetermineCafeSystemFileType(fs::path filePath) CafeTitleFileType DetermineCafeSystemFileType(fs::path filePath)
@ -646,10 +645,9 @@ std::string TitleInfo::GetInstallPath() const
{ {
TitleId titleId = GetAppTitleId(); TitleId titleId = GetAppTitleId();
TitleIdParser tip(titleId); TitleIdParser tip(titleId);
std::string tmp;
std::filesystem::path path = "usr"; std::filesystem::path path = "usr";
if (tip.IsSystemTitle()) if (tip.IsSystemTitle())
path = "sys"; path = "sys";
tmp = (path / "title" / fmt::format("{:08x}",GetTitleIdHigh(titleId)) / fmt::format("{:08x}", GetTitleIdLow(titleId))).string(); std::string tmp = (path / "title" / fmt::format("{:08x}",GetTitleIdHigh(titleId)) / fmt::format("{:08x}", GetTitleIdLow(titleId))).string();
return tmp; return tmp;
} }