mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
NandPaths: Return paths that are relative to Wii NAND
Since all FS access will go through the new FS interface (PR #6421) in order to keep track of metadata properly, there is no need to return absolute paths anymore. In fact, returning host paths is a roadblock to using the FS interface. This starts the migration work by adding a way to get paths that are relative to the Wii NAND instead of always getting absolute paths on the host FS. To prepare for future changes, this commit also makes returned paths canonical by removing the trailing slash when it's unneeded. Eventually, once everything has been migrated to the new interface, we can remove the "from" parameter.
This commit is contained in:
parent
00de41b583
commit
8317a66ea5
11 changed files with 61 additions and 42 deletions
|
@ -25,7 +25,8 @@ constexpr unsigned int ICON_HEIGHT = 48;
|
|||
constexpr unsigned int ICON_SIZE = ICON_WIDTH * ICON_HEIGHT * 2;
|
||||
|
||||
WiiSaveBanner::WiiSaveBanner(u64 title_id)
|
||||
: WiiSaveBanner(Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT) + "banner.bin")
|
||||
: WiiSaveBanner(Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT) +
|
||||
"/banner.bin")
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue