-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.h
executable file
·61 lines (54 loc) · 1.36 KB
/
variables.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef GBAATM_VARIABLES
#define GBAATM_VARIABLES
#include <QString>
#include <cstring>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define CHEAT_IS_HEX(a) (((a) >= 'A' && (a) <= 'F') || ((a) >= '0' && (a) <= '9'))
#define SIZEOFHOOKJUMP 15 // 10 //7
#define MAXCHTLINE 4000
#define MAXCODELEN 40960
#define u8 unsigned char
#define u16 unsigned short
#define u32 unsigned int
struct BUTTONS
{
int enablekey;
int disablekey;
char enablekeystr[50];
char disablekeystr[50];
};
struct CUSTOMIZE
{
int font;
int background;
int selectionbar;
};
struct ADDRESSSTRUCT
{
unsigned int* oldasmaddrs;
unsigned int* asmaddr;
};
struct LVALSTRUCT
{
unsigned int* oldasmlvalues;
unsigned int* asmlvalue;
};
BUTTONS traineractions;
CUSTOMIZE customizetrainer;
unsigned short* menubgshort = (unsigned short*)malloc(76800);
unsigned short* menuselectshort = (unsigned short*)malloc(6720);
unsigned short* menufontshort = (unsigned short*)malloc(216);
u8 cheatsCBASeedBuffer[0x30];
u32 cheatsCBASeed[4];
u32 cheatsCBATemporaryValue = 0;
u16 cheatsCBATable[256];
bool cheatsCBATableGenerated = false;
u8 cheatsCBACurrentSeed[12] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
unsigned int seed0 = 0x9F4FBBD;
unsigned int seed1 = 0x9681884A;
unsigned int seed2 = 0x352027E9;
unsigned int seed3 = 0xF3DEE5A7;
#endif