about 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, 7 insertions, 1 deletions
diff --git a/Source/Memory.h b/Source/Memory.h index e6110d8..fa9eb60 100644 --- a/Source/Memory.h +++ b/Source/Memory.h
@@ -42,7 +42,8 @@ public:
42 WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data); 42 WriteData<T>({GLOBALS, 0x18, panel*8, offset}, data);
43 } 43 }
44 44
45 void SigScan(std::function<void(int offset, const std::vector<byte>& data)> scanFunc); 45 void AddSigScan(const std::vector<byte>& scanBytes, const std::function<void(int index)>& scanFunc);
46 int ExecuteSigScans();
46 47
47 void ClearOffsets() {_computedAddresses = std::map<uintptr_t, uintptr_t>();} 48 void ClearOffsets() {_computedAddresses = std::map<uintptr_t, uintptr_t>();}
48 49
@@ -78,6 +79,11 @@ private:
78 std::map<uintptr_t, uintptr_t> _computedAddresses; 79 std::map<uintptr_t, uintptr_t> _computedAddresses;
79 uintptr_t _baseAddress = 0; 80 uintptr_t _baseAddress = 0;
80 HANDLE _handle = nullptr; 81 HANDLE _handle = nullptr;
82 struct SigScan {
83 std::function<void(int)> scanFunc;
84 bool found;
85 };
86 std::map<std::vector<byte>, SigScan> _sigScans;
81 87
82 friend class Temp; 88 friend class Temp;
83 friend class ChallengeRandomizer; 89 friend class ChallengeRandomizer;