mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Use fmt instead of std::filesystem::path
This commit is contained in:
parent
11abe50f46
commit
0f9f62fd17
@ -645,9 +645,10 @@ std::string TitleInfo::GetInstallPath() const
|
||||
{
|
||||
TitleId titleId = GetAppTitleId();
|
||||
TitleIdParser tip(titleId);
|
||||
std::filesystem::path path = "usr";
|
||||
std::string tmp;
|
||||
if (tip.IsSystemTitle())
|
||||
path = "sys";
|
||||
std::string tmp = (path / "title" / fmt::format("{:08x}",GetTitleIdHigh(titleId)) / fmt::format("{:08x}", GetTitleIdLow(titleId))).string();
|
||||
tmp = fmt::format("sys/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
|
||||
else
|
||||
tmp = fmt::format("usr/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
|
||||
return tmp;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user