Use utf8 instead of char for platform_get_absolute_path

This commit is contained in:
Ted John 2017-05-07 19:17:11 +01:00
parent e310956e81
commit c4d2cd175d
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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)
{

View File

@ -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));