mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Common: Convert FromWhichRoot to enum class
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user