mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Added a hack for MINGW compatibility.
This commit is contained in:
@@ -900,6 +900,7 @@ void platform_get_exe_path(utf8 *outPath)
|
||||
|
||||
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
|
||||
{
|
||||
#ifndef __MINGW32__
|
||||
wchar_t *fontFolder;
|
||||
if (SUCCEEDED(SHGetKnownFolderPath(&FOLDERID_Fonts, 0, NULL, &fontFolder)))
|
||||
{
|
||||
@@ -920,6 +921,12 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user