mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
IOS/ES: Write import files to /import first
This is slightly safer than writing contents to /title directly. We still cannot rename everything in one go atomically, but this allows implementing AddTitleCancel very easily. Also, this ensures that when a title import fails, no incomplete files will be left in the title directory, which can mess up the system menu.
This commit is contained in:
@ -22,6 +22,10 @@ enum FromWhichRoot
|
||||
};
|
||||
|
||||
std::string RootUserPath(FromWhichRoot from);
|
||||
|
||||
// Returns /import/%08x/%08x. Intended for use by ES.
|
||||
std::string GetImportTitlePath(u64 title_id, FromWhichRoot from = FROM_SESSION_ROOT);
|
||||
|
||||
std::string GetTicketFileName(u64 _titleID, FromWhichRoot from);
|
||||
std::string GetTMDFileName(u64 _titleID, FromWhichRoot from);
|
||||
std::string GetTitleDataPath(u64 _titleID, FromWhichRoot from);
|
||||
|
Reference in New Issue
Block a user