From faf617739f53c67f663887de34342f92056ba45d Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 6 Nov 2018 09:59:34 -0800 Subject: Assorted. --- Source/RandomizerCore.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/RandomizerCore.h') diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 4cd4b42..7555de2 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h @@ -1,5 +1,6 @@ #pragma once #include "Memory.h" +#include __declspec(selectany) int SWAP_NONE = 0x0; __declspec(selectany) int SWAP_TARGETS = 0x1; @@ -9,8 +10,6 @@ __declspec(selectany) int SWAP_AUDIO_NAMES = 0x4; class RandomizerCore { public: - RandomizerCore(); - void Randomize(std::vector& panels, int flags); void RandomizeRange(std::vector &panels, int flags, size_t startIndex, size_t endIndex); void SwapPanels(int panel1, int panel2, int flags); @@ -19,9 +18,12 @@ public: short ReadMetadata(); void WriteMetadata(short metadata); + int GetCurrentFrame(); + + void ClearOffsets() {_memory->ClearOffsets();} // private: - Memory _memory = Memory("witness64_d3d11.exe"); + std::shared_ptr _memory = std::make_shared("witness64_d3d11.exe"); }; #if GLOBALS == 0x5B28C0 -- cgit 1.4.1