Common: Convert FromWhichRoot to enum class

This commit is contained in:
Dentomologist
2023-06-13 13:22:56 -07:00
parent 89e7e7d669
commit 7ff7c9e84f
7 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@ namespace Common
{
std::string RootUserPath(FromWhichRoot from)
{
int idx = from == FROM_CONFIGURED_ROOT ? D_WIIROOT_IDX : D_SESSION_WIIROOT_IDX;
int idx = from == FromWhichRoot::Configured ? D_WIIROOT_IDX : D_SESSION_WIIROOT_IDX;
std::string dir = File::GetUserPath(idx);
dir.pop_back(); // remove trailing path separator
return dir;