-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhacks.h
42 lines (36 loc) · 1.31 KB
/
hacks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
// C preprocessor hacks
//#define ARR_HACK
// Massive hacks
#define HACK_INHIBIT_COLOR_TABLE_UPDATE 0
#define HACK_INHIBIT_DWM_TABLE_UPDATE 1
#define HACK_INHIBIT_TIME_SLIDER 2
#define HACK_MAIN_BUTTON_ON 3
#define HACK_color_GROUP_ENABLED 4 // WARNING: case sensitive!
#define HACK_settings_GROUP_ENABLED 5 // WARNING: case sensitive!
#define HACK_palette_GROUP_ENABLED 6 // WARNING: case sensitive!
#define HACK_PREVIEW_ENABLED 7
#define HACK_PREVIEW_FIRST_PASS 8
#define HACK_PREVIEW_BUTTON_ON 9
#define HACK_saveLoad_GROUP_ENABLED 10 // WARNING: case sensitive!
#define HACK_plusMinus_GROUP_ENABLED 11 // WARNING: case sensitive!
#define HACK_INHIBIT_COLOR_CELL_CHANGE 12
#define HACK_INHIBIT_DWM_TABLE_UPDATE2 13
#define HACK_INHIBIT_START_WINDOWS_CHECKBOX 14
#define HACK_INHIBIT_PALETTE_TABLE_UPDATE 15
void SET_HACK_FLAG(int position);
void CLEAR_HACK_FLAG(int position);
void TOGGLE_HACK_FLAG(int position);
bool HACK_FLAG(int position);
// timer speed hacks
#define TSH_LENGTH 9
#define TSH_CRT_IDX 0
#define TSH_MAX_IDX 1 // maximum index between colors
#define TSH_PRV_CLR 2 // previous color, merged
#define TSH_NXT_CLR 3 // next color, merged
#define TSH_MAX_CLR 4
#define TSH_IS_RAND 5
#define TSH_CRT_PAL 6
#define TSH_CRT_CIX 7 // current color index
#define TSH_IS_AHSV 8
#define TSH(x) tsh[TSH_##x##]