sdl2 syms

This commit is contained in:
Dethrace Labs 2025-06-27 20:56:37 +12:00
parent e724035e1c
commit dc9d0922af
2 changed files with 3 additions and 2 deletions

View File

@ -370,7 +370,7 @@ static void SDL2_Harness_GetViewport(int* x, int* y, float* width_multipler, flo
static void SDL2_Harness_GetPrefPath(char* app_name, char* path) {
char* sdl_path = SDL2_GetPrefPath(NULL, app_name);
strcpy(path, sdl_path);
SDL_free(sdl_path);
SDL2_free(sdl_path);
}
static int SDL2_Harness_Platform_Init(tHarness_platform* platform) {

View File

@ -39,7 +39,8 @@
X(GL_SetAttribute, int, (SDL_GLattr, int)) \
X(GL_SetSwapInterval, int, (int)) \
X(GL_SwapWindow, void, (SDL_Window*)) \
X(GetPrefPath, char*, (const char* org, const char* app))
X(GetPrefPath, char*, (const char* org, const char* app)) \
X(free, void, (void*))
#undef SDL2_SYM