mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
SysConf: Migrate to new filesystem interface
It was discovered that some titles rely on filesystem metadata to work properly. Currently, in master they either simply won't find their save files (for example Bolt) or will complain about the Wii system memory being corrupted (on first use or every time depending on the title). In order to even be able to keep track of file metadata, we first need to eliminate all direct accesses to the NAND and make all kinds of operations go through the filesystem code added in PR 6421. This commit starts the migration process by making SysConf use the new FS interface.
This commit is contained in:
parent
3744a6d3f5
commit
0856d4a68a
6 changed files with 44 additions and 28 deletions
|
@ -136,7 +136,7 @@ bool InstallWAD(IOS::HLE::Kernel& ios, const DiscIO::WiiWAD& wad, InstallType in
|
|||
}
|
||||
|
||||
// Delete a previous temporary title, if it exists.
|
||||
SysConf sysconf{Common::FROM_SESSION_ROOT};
|
||||
SysConf sysconf{ios.GetFS()};
|
||||
SysConf::Entry* tid_entry = sysconf.GetOrAddEntry("IPL.TID", SysConf::Entry::Type::LongLong);
|
||||
if (const u64 previous_temporary_title_id = Common::swap64(tid_entry->GetData<u64>(0)))
|
||||
ios.GetES()->DeleteTitleContent(previous_temporary_title_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue