diff --git a/bumpversion.sh b/bumpversion.sh
index 4681e72be..6e2536cbe 100644
--- a/bumpversion.sh
+++ b/bumpversion.sh
@@ -26,12 +26,6 @@ then
fi
shift
-# Extract version components.
-newversion_maj=$(echo "$newversion" | cut -d. -f1)
-newversion_min=$(echo "$newversion" | cut -d. -f2)
-newversion_patch=$(echo "$newversion" | cut -d. -f3)
-[ -z "$newversion_patch" ] && newversion_patch=0
-
if [ -z "${romversion}" ]; then
# Get the latest ROM release from the GitHub API.
romversion=$(curl --silent "https://api.github.com/repos/86Box/roms/releases/latest" |
@@ -62,12 +56,6 @@ patch_file() {
}
patch_file CMakeLists.txt VERSION 's/^(\s*VERSION ).+/\1'"$newversion"'/'
patch_file vcpkg.json version-string 's/(^\s*"version-string"\s*:\s*")[^"]+/\1'"$newversion"'/'
-patch_file src/include_make/*/version.h EMU_VERSION 's/(#\s*define\s+EMU_VERSION\s+")[^"]+/\1'"$newversion"'/'
-patch_file src/include_make/*/version.h EMU_VERSION_MAJ 's/(#\s*define\s+EMU_VERSION_MAJ\s+)[0-9]+/\1'"$newversion_maj"'/'
-patch_file src/include_make/*/version.h EMU_VERSION_MIN 's/(#\s*define\s+EMU_VERSION_MIN\s+)[0-9]+/\1'"$newversion_min"'/'
-patch_file src/include_make/*/version.h EMU_VERSION_PATCH 's/(#\s*define\s+EMU_VERSION_PATCH\s+)[0-9]+/\1'"$newversion_patch"'/'
-patch_file src/include_make/*/version.h COPYRIGHT_YEAR 's/(#\s*define\s+COPYRIGHT_YEAR\s+)[0-9]+/\1'"$(date +%Y)"'/'
-patch_file src/include_make/*/version.h EMU_DOCS_URL 's/(#\s*define\s+EMU_DOCS_URL\s+"https:\/\/[^\/]+\/en\/v)[^\/]+/\1'"$newversion_maj.$newversion_min"'/'
patch_file src/unix/assets/*.spec Version 's/(Version:\s+)[0-9].+/\1'"$newversion"'/'
patch_file src/unix/assets/*.spec '%global romver' 's/(^%global\ romver\s+)[0-9]{8}/\1'"$romversion"'/'
patch_file src/unix/assets/*.spec 'changelog version' 's/(^[*]\s.*>\s+)[0-9].+/\1'"$newversion"-1'/'
diff --git a/src/include/86box/resource.h b/src/include/86box/resource.h
deleted file mode 100644
index 2e6628c77..000000000
--- a/src/include/86box/resource.h
+++ /dev/null
@@ -1,524 +0,0 @@
-/*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Windows resource defines.
- *
- *
- *
- * Authors: Sarah Walker,
- * Miran Grca,
- * Fred N. van Kempen,
- * David Hrdlička,
- *
- * Copyright 2008-2019 Sarah Walker.
- * Copyright 2016-2019 Miran Grca.
- * Copyright 2018-2019 David Hrdlička.
- * Copyright 2021-2022 Jasmine Iwanek.
- */
-
-#ifndef WIN_RESOURCE_H
-#define WIN_RESOURCE_H
-
-/* Dialog IDs. */
-#define DLG_ABOUT 101 /* top-level dialog */
-#define DLG_STATUS 102 /* top-level dialog */
-#define DLG_SND_GAIN 103 /* top-level dialog */
-#define DLG_NEW_FLOPPY 104 /* top-level dialog */
-#define DLG_SPECIFY_DIM 105 /* top-level dialog */
-#define DLG_PREFERENCES 106 /* top-level dialog */
-#define DLG_CONFIG 110 /* top-level dialog */
-#define DLG_CFG_MACHINE 111 /* sub-dialog of config */
-#define DLG_CFG_VIDEO 112 /* sub-dialog of config */
-#define DLG_CFG_INPUT 113 /* sub-dialog of config */
-#define DLG_CFG_SOUND 114 /* sub-dialog of config */
-#define DLG_CFG_NETWORK 115 /* sub-dialog of config */
-#define DLG_CFG_PORTS 116 /* sub-dialog of config */
-#define DLG_CFG_STORAGE 117 /* sub-dialog of config */
-#define DLG_CFG_HARD_DISKS 118 /* sub-dialog of config */
-#define DLG_CFG_HARD_DISKS_ADD 119 /* sub-dialog of config */
-#define DLG_CFG_FLOPPY_AND_CDROM_DRIVES 120 /* sub-dialog of config */
-#define DLG_CFG_OTHER_REMOVABLE_DEVICES 121 /* sub-dialog of config */
-#define DLG_CFG_PERIPHERALS 122 /* sub-dialog of config */
-
-/* Static text label IDs. */
-
-/* DLG_SND_GAIN */
-#define IDT_GAIN 1700 /* Gain */
-
-/* DLG_NEW_FLOPPY */
-#define IDT_FLP_FILE_NAME 1701 /* File name: */
-#define IDT_FLP_DISK_SIZE 1702 /* Disk size: */
-#define IDT_FLP_RPM_MODE 1703 /* RPM mode: */
-#define IDT_FLP_PROGRESS 1704 /* Progress: */
-
-/* DLG_SPECIFY_DIM */
-#define IDT_WIDTH 1705 /* ??? */
-#define IDT_HEIGHT 1706 /* ??? */
-
-/* DLG_CFG_MACHINE */
-#define IDT_MACHINE_TYPE 1707 /* Machine type: */
-#define IDT_MACHINE 1708 /* Machine: */
-#define IDT_CPU_TYPE 1709 /* CPU type: */
-#define IDT_CPU_SPEED 1710 /* CPU speed: */
-#define IDT_FPU 1711 /* FPU: */
-#define IDT_WAIT_STATES 1712 /* Wait states: */
-#define IDT_MB 1713 /* MB == IDC_TEXT_MB */
-#define IDT_MEMORY 1714 /* Memory: */
-
-/* DLG_CFG_VIDEO */
-#define IDT_VIDEO 1715 /* Video: */
-#define IDT_VIDEO_2 1716 /* Video 2: */
-
-/* DLG_CFG_INPUT */
-#define IDT_MOUSE 1717 /* Mouse: */
-#define IDT_JOYSTICK 1718 /* Joystick: */
-
-/* DLG_CFG_SOUND */
-#define IDT_SOUND1 1719 /* Sound card #1: */
-#define IDT_SOUND2 1720 /* Sound card #2: */
-#define IDT_SOUND3 1721 /* Sound card #3: */
-#define IDT_SOUND4 1722 /* Sound card #4: */
-#define IDT_MIDI_OUT 1723 /* MIDI Out Device: */
-#define IDT_MIDI_IN 1724 /* MIDI In Device: */
-
-/* DLG_CFG_NETWORK */
-#define IDT_NET_TYPE 1725 /* Network type: */
-#define IDT_PCAP 1726 /* PCap device: */
-#define IDT_NET 1727 /* Network adapter: */
-#define IDT_NET1 1728 /* Network adapter 1: */
-#define IDT_NET2 1729 /* Network adapter 2: */
-#define IDT_NET3 1730 /* Network adapter 3: */
-#define IDT_NET4 1731 /* Network adapter 4: */
-
-/* DLG_CFG_PORTS */
-#define IDT_COM1 1732 /* COM1 Device: */
-#define IDT_COM2 1733 /* COM1 Device: */
-#define IDT_COM3 1734 /* COM1 Device: */
-#define IDT_COM4 1735 /* COM1 Device: */
-
-#define IDT_LPT1 1736 /* LPT1 Device: */
-#define IDT_LPT2 1737 /* LPT2 Device: */
-#define IDT_LPT3 1738 /* LPT3 Device: */
-#define IDT_LPT4 1739 /* LPT4 Device: */
-
-/* DLG_CFG_STORAGE */
-#define IDT_HDC 1740 /* HD Controller: */
-#define IDT_FDC 1741 /* Ext FD Controller: */
-#define IDT_SCSI_1 1742 /* SCSI Board #1: */
-#define IDT_SCSI_2 1743 /* SCSI Board #2: */
-#define IDT_SCSI_3 1744 /* SCSI Board #3: */
-#define IDT_SCSI_4 1745 /* SCSI Board #4: */
-
-/* DLG_CFG_HARD_DISKS */
-#define IDT_HDD 1746 /* Hard disks: */
-#define IDT_BUS 1747 /* Bus: */
-#define IDT_CHANNEL 1748 /* Channel: */
-#define IDT_ID 1749 /* ID: */
-#define IDT_LUN 1750 /* LUN: */
-#define IDT_SPEED 1751 /* Speed: */
-
-/* DLG_CFG_HARD_DISKS_ADD */
-#define IDT_SECTORS 1752 /* Sectors: */
-#define IDT_HEADS 1753 /* Heads: */
-#define IDT_CYLS 1754 /* Cylinders: */
-#define IDT_SIZE_MB 1755 /* Size (MB): */
-#define IDT_TYPE 1756 /* Type: */
-#define IDT_FILE_NAME 1757 /* File name: */
-#define IDT_IMG_FORMAT 1758 /* Image Format: */
-#define IDT_BLOCK_SIZE 1759 /* Block Size: */
-#define IDT_PROGRESS 1760 /* Progress: */
-
-/* DLG_CFG_FLOPPY_AND_CDROM_DRIVES */
-#define IDT_FLOPPY_DRIVES 1761 /* Floppy drives: */
-#define IDT_FDD_TYPE 1762 /* Type: */
-#define IDT_CD_DRIVES 1763 /* CD-ROM drives: */
-#define IDT_CD_BUS 1764 /* Bus: */
-#define IDT_CD_ID 1765 /* ID: */
-#define IDT_CD_LUN 1766 /* LUN: */
-#define IDT_CD_CHANNEL 1767 /* Channel: */
-#define IDT_CD_SPEED 1768 /* Speed: */
-#define IDT_CD_TYPE 1769 /* Type: */
-
-/* DLG_CFG_OTHER_REMOVABLE_DEVICES */
-#define IDT_MO_DRIVES 1770 /* MO drives: */
-#define IDT_MO_BUS 1771 /* Bus: */
-#define IDT_MO_ID 1772 /* ID: */
-#define IDT_MO_CHANNEL 1773 /* Channel */
-#define IDT_MO_TYPE 1774 /* Type: */
-
-#define IDT_ZIP_DRIVES 1775 /* ZIP drives: */
-#define IDT_ZIP_BUS 1776 /* Bus: */
-#define IDT_ZIP_ID 1777 /* ID: */
-#define IDT_ZIP_LUN 1778 /* LUN: */
-#define IDT_ZIP_CHANNEL 1779 /* Channel: */
-
-/* DLG_CFG_PERIPHERALS */
-#define IDT_ISARTC 1780 /* ISA RTC: */
-#define IDT_ISAMEM_1 1781 /* ISAMEM Board #1: */
-#define IDT_ISAMEM_2 1782 /* ISAMEM Board #2: */
-#define IDT_ISAMEM_3 1783 /* ISAMEM Board #3: */
-#define IDT_ISAMEM_4 1784 /* ISAMEM Board #4: */
-
-/*
- * To try to keep these organized, we now group the
- * constants per dialog, as this allows easy adding
- * and deleting items.
- */
-#define IDC_SETTINGSCATLIST 1001 /* generic config */
-#define IDC_CFILE 1002 /* Select File dialog */
-#define IDC_TIME_SYNC 1005
-#define IDC_RADIO_TS_DISABLED 1006
-#define IDC_RADIO_TS_LOCAL 1007
-#define IDC_RADIO_TS_UTC 1008
-
-#define IDC_COMBO_MACHINE_TYPE 1010
-#define IDC_COMBO_MACHINE 1011 /* machine/cpu config */
-#define IDC_CONFIGURE_MACHINE 1012
-#define IDC_COMBO_CPU_TYPE 1013
-#define IDC_COMBO_CPU_SPEED 1014
-#define IDC_COMBO_FPU 1015
-#define IDC_COMBO_WS 1016
-#ifdef USE_DYNAREC
-# define IDC_CHECK_DYNAREC 1017
-#endif
-#define IDC_CHECK_SOFTFLOAT 1018
-#define IDC_MEMTEXT 1019
-#define IDC_MEMSPIN 1020
-#define IDC_TEXT_MB IDT_MB
-
-#define IDC_VIDEO 1021 /* video config */
-#define IDC_COMBO_VIDEO 1022
-#define IDC_VIDEO_2 1023
-#define IDC_COMBO_VIDEO_2 1024
-#define IDC_CHECK_VOODOO 1025
-#define IDC_BUTTON_VOODOO 1026
-#define IDC_CHECK_IBM8514 1027
-#define IDC_CHECK_XGA 1028
-#define IDC_BUTTON_XGA 1029
-
-#define IDC_INPUT 1030 /* input config */
-#define IDC_COMBO_MOUSE 1031
-#define IDC_COMBO_JOYSTICK 1032
-#define IDC_COMBO_JOY 1033
-#define IDC_CONFIGURE_MOUSE 1034
-
-#define IDC_SOUND 1040 /* sound config */
-#define IDC_COMBO_SOUND1 1041
-#define IDC_COMBO_SOUND2 1042
-#define IDC_COMBO_SOUND3 1043
-#define IDC_COMBO_SOUND4 1044
-#define IDC_COMBO_MIDI_OUT 1045
-#define IDC_CHECK_MPU401 1046
-#define IDC_CONFIGURE_MPU401 1047
-#define IDC_CHECK_FLOAT 1048
-#define IDC_CONFIGURE_GUS 1049
-#define IDC_COMBO_MIDI_IN 1050
-#define IDC_CONFIGURE_CMS 1051
-#define IDC_CONFIGURE_SSI 1052
-#define IDC_FM_DRIVER 1053
-#define IDC_RADIO_FM_DRV_NUKED 1054
-#define IDC_RADIO_FM_DRV_YMFM 1055
-
-#define IDC_COMBO_NET1_TYPE 1060 /* network config */
-#define IDC_COMBO_NET2_TYPE 1061
-#define IDC_COMBO_NET3_TYPE 1062
-#define IDC_COMBO_NET4_TYPE 1063
-#define IDC_COMBO_PCAP1 1064
-#define IDC_COMBO_PCAP2 1065
-#define IDC_COMBO_PCAP3 1066
-#define IDC_COMBO_PCAP4 1067
-#define IDC_COMBO_NET1 1068
-#define IDC_COMBO_NET2 1069
-#define IDC_COMBO_NET3 1070
-#define IDC_COMBO_NET4 1071
-
-#define IDC_COMBO_LPT1 1080 /* ports config */
-#define IDC_COMBO_LPT2 1081
-#define IDC_COMBO_LPT3 1082
-#define IDC_COMBO_LPT4 1083
-#define IDC_CHECK_SERIAL1 1084
-#define IDC_CHECK_SERIAL2 1085
-#define IDC_CHECK_SERIAL3 1086
-#define IDC_CHECK_SERIAL4 1087
-#define IDC_CHECK_PARALLEL1 1088
-#define IDC_CHECK_PARALLEL2 1089
-#define IDC_CHECK_PARALLEL3 1090
-#define IDC_CHECK_PARALLEL4 1091
-#define IDC_CHECK_SERIAL_PASS1 1092
-#define IDC_CHECK_SERIAL_PASS2 1093
-#define IDC_CHECK_SERIAL_PASS3 1094
-#define IDC_CHECK_SERIAL_PASS4 1095
-
-#define IDC_OTHER_PERIPH 1110 /* storage controllers config */
-#define IDC_COMBO_HDC 1111
-#define IDC_CONFIGURE_HDC 1112
-#define IDC_CHECK_IDE_TER 1113
-#define IDC_BUTTON_IDE_TER 1114
-#define IDC_CHECK_IDE_QUA 1115
-#define IDC_BUTTON_IDE_QUA 1116
-#define IDC_GROUP_SCSI 1117
-#define IDC_COMBO_SCSI_1 1118
-#define IDC_COMBO_SCSI_2 1119
-#define IDC_COMBO_SCSI_3 1120
-#define IDC_COMBO_SCSI_4 1121
-#define IDC_CONFIGURE_SCSI_1 1122
-#define IDC_CONFIGURE_SCSI_2 1123
-#define IDC_CONFIGURE_SCSI_3 1124
-#define IDC_CONFIGURE_SCSI_4 1125
-#define IDC_CHECK_CASSETTE 1126
-
-#define IDC_HARD_DISKS 1130 /* hard disks config */
-#define IDC_LIST_HARD_DISKS 1131
-#define IDC_BUTTON_HDD_ADD_NEW 1132
-#define IDC_BUTTON_HDD_ADD 1133
-#define IDC_BUTTON_HDD_REMOVE 1134
-#define IDC_COMBO_HD_BUS 1135
-#define IDC_COMBO_HD_CHANNEL 1136
-#define IDC_COMBO_HD_ID 1137
-#define IDC_COMBO_HD_SPEED 1138
-#define IDC_COMBO_HD_CHANNEL_IDE 1139
-
-#define IDC_EDIT_HD_FILE_NAME 1140 /* add hard disk dialog */
-#define IDC_EDIT_HD_SPT 1141
-#define IDC_EDIT_HD_HPC 1142
-#define IDC_EDIT_HD_CYL 1143
-#define IDC_EDIT_HD_SIZE 1144
-#define IDC_COMBO_HD_TYPE 1145
-#define IDC_PBAR_IMG_CREATE 1146
-#define IDC_COMBO_HD_IMG_FORMAT 1147
-#define IDC_COMBO_HD_BLOCK_SIZE 1148
-
-#define IDC_REMOV_DEVICES 1150 /* floppy and cd-rom drives config */
-#define IDC_LIST_FLOPPY_DRIVES 1151
-#define IDC_COMBO_FD_TYPE 1152
-#define IDC_CHECKTURBO 1153
-#define IDC_CHECKBPB 1154
-#define IDC_LIST_CDROM_DRIVES 1155
-#define IDC_COMBO_CD_BUS 1156
-#define IDC_COMBO_CD_ID 1157
-#define IDC_COMBO_CD_LUN 1158
-#define IDC_COMBO_CD_CHANNEL_IDE 1159
-#define IDC_COMBO_CD_TYPE 1160
-
-#define IDC_LIST_ZIP_DRIVES 1170 /* other removable devices config */
-#define IDC_COMBO_ZIP_BUS 1171
-#define IDC_COMBO_ZIP_ID 1172
-#define IDC_COMBO_ZIP_LUN 1173
-#define IDC_COMBO_ZIP_CHANNEL_IDE 1174
-#define IDC_CHECK250 1175
-#define IDC_COMBO_CD_SPEED 1176
-#define IDC_LIST_MO_DRIVES 1177
-#define IDC_COMBO_MO_BUS 1178
-#define IDC_COMBO_MO_ID 1179
-#define IDC_COMBO_MO_LUN 1170
-#define IDC_COMBO_MO_CHANNEL_IDE 1181
-#define IDC_COMBO_MO_TYPE 1182
-
-#define IDC_CHECK_BUGGER 1190 /* other periph config */
-#define IDC_CHECK_POSTCARD 1191
-#define IDC_COMBO_ISARTC 1192
-#define IDC_CONFIGURE_ISARTC 1193
-#define IDC_COMBO_FDC 1194
-#define IDC_CONFIGURE_FDC 1195
-#define IDC_GROUP_ISAMEM 1196
-#define IDC_COMBO_ISAMEM_1 1197
-#define IDC_COMBO_ISAMEM_2 1198
-#define IDC_COMBO_ISAMEM_3 1199
-#define IDC_COMBO_ISAMEM_4 1200
-#define IDC_CONFIGURE_ISAMEM_1 1201
-#define IDC_CONFIGURE_ISAMEM_2 1202
-#define IDC_CONFIGURE_ISAMEM_3 1203
-#define IDC_CONFIGURE_ISAMEM_4 1204
-
-#define IDC_SLIDER_GAIN 1210 /* sound gain dialog */
-
-#define IDC_EDIT_FILE_NAME 1220 /* new floppy image dialog */
-#define IDC_COMBO_DISK_SIZE 1221
-#define IDC_COMBO_RPM_MODE 1222
-
-#define IDC_COMBO_LANG 1009 /* change language dialog */
-#define IDC_COMBO_ICON 1010
-#define IDC_CHECKBOX_GLOBAL 1300
-#define IDC_BUTTON_DEFAULT 1302
-#define IDC_BUTTON_DEFICON 1304
-
-/* For the DeviceConfig code, re-do later. */
-#define IDC_CONFIG_BASE 1300
-#define IDC_CONFIGURE_VID 1300
-#define IDC_CONFIGURE_VID_2 1301
-#define IDC_CONFIGURE_SND1 1302
-#define IDC_CONFIGURE_SND2 1303
-#define IDC_CONFIGURE_SND3 1304
-#define IDC_CONFIGURE_SND4 1305
-#define IDC_CONFIGURE_VOODOO 1306
-#define IDC_CONFIGURE_NET1_TYPE 1310
-#define IDC_CONFIGURE_NET2_TYPE 1311
-#define IDC_CONFIGURE_NET3_TYPE 1312
-#define IDC_CONFIGURE_NET4_TYPE 1313
-#define IDC_CONFIGURE_PCAP1 1314
-#define IDC_CONFIGURE_PCAP2 1315
-#define IDC_CONFIGURE_PCAP3 1316
-#define IDC_CONFIGURE_PCAP4 1317
-#define IDC_CONFIGURE_NET1 1318
-#define IDC_CONFIGURE_NET2 1319
-#define IDC_CONFIGURE_NET3 1320
-#define IDC_CONFIGURE_NET4 1321
-#define IDC_CONFIGURE_MIDI_OUT 1322
-#define IDC_CONFIGURE_MIDI_IN 1323
-#define IDC_CONFIGURE_SERIAL_PASS1 1324
-#define IDC_CONFIGURE_SERIAL_PASS2 1325
-#define IDC_CONFIGURE_SERIAL_PASS3 1326
-#define IDC_CONFIGURE_SERIAL_PASS4 1327
-#define IDC_JOY1 1330
-#define IDC_JOY2 1331
-#define IDC_JOY3 1332
-#define IDC_JOY4 1333
-#define IDC_HDTYPE 1380
-#define IDC_RENDER 1381
-#define IDC_STATUS 1382
-
-#define IDC_EDIT_WIDTH 1400 /* specify main window dimensions dialog */
-#define IDC_WIDTHSPIN 1401
-#define IDC_EDIT_HEIGHT 1402
-#define IDC_HEIGHTSPIN 1403
-#define IDC_CHECK_LOCK_SIZE 1404
-
-#define IDM_ABOUT 40001
-#define IDC_ABOUT_ICON 65535
-#define IDM_ACTION_KBD_REQ_CAPTURE 40010
-#define IDM_ACTION_RCTRL_IS_LALT 40011
-#define IDM_ACTION_SCREENSHOT 40012
-#define IDM_ACTION_HRESET 40013
-#define IDM_ACTION_RESET_CAD 40014
-#define IDM_ACTION_EXIT 40015
-#define IDM_ACTION_CTRL_ALT_ESC 40016
-#define IDM_ACTION_PAUSE 40017
-#ifdef MTR_ENABLED
-# define IDM_ACTION_BEGIN_TRACE 40018
-# define IDM_ACTION_END_TRACE 40019
-# define IDM_ACTION_TRACE 40020
-#endif
-#define IDM_CONFIG 40021
-#define IDM_VID_HIDE_STATUS_BAR 40022
-#define IDM_VID_HIDE_TOOLBAR 40023
-#define IDM_UPDATE_ICONS 40030
-#define IDM_SND_GAIN 40031
-#define IDM_VID_MONITORS 40040
-#define IDM_VID_RESIZE 40041
-#define IDM_VID_REMEMBER 40042
-#define IDM_VID_SDL_SW 40050
-#define IDM_VID_SDL_HW 40051
-#define IDM_VID_SDL_OPENGL 40052
-#define IDM_VID_OPENGL_CORE 40053
-#ifdef USE_VNC
-# define IDM_VID_VNC 40054
-#endif
-#define IDM_VID_SCALE_1X 40055
-#define IDM_VID_SCALE_2X 40056
-#define IDM_VID_SCALE_3X 40057
-#define IDM_VID_SCALE_4X 40058
-#define IDM_VID_SCALE_5X 40059
-#define IDM_VID_SCALE_6X 40060
-#define IDM_VID_SCALE_7X 40061
-#define IDM_VID_SCALE_8X 40062
-#define IDM_VID_SCALE_9X 40063
-#define IDM_VID_SCALE_10X 40064
-
-#define IDM_VID_HIDPI 40065
-#define IDM_VID_FULLSCREEN 40066
-#define IDM_VID_FS_FULL 40067
-#define IDM_VID_FS_43 40068
-#define IDM_VID_FS_KEEPRATIO 40069
-#define IDM_VID_FS_INT 40070
-#define IDM_VID_SPECIFY_DIM 40071
-#define IDM_VID_FORCE43 40072
-#define IDM_VID_OVERSCAN 40073
-#define IDM_VID_INVERT 40074
-#define IDM_VID_CGACON 40075
-#define IDM_VID_GRAYCT_601 40076
-#define IDM_VID_GRAYCT_709 40077
-#define IDM_VID_GRAYCT_AVE 40078
-#define IDM_VID_GRAY_RGB 40080
-#define IDM_VID_GRAY_MONO 40081
-#define IDM_VID_GRAY_AMBER 40082
-#define IDM_VID_GRAY_GREEN 40083
-#define IDM_VID_GRAY_WHITE 40084
-#define IDM_VID_FILTER_NEAREST 40085
-#define IDM_VID_FILTER_LINEAR 40086
-
-#define IDM_MEDIA 40087
-#define IDM_DOCS 40088
-
-#define IDM_DISCORD 40090
-
-#define IDM_PREFERENCES 40091
-
-#define IDM_VID_GL_FPS_BLITTER 40100
-#define IDM_VID_GL_FPS_25 40101
-#define IDM_VID_GL_FPS_30 40102
-#define IDM_VID_GL_FPS_50 40103
-#define IDM_VID_GL_FPS_60 40104
-#define IDM_VID_GL_FPS_75 40105
-#define IDM_VID_GL_VSYNC 40106
-#define IDM_VID_GL_SHADER 40107
-#define IDM_VID_GL_NOSHADER 40108
-
-/*
- * We need 7 bits for CDROM (2 bits ID and 5 bits for host drive),
- * and 5 bits for Removable Disks (5 bits for ID), so we use an
- * 8bit (256 entries) space for these devices.
- */
-#define IDM_CASSETTE_IMAGE_NEW 0x1200
-#define IDM_CASSETTE_IMAGE_EXISTING 0x1300
-#define IDM_CASSETTE_IMAGE_EXISTING_WP 0x1400
-#define IDM_CASSETTE_RECORD 0x1500
-#define IDM_CASSETTE_PLAY 0x1600
-#define IDM_CASSETTE_REWIND 0x1700
-#define IDM_CASSETTE_FAST_FORWARD 0x1800
-#define IDM_CASSETTE_EJECT 0x1900
-
-#define IDM_CARTRIDGE_IMAGE 0x2200
-#define IDM_CARTRIDGE_EJECT 0x2300
-
-#define IDM_FLOPPY_IMAGE_NEW 0x3200
-#define IDM_FLOPPY_IMAGE_EXISTING 0x3300
-#define IDM_FLOPPY_IMAGE_EXISTING_WP 0x3400
-#define IDM_FLOPPY_EXPORT_TO_86F 0x3500
-#define IDM_FLOPPY_EJECT 0x3600
-
-#define IDM_CDROM_MUTE 0x4200
-#define IDM_CDROM_EMPTY 0x4300
-#define IDM_CDROM_RELOAD 0x4400
-#define IDM_CDROM_IMAGE 0x4500
-#define IDM_CDROM_DIR 0x4600
-#define IDM_CDROM_HOST_DRIVE 0x4700
-
-#define IDM_ZIP_IMAGE_NEW 0x5200
-#define IDM_ZIP_IMAGE_EXISTING 0x5300
-#define IDM_ZIP_IMAGE_EXISTING_WP 0x5400
-#define IDM_ZIP_EJECT 0x5500
-#define IDM_ZIP_RELOAD 0x5600
-
-#define IDM_MO_IMAGE_NEW 0x6200
-#define IDM_MO_IMAGE_EXISTING 0x6300
-#define IDM_MO_IMAGE_EXISTING_WP 0x6400
-#define IDM_MO_EJECT 0x6500
-#define IDM_MO_RELOAD 0x6600
-
-/* Next default values for new objects */
-#ifdef APSTUDIO_INVOKED
-# ifndef APSTUDIO_READONLY_SYMBOLS
-# define _APS_NO_MFC 1
-# define _APS_NEXT_RESOURCE_VALUE 1400
-# define _APS_NEXT_COMMAND_VALUE 55000
-# define _APS_NEXT_CONTROL_VALUE 1800
-# define _APS_NEXT_SYMED_VALUE 200
-# endif
-#endif
-
-#endif /*WIN_RESOURCE_H*/
diff --git a/src/include/86box/win.h b/src/include/86box/win.h
index 35f6688ad..5cead7cb0 100644
--- a/src/include/86box/win.h
+++ b/src/include/86box/win.h
@@ -26,50 +26,7 @@
#ifndef UNICODE
# define UNICODE
#endif
-#define BITMAP WINDOWS_BITMAP
-#if 0
-# ifdef _WIN32_WINNT
-# undef _WIN32_WINNT
-# define _WIN32_WINNT 0x0501
-# endif
-#endif
-#include "resource.h"
#include
-#undef BITMAP
-
-/* DPI Awareness Context, copied from MinGW-w64 windef.h */
-#ifndef _DPI_AWARENESS_CONTEXTS_
-DECLARE_HANDLE(DPI_AWARENESS_CONTEXT);
-# define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT) -1)
-# define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT) -2)
-# define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT) -3)
-# define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT) -4)
-# define DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED ((DPI_AWARENESS_CONTEXT) -5)
-#endif
-
-#ifndef WM_DPICHANGED_AFTERPARENT
-# define WM_DPICHANGED_AFTERPARENT 0x02E3
-#endif
-
-/* Class names and such. */
-#define CLASS_NAME L"86BoxMainWnd"
-#define MENU_NAME L"MainMenu"
-#define ACCEL_NAME L"MainAccel"
-#define SUB_CLASS_NAME L"86BoxSubWnd"
-#define SB_CLASS_NAME L"86BoxStatusBar"
-#define SB_MENU_NAME L"StatusBarMenu"
-#define FS_CLASS_NAME L"86BoxFullScreen"
-#define SDL_CLASS_NAME L"86BoxSDLWnd"
-#define SDL_SUB_CLASS_NAME L"86BoxSDLSubWnd"
-
-#define CASSETTE_SUBMENU_NAME L"CassetteSubmenu"
-#define CARTRIDGE_SUBMENU_NAME L"CartridgeSubmenu"
-#define FLOPPY_SUBMENU_NAME L"FloppySubmenu"
-#define CDROM_SUBMENU_NAME L"CdromSubmenu"
-#define ZIP_SUBMENU_NAME L"ZIPSubmenu"
-#define MO_SUBMENU_NAME L"MOSubmenu"
-
-#define VID_GL_SUBMENU L"VidGLSubMenu"
/* Application-specific window messages.
@@ -92,163 +49,4 @@ DECLARE_HANDLE(DPI_AWARENESS_CONTEXT);
/* The emulator has shut down. */
#define WM_HAS_SHUTDOWN 0x8897
-#ifdef USE_VNC
-# define RENDERERS_NUM 5
-#else
-# define RENDERERS_NUM 4
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern HINSTANCE hinstance;
-extern HWND hwndMain;
-extern HWND hwndRender;
-extern HWND hwndRender2;
-extern HANDLE ghMutex;
-extern HICON hIcon[256];
-extern int dpi;
-extern RECT oldclip;
-extern int sbar_height;
-extern int tbar_height;
-extern int user_resize;
-extern int acp_utf8;
-
-#if 0
-extern int status_is_open;
-#endif
-
-extern char openfilestring[512];
-extern WCHAR wopenfilestring[512];
-
-extern uint8_t filterindex;
-
-extern void ResizeWindowByClientArea(HWND hwnd, int width, int height);
-
-/* Emulator start/stop support functions. */
-extern void do_start(void);
-extern void do_stop(void);
-
-/* Internal platform support functions. */
-extern int has_language_changed(uint32_t id);
-extern void set_language(uint32_t id);
-extern int get_vidpause(void);
-extern void show_cursor(int);
-
-extern void keyboard_getkeymap(void);
-extern void keyboard_handle(PRAWINPUT raw);
-
-extern void win_mouse_init(void);
-extern void win_mouse_close(void);
-extern void win_mouse_handle(PRAWINPUT raw);
-
-extern void win_joystick_handle(PRAWINPUT raw);
-
-extern void win_notify_dlg_open(void);
-extern void win_notify_dlg_closed(void);
-extern int win_get_dpi(HWND hwnd);
-extern int win_get_system_metrics(int i, int dpi);
-
-extern LPARAM win_get_string(int id);
-
-extern void win_clear_icon_set(void);
-extern void win_system_icon_set(void);
-extern void win_load_icon_set(void);
-extern void win_get_icons_path(char *path_root);
-
-extern intptr_t fdd_type_to_icon(int type);
-
-#ifdef EMU_DEVICE_H
-extern uint8_t deviceconfig_open(HWND hwnd, const device_t *device);
-extern uint8_t deviceconfig_inst_open(HWND hwnd, const device_t *device, int inst);
-#endif
-extern uint8_t joystickconfig_open(HWND hwnd, int joy_nr, int type);
-
-extern int getfile(HWND hwnd, char *f, char *fn);
-extern int getsfile(HWND hwnd, char *f, char *fn);
-
-extern void hard_disk_add_open(HWND hwnd, int is_existing);
-extern int hard_disk_was_added(void);
-
-/* Platform UI support functions. */
-extern int ui_init(int nCmdShow);
-
-/* Functions in win_about.c: */
-extern void AboutDialogCreate(HWND hwnd);
-
-/* Functions in win_snd_gain.c: */
-extern void SoundGainDialogCreate(HWND hwnd);
-
-/* Functions in win_new_floppy.c: */
-extern void NewFloppyDialogCreate(HWND hwnd, int id, int part);
-
-/* Functions in win_specify_dim.c: */
-extern void SpecifyDimensionsDialogCreate(HWND hwnd);
-
-/* Functions in win_preferences.c: */
-extern void PreferencesDlgCreate(HWND hwnd);
-
-/* Functions in win_settings.c: */
-#define SETTINGS_PAGE_MACHINE 0
-#define SETTINGS_PAGE_VIDEO 1
-#define SETTINGS_PAGE_INPUT 2
-#define SETTINGS_PAGE_SOUND 3
-#define SETTINGS_PAGE_NETWORK 4
-#define SETTINGS_PAGE_PORTS 5
-#define SETTINGS_PAGE_STORAGE 6
-#define SETTINGS_PAGE_HARD_DISKS 7
-#define SETTINGS_PAGE_FLOPPY_AND_CDROM_DRIVES 8
-#define SETTINGS_PAGE_OTHER_REMOVABLE_DEVICES 9
-#define SETTINGS_PAGE_PERIPHERALS 10
-
-extern void win_settings_open(HWND hwnd);
-extern void win_settings_open_ex(HWND hwnd, int category);
-
-/* Functions in win_stbar.c: */
-extern HWND hwndSBAR;
-extern void StatusBarCreate(HWND hwndParent, uintptr_t idStatus, HINSTANCE hInst);
-extern int MediaMenuHandler(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
-
-/* Functions in win_toolbar.c */
-extern HWND hwndRebar;
-extern void ToolBarCreate(HWND hwndParent, HINSTANCE hInst);
-extern void ToolBarLoadIcons(void);
-extern void ToolBarUpdatePause(int paused);
-
-/* Functions in win_dialog.c: */
-/* Pass NULL in the title param to use the default title. */
-extern int file_dlg_w(HWND hwnd, WCHAR *f, WCHAR *fn, WCHAR *title, int save);
-extern int file_dlg(HWND hwnd, WCHAR *f, char *fn, char *title, int save);
-extern int file_dlg_mb(HWND hwnd, char *f, char *fn, char *title, int save);
-extern int file_dlg_w_st(HWND hwnd, int i, WCHAR *fn, char *title, int save);
-extern int file_dlg_st(HWND hwnd, int i, char *fn, char *title, int save);
-
-extern wchar_t *BrowseFolder(wchar_t *saved_path, wchar_t *title);
-
-/* Functions in win_media_menu.c */
-extern void media_menu_init(void);
-extern void media_menu_reset(void);
-extern int media_menu_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
-extern HMENU media_menu_get_cassette(void);
-extern HMENU media_menu_get_cartridge(int id);
-extern HMENU media_menu_get_floppy(int id);
-extern HMENU media_menu_get_cdrom(int id);
-extern HMENU media_menu_get_zip(int id);
-extern HMENU media_menu_get_mo(int id);
-extern void media_menu_update_cassette(void);
-extern void media_menu_update_cartridge(int id);
-extern void media_menu_update_floppy(int id);
-extern void media_menu_update_cdrom(int id);
-extern void media_menu_update_zip(int id);
-extern void media_menu_update_mo(int id);
-
-/* Functions in win_ui.c */
-extern HMENU menuMain;
-extern void ResetAllMenus(void);
-
-#ifdef __cplusplus
-}
-#endif
-
#endif /*PLAT_WIN_H*/
diff --git a/src/include/86box/win_opengl.h b/src/include/86box/win_opengl.h
deleted file mode 100644
index d354131ef..000000000
--- a/src/include/86box/win_opengl.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Header file for OpenGL rendering module
- *
- * Authors: Teemu Korhonen
- *
- * Copyright 2021 Teemu Korhonen
- */
-
-#ifndef WIN_OPENGL_H
-#define WIN_OPENGL_H
-
-#define UNICODE
-#include
-
-extern int opengl_init(HWND hwnd);
-extern int opengl_pause(void);
-extern void opengl_close(void);
-extern void opengl_set_fs(int fs);
-extern void opengl_resize(int w, int h);
-extern void opengl_reload(void);
-
-#endif /*!WIN_OPENGL_H*/
diff --git a/src/include/86box/win_opengl_glslp.h b/src/include/86box/win_opengl_glslp.h
deleted file mode 100644
index 6586cd526..000000000
--- a/src/include/86box/win_opengl_glslp.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Header file for shader file parser.
- *
- * Authors: Teemu Korhonen
- *
- * Copyright 2021 Teemu Korhonen
- */
-
-#ifndef WIN_OPENGL_GLSLP_H
-#define WIN_OPENGL_GLSLP_H
-
-#include
-
-GLuint load_custom_shaders(const char *path);
-GLuint load_default_shaders(void);
-
-#endif /*!WIN_OPENGL_GLSLP_H*/
diff --git a/src/include/86box/win_sdl.h b/src/include/86box/win_sdl.h
deleted file mode 100644
index 69340e8b6..000000000
--- a/src/include/86box/win_sdl.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Definitions for the libSDL2 rendering module.
- *
- *
- *
- * Authors: Fred N. van Kempen,
- * Michael Drüing,
- *
- * Copyright 2018-2019 Fred N. van Kempen.
- * Copyright 2018-2019 Michael Drüing.
- *
- * Redistribution and use in source and binary forms, with
- * or without modification, are permitted provided that the
- * following conditions are met:
- *
- * 1. Redistributions of source code must retain the entire
- * above notice, this list of conditions and the following
- * disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the
- * following disclaimer in the documentation and/or other
- * materials provided with the distribution.
- *
- * 3. Neither the name of the copyright holder nor the names
- * of its contributors may be used to endorse or promote
- * products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WIN_SDL_H
-#define WIN_SDL_H
-
-extern void sdl_close(void);
-extern int sdl_inits(HWND h);
-extern int sdl_inith(HWND h);
-extern int sdl_initho(HWND h);
-extern int sdl_pause(void);
-extern void sdl_resize(int x, int y);
-extern void sdl_enable(int enable);
-extern void sdl_set_fs(int fs);
-extern void sdl_reload(void);
-
-#endif /*WIN_SDL_H*/
diff --git a/src/include_make/86box/version.h b/src/include_make/86box/version.h
deleted file mode 100644
index 4bb6c71d7..000000000
--- a/src/include_make/86box/version.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 86Box A hypervisor and IBM PC system emulator that specializes in
- * running old operating systems and software designed for IBM
- * PC systems and compatibles from 1981 through fairly recent
- * system designs based on the PCI bus.
- *
- * This file is part of the 86Box distribution.
- *
- * Definitions for project version, branding, and external links.
- *
- *
- *
- * Authors: Miran Grca,
- *
- * Copyright 2020 Miran Grca.
- */
-
-#define _LSTR(s) L ## s
-#define LSTR(s) _LSTR(s)
-
-/* Version info. */
-#define EMU_NAME "86Box"
-#define EMU_NAME_W LSTR(EMU_NAME)
-
-#define EMU_VERSION "4.1.1"
-#define EMU_VERSION_W LSTR(EMU_VERSION)
-#define EMU_VERSION_EX "3.50" /* frozen due to IDE re-detection behavior on Windows */
-#define EMU_VERSION_MAJ 4
-#define EMU_VERSION_MIN 1
-#define EMU_VERSION_PATCH 1
-
-#define EMU_BUILD_NUM 0
-
-#define EMU_VERSION_FULL EMU_VERSION
-#define EMU_VERSION_FULL_W EMU_VERSION_W
-
-#define COPYRIGHT_YEAR "2024"
-
-/* Web URL info. */
-#define EMU_SITE "86box.net"
-#define EMU_SITE_W LSTR(EMU_SITE)
-#define EMU_ROMS_URL "https://github.com/86Box/roms/releases/latest"
-#define EMU_ROMS_URL_W LSTR(EMU_ROMS_URL)
-#ifdef RELEASE_BUILD
-# define EMU_DOCS_URL "https://86box.readthedocs.io/en/v4.1/"
-#else
-# define EMU_DOCS_URL "https://86box.readthedocs.io"
-#endif
-#define EMU_DOCS_URL_W LSTR(EMU_DOCS_URL)