mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Use included font.ttf for mupen64plus
This commit is contained in:
parent
afb6f7e857
commit
48018bdf4a
|
@ -25,6 +25,11 @@
|
|||
|
||||
#include "TextDrawer.h"
|
||||
|
||||
#ifdef MUPENPLUSAPI
|
||||
#include "mupenplus/GLideN64_mupenplus.h"
|
||||
#include <osal_files.h>
|
||||
#endif
|
||||
|
||||
using namespace graphics;
|
||||
|
||||
// Maximum texture width
|
||||
|
@ -203,7 +208,14 @@ bool getFontFileName(char * _strName)
|
|||
#elif defined (PANDORA)
|
||||
sprintf(_strName, "/usr/share/fonts/truetype/%s", config.font.name.c_str());
|
||||
#else
|
||||
sprintf(_strName, "/usr/share/fonts/truetype/freefont/%s", config.font.name.c_str());
|
||||
sprintf(_strName, "/usr/share/fonts/truetype/freefont/%s", config.font.name.c_str());
|
||||
#endif
|
||||
#ifdef MUPENPLUSAPI
|
||||
if (!osal_path_existsA(_strName)) {
|
||||
const char * fontPath = ConfigGetSharedDataFilepath("font.ttf");
|
||||
if (osal_path_existsA(fontPath))
|
||||
strncpy(_strName, fontPath, PLUGIN_PATH_SIZE);
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user