Separated main code from UI and PLATform support code, plus other generally small fixes here and there.
This commit is contained in:
@@ -6,13 +6,11 @@
|
||||
*
|
||||
* This file is part of the 86Box distribution.
|
||||
*
|
||||
* The Emulator's Windows core.
|
||||
* This file should contain things only used by the platform
|
||||
* support modules for Windows. Generic definitions for UI and
|
||||
* platform go into ../plat*.h.
|
||||
*
|
||||
* NOTE This should be named 'plat.h' and then include any
|
||||
* Windows-specific header files needed, to keep them
|
||||
* out of the main code.
|
||||
*
|
||||
* Version: @(#)win.h 1.0.4 2017/10/07
|
||||
* Version: @(#)win.h 1.0.4 2017/10/09
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -55,41 +53,29 @@
|
||||
#define WM_SAVESETTINGS 0x8888
|
||||
|
||||
|
||||
extern HINSTANCE hinstance;
|
||||
extern HWND hwndMain;
|
||||
extern HICON hIcon[512];
|
||||
extern int pause;
|
||||
extern int status_is_open;
|
||||
extern int mousecapture;
|
||||
extern LCID dwLanguage;
|
||||
|
||||
extern HINSTANCE hinstance;
|
||||
extern HWND hwndMain;
|
||||
extern HICON hIcon[512];
|
||||
|
||||
extern char openfilestring[260];
|
||||
extern WCHAR wopenfilestring[260];
|
||||
|
||||
extern int pause;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern HICON LoadIconEx(PCTSTR pszIconName);
|
||||
extern BOOL DirectoryExists(LPCTSTR szPath);
|
||||
|
||||
extern void leave_fullscreen(void);
|
||||
extern void get_executable_name(wchar_t *s, int size);
|
||||
extern void set_window_title(wchar_t *s);
|
||||
|
||||
extern void win_language_set(void);
|
||||
extern void win_language_update(void);
|
||||
extern void win_language_check(void);
|
||||
|
||||
extern LPTSTR win_get_string(int i);
|
||||
extern LPTSTR win_get_string_from_string(char *str);
|
||||
|
||||
extern void startblit(void);
|
||||
extern void endblit(void);
|
||||
|
||||
|
||||
#ifdef EMU_DEVICE_H
|
||||
extern void deviceconfig_open(HWND hwnd, device_t *device);
|
||||
#endif
|
||||
@@ -106,8 +92,7 @@ extern int hard_disk_was_added(void);
|
||||
extern void get_registry_key_map(void);
|
||||
extern void process_raw_input(LPARAM lParam, int infocus);
|
||||
|
||||
extern void cdrom_init_host_drives(void);
|
||||
extern void cdrom_close(uint8_t id);
|
||||
extern int fdd_type_to_icon(int type);
|
||||
|
||||
|
||||
/* Functions in win_about.c: */
|
||||
@@ -120,39 +105,11 @@ extern void StatusWindowCreate(HWND hwnd);
|
||||
|
||||
|
||||
/* Functions in win_stbar.c: */
|
||||
#define SB_ICON_WIDTH 24
|
||||
#define SB_FLOPPY 0x00
|
||||
#define SB_CDROM 0x10
|
||||
#define SB_RDISK 0x20
|
||||
#define SB_HDD 0x40
|
||||
#define SB_NETWORK 0x50
|
||||
#define SB_TEXT 0x60
|
||||
|
||||
extern HWND hwndSBAR;
|
||||
extern void StatusBarCreate(HWND hwndParent, int idStatus, HINSTANCE hInst);
|
||||
extern int fdd_type_to_icon(int type);
|
||||
extern int StatusBarFindPart(int tag);
|
||||
extern void StatusBarUpdatePanes(void);
|
||||
extern void StatusBarUpdateTip(int meaning);
|
||||
extern void StatusBarUpdateIcon(int tag, int val);
|
||||
extern void StatusBarUpdateIconState(int tag, int active);
|
||||
extern void StatusBarCheckMenuItem(int tag, int id, int chk);
|
||||
extern void StatusBarEnableMenuItem(int tag, int id, int val);
|
||||
extern void StatusBarSetTextW(wchar_t *wstr);
|
||||
extern void StatusBarSetText(char *str);
|
||||
|
||||
|
||||
/* Functions in win_dialog.c: */
|
||||
extern int msgbox_reset(HWND hwndParent);
|
||||
extern int msgbox_reset_yn(HWND hwndParent);
|
||||
extern int msgbox_question(HWND hwndParent, int i);
|
||||
extern void msgbox_info(HWND hwndParent, int i);
|
||||
extern void msgbox_info_wstr(HWND hwndParent, WCHAR *wstr);
|
||||
extern void msgbox_error(HWND hwndParent, int i);
|
||||
extern void msgbox_error_wstr(HWND hwndParent, WCHAR *wstr);
|
||||
extern void msgbox_fatal(HWND hwndParent, char *string);
|
||||
extern void msgbox_critical(HWND hwndParent, int i);
|
||||
|
||||
extern int file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, int save);
|
||||
extern int file_dlg(HWND hwnd, WCHAR *f, char *fn, int save);
|
||||
extern int file_dlg_mb(HWND hwnd, char *f, char *fn, int save);
|
||||
|
||||
Reference in New Issue
Block a user