diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2021-09-28 06:12:45 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2021-10-24 00:09:07 +0200 |
| commit | 6ec4af7ea413ace595290d336bd88b30e035fa2f (patch) | |
| tree | 9d5311964ec3f7225de203886c16688fbdf00dd3 /Source/Core/DiscIO/RiivolutionParser.cpp | |
| parent | 175f225ac1daa1f50badb8858137b1e91b067073 (diff) | |
RiivolutionPatcher: Load external files with a layer of indirection during the patching process to properly resolve the paths given in the XML.
This also may eventually allow loading patches from sources other than the 1:1 expected file structure host file system, such as memory or an archive file.
Diffstat (limited to 'Source/Core/DiscIO/RiivolutionParser.cpp')
| -rw-r--r-- | Source/Core/DiscIO/RiivolutionParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/RiivolutionParser.cpp b/Source/Core/DiscIO/RiivolutionParser.cpp index 3162c40d43..63a830d1c5 100644 --- a/Source/Core/DiscIO/RiivolutionParser.cpp +++ b/Source/Core/DiscIO/RiivolutionParser.cpp @@ -13,9 +13,12 @@ #include "Common/FileUtil.h" #include "Common/IOFile.h" #include "Common/StringUtil.h" +#include "DiscIO/RiivolutionPatcher.h" namespace DiscIO::Riivolution { +Patch::~Patch() = default; + std::optional<Disc> ParseFile(const std::string& filename) { ::File::IOFile f(filename, "rb"); |
