mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Use fmt instead of std::filesystem::path
This commit is contained in:
parent
11abe50f46
commit
0f9f62fd17
1 changed files with 4 additions and 3 deletions
|
@ -645,9 +645,10 @@ std::string TitleInfo::GetInstallPath() const
|
||||||
{
|
{
|
||||||
TitleId titleId = GetAppTitleId();
|
TitleId titleId = GetAppTitleId();
|
||||||
TitleIdParser tip(titleId);
|
TitleIdParser tip(titleId);
|
||||||
std::filesystem::path path = "usr";
|
std::string tmp;
|
||||||
if (tip.IsSystemTitle())
|
if (tip.IsSystemTitle())
|
||||||
path = "sys";
|
tmp = fmt::format("sys/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
|
||||||
std::string tmp = (path / "title" / fmt::format("{:08x}",GetTitleIdHigh(titleId)) / fmt::format("{:08x}", GetTitleIdLow(titleId))).string();
|
else
|
||||||
|
tmp = fmt::format("usr/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue