mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
Common: Convert FromWhichRoot to enum class
This commit is contained in:
parent
89e7e7d669
commit
7ff7c9e84f
7 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
namespace Common
|
||||
{
|
||||
enum FromWhichRoot
|
||||
enum class FromWhichRoot
|
||||
{
|
||||
FROM_CONFIGURED_ROOT, // not related to currently running game - use D_WIIROOT_IDX
|
||||
FROM_SESSION_ROOT, // request from currently running game - use D_SESSION_WIIROOT_IDX
|
||||
Configured, // not related to currently running game - use D_WIIROOT_IDX
|
||||
Session, // request from currently running game - use D_SESSION_WIIROOT_IDX
|
||||
};
|
||||
|
||||
std::string RootUserPath(FromWhichRoot from);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue