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.
This commit is contained in:
Admiral H. Curtiss committed 2021-10-24 00:09:07 +02:00
1 parent 175f225ac1
commit 6ec4af7ea4
5 files changed
+260 -51

No files matched your search

+3
View File
@@ -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");