diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-07 09:26:42 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-11-07 09:26:42 -0800 |
commit | 5ad08f6611c8c777c43cfa0d2380b6ad6554a54d (patch) | |
tree | e14b08857f15003bdeb47daca0dc5e741c033b94 /Source/Memory.h | |
parent | e762e48d6fbab7bd5137c369fa49df25ccd5369d (diff) | |
download | witness-tutorializer-5ad08f6611c8c777c43cfa0d2380b6ad6554a54d.tar.gz witness-tutorializer-5ad08f6611c8c777c43cfa0d2380b6ad6554a54d.tar.bz2 witness-tutorializer-5ad08f6611c8c777c43cfa0d2380b6ad6554a54d.zip |
Not sure what other feature work is valuable -- I'd rather work on exporting.
Diffstat (limited to 'Source/Memory.h')
-rw-r--r-- | Source/Memory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Memory.h b/Source/Memory.h index 4c79d7c..e7f8ff3 100644 --- a/Source/Memory.h +++ b/Source/Memory.h | |||
@@ -19,6 +19,7 @@ public: | |||
19 | Memory(const Memory& memory) = delete; | 19 | Memory(const Memory& memory) = delete; |
20 | Memory& operator=(const Memory& other) = delete; | 20 | Memory& operator=(const Memory& other) = delete; |
21 | 21 | ||
22 | int GetCurrentFrame(); | ||
22 | 23 | ||
23 | template <class T> | 24 | template <class T> |
24 | std::vector<T> ReadArray(int panel, int offset, int size) { | 25 | std::vector<T> ReadArray(int panel, int offset, int size) { |
@@ -40,6 +41,9 @@ public: | |||
40 | WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data); | 41 | WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data); |
41 | } | 42 | } |
42 | 43 | ||
44 | void ClearOffsets() {_computedAddresses = std::map<uintptr_t, uintptr_t>();} | ||
45 | |||
46 | private: | ||
43 | template<class T> | 47 | template<class T> |
44 | std::vector<T> ReadData(const std::vector<int>& offsets, size_t numItems) { | 48 | std::vector<T> ReadData(const std::vector<int>& offsets, size_t numItems) { |
45 | std::vector<T> data; | 49 | std::vector<T> data; |
@@ -64,10 +68,6 @@ public: | |||
64 | ThrowError(); | 68 | ThrowError(); |
65 | } | 69 | } |
66 | 70 | ||
67 | void ClearOffsets() {_computedAddresses = std::map<uintptr_t, uintptr_t>();} | ||
68 | |||
69 | private: | ||
70 | |||
71 | void ThrowError(); | 71 | void ThrowError(); |
72 | 72 | ||
73 | void* ComputeOffset(std::vector<int> offsets); | 73 | void* ComputeOffset(std::vector<int> offsets); |