mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use utf8 instead of char for platform_get_absolute_path
This commit is contained in:
parent
e310956e81
commit
c4d2cd175d
|
@ -167,7 +167,7 @@ bool platform_original_game_data_exists(const utf8 *path);
|
|||
time_t platform_file_get_modified_time(const utf8* path);
|
||||
bool platform_ensure_directory_exists(const utf8 *path);
|
||||
bool platform_directory_delete(const utf8 *path);
|
||||
char* platform_get_absolute_path(const char* relative_path, const char* base_path);
|
||||
utf8 * platform_get_absolute_path(const utf8 * relative_path, const utf8 * base_path);
|
||||
bool platform_lock_single_instance();
|
||||
sint32 platform_enumerate_files_begin(const utf8 *pattern);
|
||||
bool platform_enumerate_files_next(sint32 handle, file_info *outFileInfo);
|
||||
|
|
|
@ -261,9 +261,9 @@ bool platform_directory_delete(const utf8 *path)
|
|||
return true;
|
||||
}
|
||||
|
||||
char* platform_get_absolute_path(const char * relative_path,const char * base_path)
|
||||
utf8 * platform_get_absolute_path(const utf8 * relative_path, const utf8 * base_path)
|
||||
{
|
||||
char path[MAX_PATH];
|
||||
utf8 path[MAX_PATH];
|
||||
|
||||
if (base_path != NULL)
|
||||
{
|
||||
|
|
|
@ -1060,7 +1060,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
|
|||
#endif
|
||||
}
|
||||
|
||||
char * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath)
|
||||
utf8 * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath)
|
||||
{
|
||||
utf8 path[MAX_PATH];
|
||||
safe_strcpy(path, basePath, sizeof(path));
|
||||
|
|
Loading…
Reference in New Issue