Fixes Path Issues (#70)

* Fix bad path
This commit is contained in:
ArtemisX64 2022-08-27 16:57:30 +09:00 committed by GitHub
parent 8459cd928c
commit 01c58555f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -216,4 +216,4 @@ struct CoreinitFSParsedPath
void coreinitFS_parsePath(CoreinitFSParsedPath* parsedPath, const char* path); void coreinitFS_parsePath(CoreinitFSParsedPath* parsedPath, const char* path);
bool coreinitFS_checkNodeName(CoreinitFSParsedPath* parsedPath, sint32 index, const char* name); bool coreinitFS_checkNodeName(CoreinitFSParsedPath* parsedPath, sint32 index, const char* name);
char* coreinitFS_getNodeName(CoreinitFSParsedPath* parsedPath, sint32 index); char* coreinitFS_getNodeName(CoreinitFSParsedPath* parsedPath, sint32 index);

View File

@ -645,10 +645,10 @@ std::string TitleInfo::GetInstallPath() const
{ {
TitleId titleId = GetAppTitleId(); TitleId titleId = GetAppTitleId();
TitleIdParser tip(titleId); TitleIdParser tip(titleId);
std::string tmp; std::string tmp;
if (tip.IsSystemTitle()) if (tip.IsSystemTitle())
tmp = fmt::format("sys\\title\\{:08x}\\{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId)); tmp = fmt::format("sys/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
else else
tmp = fmt::format("usr\\title\\{:08x}\\{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId)); tmp = fmt::format("usr/title/{:08x}/{:08x}", GetTitleIdHigh(titleId), GetTitleIdLow(titleId));
return tmp; return tmp;
} }