summaryrefslogtreecommitdiff
path: root/GameCube/include/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'GameCube/include/main.h')
-rw-r--r--GameCube/include/main.h37
1 files changed, 32 insertions, 5 deletions
diff --git a/GameCube/include/main.h b/GameCube/include/main.h
index c9b2067d..895e6ba4 100644
--- a/GameCube/include/main.h
+++ b/GameCube/include/main.h
@@ -1,8 +1,35 @@
-#include <chronos/timer.h>
+
+/** @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
{
- libtp::chronos::IntervalTimer* t = nullptr;
- uint32_t counter;
+ extern libtp::display::Console* console;
+ extern rando::SeedSelector* seedSelector;
+ extern rando::Randomizer* randomizer;
+
+ // Variables
+ extern uint32_t lastButtonInput;
+ extern bool consoleState;
+
void main();
- void ( *return_fapGm_Execute )() = nullptr;
-} // namespace mod \ No newline at end of file
+ void hookFunctions();
+
+ // Function hook handlers & trampolines
+ void handle_fapGm_Execute( void );
+ extern void ( *return_fapGm_Execute )( void );
+
+} // namespace mod
+#endif \ No newline at end of file