CI: Try to fix build

This commit is contained in:
Er2
2024-04-07 17:14:28 +03:00
parent 6bdfe250a2
commit 2fc4fb3d68
23 changed files with 161 additions and 114 deletions

View File

@@ -10,7 +10,9 @@
#include "emscripten/AppPlatform_sdl.hpp"
#else
#include "desktop/AppPlatform_sdl.hpp"
#include <libgen.h>
# ifndef _MSC_VER
# include <libgen.h>
# endif
#endif
typedef AppPlatform_sdl UsedAppPlatform;
@@ -308,7 +310,7 @@ void CheckOptionalTextureAvailability()
// Main
int main(int argc, char *argv[])
{
#ifndef __EMSCRIPTEN__
#if !defined(__EMSCRIPTEN__) && !defined(_MSC_VER)
// automatically change dir to avoid missing files and manual cd command
chdir(dirname(argv[0]));
#endif