diff options
| author | 2024-10-25 23:24:45 -0400 | |
|---|---|---|
| committer | 2024-10-25 23:24:45 -0400 | |
| commit | 36b6d84ee4b520bdf43891ea86df03cf660cb464 (patch) | |
| tree | 3aa78d9b1a3f04c0aeaaf86c8a60106115bf5c85 /main.c | |
| download | rt-36b6d84ee4b520bdf43891ea86df03cf660cb464.tar.gz rt-36b6d84ee4b520bdf43891ea86df03cf660cb464.zip | |
create project
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +// SPDX-License-Identifier: ISC
+// SPDX-FileCopyrightText: 2024 Matthew Wozniak <me@woz.blue>
+
+#include "os.h"
+#include "log.h"
+
+#include <Windows.h>
+#include <stddef.h>
+
+typedef int (*LauncherMain_t)(void *instance, void *prev_inst, char *cmdline,
+ int cmd_show);
+
+int main(int argc, char **argv) {
+ SetDllDirectoryA("bin/");
+
+ void *launcher_dll = os_dlopen("launcher");
+ LauncherMain_t launcher_main =
+ (LauncherMain_t)os_dlsym(launcher_dll, "LauncherMain");
+
+ if (!launcher_main) die("couldn't open launcher");
+ launcher_main(NULL, NULL, NULL, 0);
+}
+
+// vi: sw=4 ts=4 noet tw=80 cc=80
|
