mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DolphinQt: Add ability to start a game with Riivolution patches from the GUI.
This commit is contained in:
@ -57,6 +57,7 @@ namespace fs = std::filesystem;
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
|
||||
#include "DiscIO/Enums.h"
|
||||
#include "DiscIO/RiivolutionPatcher.h"
|
||||
#include "DiscIO/VolumeDisc.h"
|
||||
#include "DiscIO/VolumeWad.h"
|
||||
|
||||
@ -547,6 +548,8 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
|
||||
if (!std::visit(BootTitle(), boot->parameters))
|
||||
return false;
|
||||
|
||||
DiscIO::Riivolution::ApplyPatchesToMemory(boot->riivolution_patches);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "Core/IOS/IOSC.h"
|
||||
#include "DiscIO/Blob.h"
|
||||
#include "DiscIO/Enums.h"
|
||||
#include "DiscIO/RiivolutionParser.h"
|
||||
#include "DiscIO/VolumeDisc.h"
|
||||
#include "DiscIO/VolumeWad.h"
|
||||
|
||||
@ -78,6 +79,7 @@ struct BootParameters
|
||||
BootParameters(Parameters&& parameters_, const std::optional<std::string>& savestate_path_ = {});
|
||||
|
||||
Parameters parameters;
|
||||
std::vector<DiscIO::Riivolution::Patch> riivolution_patches;
|
||||
std::optional<std::string> savestate_path;
|
||||
bool delete_savestate = false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user