mirror of https://github.com/OpenRCT2/OpenRCT2.git
Added a hack for MINGW compatibility.
This commit is contained in:
parent
43e193ba10
commit
eda733165e
|
@ -900,6 +900,7 @@ void platform_get_exe_path(utf8 *outPath)
|
||||||
|
|
||||||
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
|
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
|
||||||
{
|
{
|
||||||
|
#ifndef __MINGW32__
|
||||||
wchar_t *fontFolder;
|
wchar_t *fontFolder;
|
||||||
if (SUCCEEDED(SHGetKnownFolderPath(&FOLDERID_Fonts, 0, NULL, &fontFolder)))
|
if (SUCCEEDED(SHGetKnownFolderPath(&FOLDERID_Fonts, 0, NULL, &fontFolder)))
|
||||||
{
|
{
|
||||||
|
@ -920,6 +921,12 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
log_warning("MINGW-compatibility hack: falling back to C:\\Windows\\Fonts");
|
||||||
|
strcat(buffer, "C:\\Windows\\Fonts\\");
|
||||||
|
strcat(buffer, font->filename);
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue