summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/ips_layer.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-01 23:17:08 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-04 17:34:36 +0200
commit70bd2bb1d3aec23fc052c9612f9e530c1a2de72d (patch)
tree309d313d8182778919cafff884fd962267d2b38c /src/core/file_sys/ips_layer.h
parentips_layer: Add support for escape sequences and midline comments (diff)
downloadyuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.gz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.bz2
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.lz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.xz
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.tar.zst
yuzu-70bd2bb1d3aec23fc052c9612f9e530c1a2de72d.zip
Diffstat (limited to 'src/core/file_sys/ips_layer.h')
-rw-r--r--src/core/file_sys/ips_layer.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/file_sys/ips_layer.h b/src/core/file_sys/ips_layer.h
index 847e9bf3c..b07cc5673 100644
--- a/src/core/file_sys/ips_layer.h
+++ b/src/core/file_sys/ips_layer.h
@@ -15,6 +15,8 @@ VirtualFile PatchIPS(const VirtualFile& in, const VirtualFile& ips);
class IPSwitchCompiler {
public:
explicit IPSwitchCompiler(VirtualFile patch_text);
+ ~IPSwitchCompiler();
+
std::array<u8, 0x20> GetBuildID() const;
bool IsValid() const;
VirtualFile Apply(const VirtualFile& in) const;
@@ -22,7 +24,7 @@ public:
private:
void Parse();
- bool valid;
+ bool valid = false;
struct IPSwitchPatch {
std::string name;
@@ -32,11 +34,11 @@ private:
VirtualFile patch_text;
std::vector<IPSwitchPatch> patches;
- std::array<u8, 0x20> nso_build_id;
- bool is_little_endian;
- s64 offset_shift;
- bool print_values;
- std::string last_comment;
+ std::array<u8, 0x20> nso_build_id{};
+ bool is_little_endian = false;
+ s64 offset_shift = 0;
+ bool print_values = false;
+ std::string last_comment = "";
};
} // namespace FileSys