summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2026-07-25 22:57:44 +0200
committerladevieq <ladevie.quentin@gmail.com>2026-07-25 22:57:44 +0200
commitd8ffcc98796d308f57ae0a71d60a1033d41df364 (patch)
tree3a6d011bad67dedb94236bfd6d864bffb15d6c8f
parentd7583bf11c618d2e1ee4a89d9d9f394172489aa8 (diff)
Add a loader header
-rw-r--r--include/loader.h1
-rw-r--r--src/main.c2
-rw-r--r--src/test.c6
3 files changed, 6 insertions, 3 deletions
diff --git a/include/loader.h b/include/loader.h
new file mode 100644
index 0000000..056aa0e
--- /dev/null
+++ b/include/loader.h
@@ -0,0 +1 @@
+extern void load_funcs(void);
diff --git a/src/main.c b/src/main.c
index e31fe4d..4592ddf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,7 @@
#include "utils.h"
#include "events.h"
#include "parser.h"
+#include "loader.h"
#include "win_funcs.h"
@@ -491,7 +492,6 @@ void dbg_loop(void) {
}
}
-extern void load_funcs(void);
int mainCRTStartup(void) {
load_funcs();
diff --git a/src/test.c b/src/test.c
index 51a0b34..87cbb4d 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1,13 +1,15 @@
-// #include "win_funcs.h"
+#include "win_funcs.h"
+#include "loader.h"
int mainCRTStartup() {
+ load_funcs();
__debugbreak();
unsigned long long int i = 0;
(void)i;
while (1) {
__debugbreak();
- // OutputDebugStringA("Hello World !");
+ OutputDebugStringA("Hello World !");
i++;
}