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
parent 3e1511ce98
commit e54657254a
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)