linux compat

This commit is contained in:
2025-06-13 15:33:13 -06:00
parent 84952c134c
commit 800dcb2706
7 changed files with 74 additions and 19 deletions

View File

@ -46,11 +46,11 @@ void ui_init(){
//SDL_JoystickOpen(0);
SDL_GameControllerOpen(0);
char buffer[1024];
strcpy(buffer, emu_get_context()->app_path);
*strrchr(buffer, '\\') = 0;
strcat(buffer,"/Sans.ttf");
sans = TTF_OpenFont(buffer, 24);
//char buffer[1024];
//strcpy(buffer, emu_get_context()->app_path);
//*strrchr(buffer, '\\') = 0;
//strcat(buffer,"/Sans.ttf");
sans = TTF_OpenFont("Sans.ttf", 24);
if ( !sans ) {
printf("Failed to load font: %s\n", TTF_GetError());
}