Add filter for PC-Engine to game selection dialog, and move the games into it
This commit is contained in:
parent
48b64d1fa4
commit
cc6d45466b
|
@ -322,6 +322,7 @@ void IpsApplyPatches(UINT8* base, char* rom_name);
|
|||
#define HARDWARE_PREFIX_CAPCOM_MISC (0x14000000)
|
||||
#define HARDWARE_PREFIX_SETA (0x15000000)
|
||||
#define HARDWARE_PREFIX_TECHNOS (0x16000000)
|
||||
#define HARDWARE_PREFIX_PCENGINE (0x17000000)
|
||||
|
||||
#define HARDWARE_MISC_PRE90S (HARDWARE_PREFIX_MISC_PRE90S)
|
||||
#define HARDWARE_MISC_POST90S (HARDWARE_PREFIX_MISC_POST90S)
|
||||
|
@ -487,6 +488,10 @@ void IpsApplyPatches(UINT8* base, char* rom_name);
|
|||
|
||||
#define HARDWARE_TECHNOS (HARDWARE_PREFIX_TECHNOS)
|
||||
|
||||
#define HARDWARE_PCENGINE_PCENGINE (HARDWARE_PREFIX_PCENGINE | 0x00010000)
|
||||
#define HARDWARE_PCENGINE_TG16 (HARDWARE_PREFIX_PCENGINE | 0x00020000)
|
||||
#define HARDWARE_PCENGINE_SGX (HARDWARE_PREFIX_PCENGINE | 0x00030000)
|
||||
|
||||
// flags for the genre member
|
||||
#define GBF_HORSHOOT (1 << 0)
|
||||
#define GBF_VERSHOOT (1 << 1)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -180,6 +180,7 @@
|
|||
#define IDS_SEL_CAPCOM_MISC (IDS_STRING + 620)
|
||||
#define IDS_SEL_SETA (IDS_STRING + 622)
|
||||
#define IDS_SEL_TECHNOS (IDS_STRING + 624)
|
||||
#define IDS_SEL_PCE (IDS_STRING + 626)
|
||||
|
||||
#define IDS_GENRE (IDS_STRING + 650)
|
||||
#define IDS_GENRE_HORSHOOT (IDS_STRING + 652)
|
||||
|
|
|
@ -66,6 +66,7 @@ HTREEITEM hFilterToaplan = NULL;
|
|||
HTREEITEM hFilterMiscPre90s = NULL;
|
||||
HTREEITEM hFilterMiscPost90s = NULL;
|
||||
HTREEITEM hFilterMegadrive = NULL;
|
||||
HTREEITEM hFilterPce = NULL;
|
||||
HTREEITEM hFilterSnes = NULL;
|
||||
HTREEITEM hFilterBootleg = NULL;
|
||||
HTREEITEM hFilterDemo = NULL;
|
||||
|
@ -172,9 +173,11 @@ static int MiscPost90sValue = HARDWARE_PREFIX_MISC_POST90S >> 24;
|
|||
static int MASKMISCPOST90S = 1 << MiscPost90sValue;
|
||||
static int MegadriveValue = HARDWARE_PREFIX_SEGA_MEGADRIVE >> 24;
|
||||
static int MASKMEGADRIVE = 1 << MegadriveValue;
|
||||
static int PCEngineValue = HARDWARE_PREFIX_PCENGINE >> 24;
|
||||
static int MASKPCENGINE = 1 << PCEngineValue;
|
||||
static int SnesValue = HARDWARE_PREFIX_NINTENDO_SNES >> 24;
|
||||
static int MASKSNES = 1 << SnesValue;
|
||||
static int MASKALL = MASKCAPMISC | MASKCAVE | MASKCPS | MASKCPS2 | MASKCPS3 | MASKDATAEAST | MASKGALAXIAN | MASKIREM | MASKKANEKO | MASKKONAMI | MASKNEOGEO | MASKPACMAN | MASKPGM | MASKPSIKYO | MASKSEGA | MASKSETA | MASKTAITO | MASKTECHNOS | MASKTOAPLAN | MASKMISCPRE90S | MASKMISCPOST90S | MASKMEGADRIVE | MASKSNES;
|
||||
static int MASKALL = MASKCAPMISC | MASKCAVE | MASKCPS | MASKCPS2 | MASKCPS3 | MASKDATAEAST | MASKGALAXIAN | MASKIREM | MASKKANEKO | MASKKONAMI | MASKNEOGEO | MASKPACMAN | MASKPGM | MASKPSIKYO | MASKSEGA | MASKSETA | MASKTAITO | MASKTECHNOS | MASKTOAPLAN | MASKMISCPRE90S | MASKMISCPOST90S | MASKMEGADRIVE | MASKPCENGINE | MASKSNES;
|
||||
|
||||
#define AVAILONLY (1 << 28)
|
||||
#define AUTOEXPAND (1 << 29)
|
||||
|
@ -931,6 +934,7 @@ static void CreateFilters()
|
|||
_TVCreateFiltersA(hHardware , IDS_SEL_MISCPRE90S , hFilterMiscPre90s , nLoadMenuShowX & MASKMISCPRE90S );
|
||||
_TVCreateFiltersA(hHardware , IDS_SEL_MISCPOST90S , hFilterMiscPost90s , nLoadMenuShowX & MASKMISCPOST90S );
|
||||
_TVCreateFiltersA(hHardware , IDS_SEL_MEGADRIVE , hFilterMegadrive , nLoadMenuShowX & MASKMEGADRIVE );
|
||||
_TVCreateFiltersA(hHardware , IDS_SEL_PCE , hFilterPce , nLoadMenuShowX & MASKPCENGINE );
|
||||
_TVCreateFiltersA(hHardware , IDS_SEL_SNES , hFilterSnes , nLoadMenuShowX & MASKSNES );
|
||||
|
||||
SendMessage(hFilterList , TVM_EXPAND,TVE_EXPAND, (LPARAM)hRoot);
|
||||
|
@ -1126,6 +1130,7 @@ static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lP
|
|||
_TreeView_SetCheckState(hFilterList, hFilterMiscPre90s, FALSE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterMiscPost90s, FALSE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterMegadrive, FALSE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterPce, FALSE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterSnes, FALSE);
|
||||
|
||||
nLoadMenuShowX |= MASKALL;
|
||||
|
@ -1154,6 +1159,7 @@ static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lP
|
|||
_TreeView_SetCheckState(hFilterList, hFilterMiscPre90s, TRUE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterMiscPost90s, TRUE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterMegadrive, TRUE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterPce, TRUE);
|
||||
_TreeView_SetCheckState(hFilterList, hFilterSnes, TRUE);
|
||||
|
||||
nLoadMenuShowX &= 0xff000000;
|
||||
|
@ -1296,6 +1302,7 @@ static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lP
|
|||
if (hItemChanged == hFilterMiscPre90s) _ToggleGameListing(nLoadMenuShowX, MASKMISCPRE90S);
|
||||
if (hItemChanged == hFilterMiscPost90s) _ToggleGameListing(nLoadMenuShowX, MASKMISCPOST90S);
|
||||
if (hItemChanged == hFilterMegadrive) _ToggleGameListing(nLoadMenuShowX, MASKMEGADRIVE);
|
||||
if (hItemChanged == hFilterPce) _ToggleGameListing(nLoadMenuShowX, MASKPCENGINE);
|
||||
if (hItemChanged == hFilterSnes) _ToggleGameListing(nLoadMenuShowX, MASKSNES);
|
||||
|
||||
if (hItemChanged == hFilterBootleg) _ToggleGameListing(nLoadMenuBoardTypeFilter, BDF_BOOTLEG);
|
||||
|
|
|
@ -180,6 +180,7 @@ BEGIN
|
|||
IDS_SEL_CAPCOM_MISC "Capcom (Other)"
|
||||
IDS_SEL_SETA "Seta"
|
||||
IDS_SEL_TECHNOS "Technos"
|
||||
IDS_SEL_PCE "PC-Engine"
|
||||
|
||||
IDS_GENRE "Genre"
|
||||
IDS_GENRE_HORSHOOT "Shooter - Horizontal"
|
||||
|
|
Loading…
Reference in New Issue