From af80895e50ddacbbe68b47650f29d0f8edbc82d7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 1 Aug 2020 16:01:29 +0200 Subject: Switched to main --- src/features/load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/features') diff --git a/src/features/load.c b/src/features/load.c index 37ed6ad..47beb9b 100644 --- a/src/features/load.c +++ b/src/features/load.c @@ -1,5 +1,6 @@ #include #include +#include #include void bin_load(char *path) @@ -7,7 +8,7 @@ void bin_load(char *path) char *data = read_file(path); void (*entry)(); - *(void **)(&entry) = data + 0xfe; + *(void **)(&entry) = data + MAIN_OFFSET; entry(); } -- cgit v1.2.3