resources

This commit is contained in:
Simon Lindholm
2022-06-29 13:19:45 +02:00
parent e6dc3b4ffd
commit 1a9d5d5a86
5 changed files with 108 additions and 6 deletions

View File

@@ -8,6 +8,7 @@
uint32_t wibo::lastError = 0;
char *wibo::commandLine;
wibo::Executable *wibo::mainModule = 0;
void wibo::debug_log(const char *fmt, ...) {
va_list args;
@@ -168,6 +169,7 @@ int main(int argc, char **argv) {
DEBUG_LOG("Command line: %s\n", wibo::commandLine);
wibo::Executable exec;
wibo::mainModule = &exec;
FILE *f = fopen(argv[1], "rb");
exec.loadPE(f);