mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
WiiSaveBanner: fall back to $userdir/Load/WiiBanners
Unlike custom banners which work as an override, this mechanism works as a fallback. The use case is if you have games you don't really play but want to keep around for testing purposes without filling up your NAND with lots of saves. For ease of use, the directory structure is the same but only title/$title_hi/$title_lo/data/banner.bin files are relevant.
This commit is contained in:
@ -19,7 +19,19 @@ namespace Common
|
||||
{
|
||||
std::string RootUserPath(FromWhichRoot from)
|
||||
{
|
||||
int idx = from == FromWhichRoot::Configured ? D_WIIROOT_IDX : D_SESSION_WIIROOT_IDX;
|
||||
int idx{};
|
||||
switch (from)
|
||||
{
|
||||
case FromWhichRoot::Configured:
|
||||
idx = D_WIIROOT_IDX;
|
||||
break;
|
||||
case FromWhichRoot::Session:
|
||||
idx = D_SESSION_WIIROOT_IDX;
|
||||
break;
|
||||
case FromWhichRoot::Banners:
|
||||
idx = D_BANNERS_WIIROOT_IDX;
|
||||
break;
|
||||
}
|
||||
std::string dir = File::GetUserPath(idx);
|
||||
dir.pop_back(); // remove trailing path separator
|
||||
return dir;
|
||||
|
Reference in New Issue
Block a user