Extract dialog functions out of posix.c and into linux.c

This commit is contained in:
Kyle Kirbatski 2015-12-12 17:20:02 -06:00
parent 20df0a0be7
commit 39ae4e2154
2 changed files with 22 additions and 22 deletions

View File

@ -112,4 +112,26 @@ void platform_posix_sub_user_data_path(char *buffer, const char *homedir, const
strncat(buffer, separator, MAX_PATH - strnlen(buffer, MAX_PATH) - 1);
}
utf8 *platform_open_directory_browser(utf8 *title)
{
STUB();
return NULL;
}
void platform_show_messagebox(char *message)
{
STUB();
log_verbose(message);
}
/**
*
* rct2: 0x004080EA
*/
int platform_open_common_file_dialog(int type, utf8 *title, utf8 *filename, utf8 *filterPattern, utf8 *filterName)
{
STUB();
return 0;
}
#endif

View File

@ -588,28 +588,6 @@ void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory)
log_verbose("outPath + subDirectory = '%s'", buffer);
}
void platform_show_messagebox(char *message)
{
STUB();
log_verbose(message);
}
/**
*
* rct2: 0x004080EA
*/
int platform_open_common_file_dialog(int type, utf8 *title, utf8 *filename, utf8 *filterPattern, utf8 *filterName)
{
STUB();
return 0;
}
utf8 *platform_open_directory_browser(utf8 *title)
{
STUB();
return NULL;
}
uint16 platform_get_locale_language(){
const char *langString = setlocale(LC_MESSAGES, "");
if(langString != NULL){