From 8e81280dd387f4b9797ddd69fa73842a13a3fca5 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 18 Aug 2024 13:07:10 +1200 Subject: [PATCH] fix --- .vscode/settings.json | 6 ++++++ src/main.c | 8 +------- src/sokol/sokol.c | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d0679e2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "files.associations": { + "sokol_audio.h": "c", + "sokol_log.h": "c" + } +} \ No newline at end of file diff --git a/src/main.c b/src/main.c index e2a10e0..c1c5de3 100644 --- a/src/main.c +++ b/src/main.c @@ -77,13 +77,7 @@ sapp_desc sokol_main(int argc, char* argv[]) { .cleanup_cb = cleanup, .width = 640, .height = 480, - #ifdef SOKOL_GLCORE - .window_title = "Gear (GLCORE)", - #elif SOKOL_D3D11 - .window_title = "Gear (D3D11)", - #elif SOKOL_METAL - .window_title = "Gear (Metal)", - #endif + .window_title = "Gear", .icon.sokol_default = true, .logger.func = slog_func, }; diff --git a/src/sokol/sokol.c b/src/sokol/sokol.c index 70ddee0..abb32b2 100644 --- a/src/sokol/sokol.c +++ b/src/sokol/sokol.c @@ -1,3 +1,4 @@ +#ifndef SOKOL_METAL #define SOKOL_IMPL #include #include @@ -6,3 +7,4 @@ #include #include #include +#endif \ No newline at end of file