DiscIO/Riivolution: Add dolphin-specific extensions "dolphin_sys_file" and "dolphin_sys_folder" to patch sys files like you would patch regular files.

This commit is contained in:
Admiral H. Curtiss 2022-06-09 00:25:11 +02:00
commit cc315cb7af
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
5 changed files with 26 additions and 9 deletions

View file

@ -65,7 +65,13 @@ private:
std::string m_patch_root;
};
void ApplyPatchesToFiles(const std::vector<Patch>& patches,
enum class PatchIndex
{
FileSystem,
DolphinSysFiles,
};
void ApplyPatchesToFiles(const std::vector<Patch>& patches, PatchIndex index,
std::vector<DiscIO::FSTBuilderNode>* fst,
DiscIO::FSTBuilderNode* dol_node);
void ApplyGeneralMemoryPatches(const std::vector<Patch>& patches);