blob: ae79d3bffab561494463661b516113cf78eea385 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|