Fix changelog resolution on linux

This commit is contained in:
rwjuk 2017-08-07 13:00:28 +01:00 committed by Michał Janiszewski
parent 4132b85c02
commit b70c748ff6
3 changed files with 18 additions and 7 deletions

View File

@ -224,6 +224,18 @@ uint8 platform_get_locale_measurement_format(){
return MEASUREMENT_FORMAT_METRIC;
}
static void platform_linux_get_openrct_doc_path(utf8 *outPath, size_t outSize)
{
platform_posix_sub_resolve_openrct_data_path(outPath, outSize);
safe_strcat_path(outPath, "doc", outSize);
}
void platform_get_changelog_path(utf8 *outPath, size_t outSize)
{
platform_linux_get_openrct_doc_path(outPath, outSize);
safe_strcat_path(outPath, "changelog.txt", outSize);
}
#ifndef NO_TTF
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
{

View File

@ -209,4 +209,10 @@ uint8 platform_get_locale_measurement_format()
}
}
void platform_get_changelog_path(utf8 *outPath, size_t outSize)
{
platform_get_openrct_data_path(outPath, outSize);
safe_strcat_path(outPath, "changelog.txt", outSize);
}
#endif

View File

@ -842,11 +842,4 @@ bool platform_process_is_elevated()
return (geteuid() == 0);
}
void platform_get_changelog_path(utf8 *outPath, size_t outSize)
{
platform_get_openrct_data_path(outPath, outSize);
safe_strcat_path(outPath, "changelog.txt", outSize);
}
#endif