From 6ec4af7ea413ace595290d336bd88b30e035fa2f Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 28 Sep 2021 06:12:45 +0200 Subject: 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. --- Source/Core/DiscIO/RiivolutionParser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/DiscIO/RiivolutionParser.cpp') 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 ParseFile(const std::string& filename) { ::File::IOFile f(filename, "rb"); -- cgit v1.2.3