mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
Split out code for serializing/deserializing cheat lines
This commit is contained in:
parent
fb96ecb7da
commit
b90008aadb
8 changed files with 149 additions and 155 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -42,10 +43,14 @@ struct Patch
|
|||
const char* PatchTypeAsString(PatchType type);
|
||||
|
||||
int GetSpeedhackCycles(const u32 addr);
|
||||
|
||||
std::optional<PatchEntry> DeserializeLine(std::string line);
|
||||
std::string SerializeLine(const PatchEntry& entry);
|
||||
void LoadPatchSection(const std::string& section, std::vector<Patch>* patches,
|
||||
const IniFile& globalIni, const IniFile& localIni);
|
||||
void SavePatchSection(IniFile* local_ini, const std::vector<Patch>& patches);
|
||||
void LoadPatches();
|
||||
|
||||
bool ApplyFramePatches();
|
||||
void Shutdown();
|
||||
void Reload();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue