mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +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();
|
||||
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…
Add table
Add a link
Reference in a new issue