More cleanups to separate main code from platform support and UI support, plus a few bugfixes.

This commit is contained in:
waltje
2017-10-12 14:25:17 -04:00
parent aa7e85d0d7
commit 724e5c44df
46 changed files with 217 additions and 259 deletions

View File

@@ -8,7 +8,7 @@
*
* Define the various platform support functions.
*
* Version: @(#)plat.h 1.0.4 2017/10/10
* Version: @(#)plat.h 1.0.5 2017/10/12
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com>
@@ -28,12 +28,20 @@ extern "C" {
/* System-related functions. */
extern FILE *plat_fopen(wchar_t *path, wchar_t *mode);
extern void plat_remove(wchar_t *path);
extern int plat_getcwd(wchar_t *bufp, int max);
extern int plat_chdir(wchar_t *path);
extern void get_executable_name(wchar_t *s, int size);
extern void set_window_title(wchar_t *s);
extern int dir_check_exist(wchar_t *path);
extern int dir_create(wchar_t *path);
extern void leave_fullscreen(void);
#ifdef WIN32
# define wcscasecmp _wcsicmp
#endif
/* Resource management. */
extern wchar_t *plat_get_string(int id);
@@ -95,5 +103,4 @@ extern void startslirp(void);
extern void endslirp(void);
#endif /*EMU_PLAT_H*/