mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Disable memory patches in hardcore mode
Memory patches would be an easy way to manipulate the memory needed to calculate achievement logic, so they must be disabled. Riivolution patches that do not affect memory are allowed, as they will be hashed with the game file.
This commit is contained in:
@ -11,6 +11,9 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "DiscIO/RiivolutionParser.h"
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
class HardcoreWarningWidget;
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
||||
class QPushButton;
|
||||
class QVBoxLayout;
|
||||
|
||||
@ -26,8 +29,14 @@ public:
|
||||
bool ShouldBoot() const { return m_should_boot; }
|
||||
std::vector<DiscIO::Riivolution::Patch>& GetPatches() { return m_patches; }
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
signals:
|
||||
void OpenAchievementSettings();
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
||||
void LoadMatchingXMLs();
|
||||
void OpenXML();
|
||||
@ -38,6 +47,9 @@ private:
|
||||
void BootGame();
|
||||
void SaveAsPreset();
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
HardcoreWarningWidget* m_hc_warning;
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
||||
std::string m_game_id;
|
||||
std::optional<u16> m_revision;
|
||||
std::optional<u8> m_disc_number;
|
||||
|
Reference in New Issue
Block a user