From 3500f37f7629ff902c14df20e11632e974571c5d Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Mon, 1 Jun 2026 09:16:11 -0500 Subject: --- vk-cube/vk-cube.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vk-cube') diff --git a/vk-cube/vk-cube.c b/vk-cube/vk-cube.c index 95661d8..9be1eb7 100644 --- a/vk-cube/vk-cube.c +++ b/vk-cube/vk-cube.c @@ -26,8 +26,13 @@ #include #include +#include #include +#if defined(_WIN32) +# include +#endif + #if defined(__APPLE__) || defined(__linux__) # include #endif @@ -144,6 +149,9 @@ int main(int argc, const char **argv) printf("Setting working directory: %s\n", exe_dir); // I wish the SDL devs were pragmatic enough to add SDL_SetCurrentDirectory(): // https://github.com/libsdl-org/SDL/issues/9110 +#if defined(_WIN32) + SetCurrentDirectory(exe_dir); +#endif #if defined(__APPLE__) || defined(__linux__) chdir(exe_dir); #endif -- cgit v1.2.3