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