diff options
Diffstat (limited to 'Source/RandomizerCore.h')
| -rw-r--r-- | Source/RandomizerCore.h | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/Source/RandomizerCore.h b/Source/RandomizerCore.h index 746306b..da88e92 100644 --- a/Source/RandomizerCore.h +++ b/Source/RandomizerCore.h | |||
| @@ -1,12 +1,13 @@ | |||
| 1 | #pragma once | 1 | #pragma once | 
| 2 | #include "Memory.h" | 2 | #include "Memory.h" | 
| 3 | 3 | ||
| 4 | // #define GLOBALS 0x5B28C0 | 4 | #define GLOBALS 0x5B28C0 | 
| 5 | #define GLOBALS 0x62A080 | 5 | // #define GLOBALS 0x62A080 | 
| 6 | 6 | ||
| 7 | __declspec(selectany) int SWAP_NONE = 0x0; | 7 | __declspec(selectany) int SWAP_NONE = 0x0; | 
| 8 | __declspec(selectany) int SWAP_TARGETS = 0x1; | 8 | __declspec(selectany) int SWAP_TARGETS = 0x1; | 
| 9 | __declspec(selectany) int SWAP_LINES = 0x2; | 9 | __declspec(selectany) int SWAP_LINES = 0x2; | 
| 10 | __declspec(selectany) int SWAP_AUDIO_NAMES = 0x4; | ||
| 10 | 11 | ||
| 11 | class RandomizerCore | 12 | class RandomizerCore | 
| 12 | { | 13 | { | 
| @@ -15,6 +16,7 @@ public: | |||
| 15 | void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); | 16 | void RandomizeRange(std::vector<int> &panels, int flags, size_t startIndex, size_t endIndex); | 
| 16 | void SwapPanels(int panel1, int panel2, int flags); | 17 | void SwapPanels(int panel1, int panel2, int flags); | 
| 17 | void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order); | 18 | void ReassignTargets(const std::vector<int>& panels, const std::vector<int>& order); | 
| 19 | void ReassignNames(const std::vector<int>& panels, const std::vector<int>& order); | ||
| 18 | 20 | ||
| 19 | template <class T> | 21 | template <class T> | 
| 20 | std::vector<T> ReadPanelData(int panel, int offset, size_t size) { | 22 | std::vector<T> ReadPanelData(int panel, int offset, size_t size) { | 
| @@ -92,6 +94,7 @@ private: | |||
| 92 | #define PANEL_TARGET 0x4B0 | 94 | #define PANEL_TARGET 0x4B0 | 
| 93 | #define SPECULAR_TEXTURE 0x4D8 | 95 | #define SPECULAR_TEXTURE 0x4D8 | 
| 94 | #define CABLE_TARGET_2 0xD8 | 96 | #define CABLE_TARGET_2 0xD8 | 
| 97 | #define AUDIO_LOG_NAME 0xC8 | ||
| 95 | #elif GLOBALS == 0x62A080 | 98 | #elif GLOBALS == 0x62A080 | 
| 96 | #define PATH_COLOR 0xC0 | 99 | #define PATH_COLOR 0xC0 | 
| 97 | #define REFLECTION_PATH_COLOR 0xD0 | 100 | #define REFLECTION_PATH_COLOR 0xD0 | 
