summaryrefslogtreecommitdiff
path: root/GameCube/include/main.h
blob: 895e6ba42bfa0d83123b01510cefcf9f07e1351e (plain)
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

/**	@file main.h
 *  @brief Main structure of the Randomizer
 *
 *	@author AECX
 *	@bug No known bugs.
 */

#ifndef MAIN_H
#define MAIN_H
#include <cstdint>

#include "display/console.h"
#include "rando/randomizer.h"
#include "rando/seedselector.h"

namespace mod
{
    extern libtp::display::Console* console;
    extern rando::SeedSelector* seedSelector;
    extern rando::Randomizer* randomizer;

    // Variables
    extern uint32_t lastButtonInput;
    extern bool consoleState;

    void main();
    void hookFunctions();

    // Function hook handlers & trampolines
    void handle_fapGm_Execute( void );
    extern void ( *return_fapGm_Execute )( void );

}     // namespace mod
#endif