mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix NO_TTF builds for Windows and macOS
This commit is contained in:
parent
35f3d9f4c9
commit
229c793b33
|
@ -444,6 +444,7 @@ uint8 platform_get_locale_date_format()
|
||||||
return DATE_FORMAT_DAY_MONTH_YEAR;
|
return DATE_FORMAT_DAY_MONTH_YEAR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_TTF
|
||||||
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
||||||
{
|
{
|
||||||
#if !defined(__MINGW32__) && ((NTDDI_VERSION >= NTDDI_VISTA) && !defined(_USING_V110_SDK71_) && !defined(_ATL_XP_TARGETING))
|
#if !defined(__MINGW32__) && ((NTDDI_VERSION >= NTDDI_VISTA) && !defined(_USING_V110_SDK71_) && !defined(_ATL_XP_TARGETING))
|
||||||
|
@ -472,6 +473,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif // NO_TTF
|
||||||
|
|
||||||
utf8 * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath)
|
utf8 * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath)
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,6 +47,7 @@ utf8* macos_str_decomp_to_precomp(utf8 *input)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_TTF
|
||||||
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
||||||
{
|
{
|
||||||
@autoreleasepool
|
@autoreleasepool
|
||||||
|
@ -62,6 +63,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // NO_TTF
|
||||||
|
|
||||||
bool platform_has_matching_language(NSString *preferredLocale, uint16* languageIdentifier)
|
bool platform_has_matching_language(NSString *preferredLocale, uint16* languageIdentifier)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue