summary refs log tree commit diff stats
path: root/Source/Memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Memory.h')
-rw-r--r--Source/Memory.h8
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
46private:
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
69private:
70
71 void ThrowError(); 71 void ThrowError();
72 72
73 void* ComputeOffset(std::vector<int> offsets); 73 void* ComputeOffset(std::vector<int> offsets);