Core: Make format of D_WIIROOT_IDX consistent with the rest of the user directories.

This commit is contained in:
Admiral H. Curtiss 2021-11-22 03:20:17 +01:00
commit e54657254a
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
6 changed files with 15 additions and 12 deletions

View file

@ -19,7 +19,9 @@ namespace Common
std::string RootUserPath(FromWhichRoot from)
{
int idx = from == FROM_CONFIGURED_ROOT ? D_WIIROOT_IDX : D_SESSION_WIIROOT_IDX;
return File::GetUserPath(idx);
std::string dir = File::GetUserPath(idx);
dir.pop_back(); // remove trailing path separator
return dir;
}
static std::string RootUserPath(std::optional<FromWhichRoot> from)