linux compat
This commit is contained in:
10
lib/ui.c
10
lib/ui.c
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user