Add game description to roms in file list
This commit is contained in:
parent
5894992f70
commit
7e4a31c786
File diff suppressed because it is too large
Load Diff
|
@ -22,7 +22,7 @@
|
|||
#ifndef CORE_HW_NAOMI_NAOMI_ROMS_EEPROM_H_
|
||||
#define CORE_HW_NAOMI_NAOMI_ROMS_EEPROM_H_
|
||||
|
||||
u8 mamonoro_eeprom_dump[] = {
|
||||
static u8 mamonoro_eeprom_dump[] = {
|
||||
0x96, 0xB2, 0x11, 0x42, 0x51, 0x53, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x96, 0xB2, 0x11, 0x42, 0x51, 0x53, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -33,7 +33,7 @@ u8 mamonoro_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 alpilot_eeprom_dump[] = {
|
||||
static u8 alpilot_eeprom_dump[] = {
|
||||
0xD5, 0x0C, 0x10, 0x42, 0x41, 0x45, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x21, 0x11, 0x11, 0x11,
|
||||
0xD5, 0x0C, 0x10, 0x42, 0x41, 0x45, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x21, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -44,7 +44,7 @@ u8 alpilot_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 pstone2_eeprom_dump[] = {
|
||||
static u8 pstone2_eeprom_dump[] = {
|
||||
0x3B, 0xD2, 0x10, 0x42, 0x42, 0x4A, 0x30, 0x09, 0x30, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x3B, 0xD2, 0x10, 0x42, 0x42, 0x4A, 0x30, 0x09, 0x30, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -55,7 +55,7 @@ u8 pstone2_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 illvelo_eeprom_dump[] = {
|
||||
static u8 illvelo_eeprom_dump[] = {
|
||||
0x37, 0xC6, 0x11, 0x42, 0x51, 0x52, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x37, 0xC6, 0x11, 0x42, 0x51, 0x52, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -66,7 +66,7 @@ u8 illvelo_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 sl2007_eeprom_dump[] = {
|
||||
static u8 sl2007_eeprom_dump[] = {
|
||||
0x38, 0xE9, 0x11, 0x42, 0x50, 0x4A, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x38, 0xE9, 0x11, 0x42, 0x50, 0x4A, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -77,7 +77,7 @@ u8 sl2007_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 alienfnt_eeprom_dump[] = {
|
||||
static u8 alienfnt_eeprom_dump[] = {
|
||||
0x88, 0x69, 0x10, 0x42, 0x43, 0x51, 0x30, 0x18, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x88, 0x69, 0x10, 0x42, 0x43, 0x51, 0x30, 0x18, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x16, 0xE1, 0x18, 0x18, 0x16, 0xE1, 0x18, 0x18, 0x78, 0x56, 0x34, 0x12, 0x01, 0x01, 0x01, 0x03, 0x00, 0xFF,
|
||||
|
@ -88,7 +88,7 @@ u8 alienfnt_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 gundmct_eeprom_dump[] = {
|
||||
static u8 gundmct_eeprom_dump[] = {
|
||||
0xC1, 0xC1, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x0B, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0xC1, 0xC1, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x0B, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -99,7 +99,7 @@ u8 gundmct_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 kick4csh_eeprom_dump[] = {
|
||||
static u8 kick4csh_eeprom_dump[] = {
|
||||
0x3A, 0x6E, 0x10, 0x42, 0x4A, 0x47, 0x30, 0x18, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x3A, 0x6E, 0x10, 0x42, 0x4A, 0x47, 0x30, 0x18, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0xC7, 0x83, 0x28, 0x28, 0xC7, 0x83, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -110,7 +110,7 @@ u8 kick4csh_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 hmgeo_eeprom_dump[] = {
|
||||
static u8 hmgeo_eeprom_dump[] = {
|
||||
0xCA, 0xFB, 0x10, 0x42, 0x43, 0x57, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0xCA, 0xFB, 0x10, 0x42, 0x43, 0x57, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0xED, 0x2A, 0x20, 0x20, 0xED, 0x2A, 0x20, 0x20, 0x06, 0x06, 0x01, 0x20, 0x03, 0x00, 0x00, 0x01, 0x00, 0x01,
|
||||
|
@ -121,7 +121,7 @@ u8 hmgeo_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 spawn_eeprom_dump[] = {
|
||||
static u8 spawn_eeprom_dump[] = {
|
||||
0x37, 0x99, 0x10, 0x42, 0x41, 0x56, 0x35, 0x18, 0x10, 0x0B, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x37, 0x99, 0x10, 0x42, 0x41, 0x56, 0x35, 0x18, 0x10, 0x0B, 0x02, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0xCE, 0x9A, 0x20, 0x20, 0xCE, 0x9A, 0x20, 0x20, 0x17, 0x12, 0x99, 0x19, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01,
|
||||
|
@ -132,7 +132,7 @@ u8 spawn_eeprom_dump[] = {
|
|||
0x00, 0x00
|
||||
};
|
||||
|
||||
u8 ringout_eeprom_dump[] = {
|
||||
static u8 ringout_eeprom_dump[] = {
|
||||
0x79, 0xCD, 0x10, 0x42, 0x41, 0x46, 0x32, 0x18, 0x31, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x79, 0xCD, 0x10, 0x42, 0x41, 0x46, 0x32, 0x18, 0x31, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{ NAOMI_SERVICE_KEY, "SERVICE" },
|
||||
#define NAO_START_DESC { NAOMI_START_KEY, "START" },
|
||||
|
||||
InputDescriptors _18wheelr_inputs = {
|
||||
static InputDescriptors _18wheelr_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "HORN" },
|
||||
{ NAOMI_DOWN_KEY, "VIEW" },
|
||||
|
@ -52,7 +52,7 @@ InputDescriptors _18wheelr_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors alienfnt_inputs = {
|
||||
static InputDescriptors alienfnt_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LEFT SHOT" },
|
||||
{ NAOMI_BTN1_KEY, "ROTATION R" },
|
||||
|
@ -70,7 +70,7 @@ InputDescriptors alienfnt_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors alpilot_inputs = {
|
||||
static InputDescriptors alpilot_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LANDING GEAR SW" },
|
||||
{ NAOMI_BTN1_KEY, "VIEW CHANGE" },
|
||||
|
@ -90,7 +90,7 @@ InputDescriptors alpilot_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors capsnk_inputs = {
|
||||
static InputDescriptors capsnk_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ NAOMI_BTN1_KEY, "STRONG PUNCH" },
|
||||
|
@ -109,7 +109,7 @@ InputDescriptors capsnk_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors crzytaxi_inputs = {
|
||||
static InputDescriptors crzytaxi_inputs = {
|
||||
{
|
||||
{ NAOMI_UP_KEY, "DRIVE GEAR" },
|
||||
{ NAOMI_DOWN_KEY, "REVERSE GEAR" },
|
||||
|
@ -125,7 +125,7 @@ InputDescriptors crzytaxi_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors cspike_inputs = {
|
||||
static InputDescriptors cspike_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "SHOT1" },
|
||||
{ NAOMI_BTN1_KEY, "SHOT2" },
|
||||
|
@ -144,7 +144,7 @@ InputDescriptors cspike_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors trigger_inputs = {
|
||||
static InputDescriptors trigger_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "TRIGGER" },
|
||||
NAO_START_DESC
|
||||
|
@ -156,7 +156,7 @@ InputDescriptors trigger_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors deathcox_inputs = {
|
||||
static InputDescriptors deathcox_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "TRIGGER" },
|
||||
NAO_START_DESC
|
||||
|
@ -170,7 +170,7 @@ InputDescriptors deathcox_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors gunsur2_inputs = {
|
||||
static InputDescriptors gunsur2_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "GUN BUTTON" },
|
||||
{ NAOMI_BTN1_KEY, "TRIGGER" },
|
||||
|
@ -188,7 +188,7 @@ InputDescriptors gunsur2_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors jambo_inputs = {
|
||||
static InputDescriptors jambo_inputs = {
|
||||
{
|
||||
{ NAOMI_UP_KEY, "LEVER UP", NAOMI_DOWN_KEY }, // This button uses P2 inputs for P1
|
||||
{ NAOMI_DOWN_KEY, "LEVER DOWN", NAOMI_UP_KEY }, // This button uses P2 inputs for P1
|
||||
|
@ -204,7 +204,7 @@ InputDescriptors jambo_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors mvsc2_inputs = {
|
||||
static InputDescriptors mvsc2_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ NAOMI_BTN1_KEY, "STRONG PUNCH" },
|
||||
|
@ -225,7 +225,7 @@ InputDescriptors mvsc2_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors sfz3ugd_inputs = {
|
||||
static InputDescriptors sfz3ugd_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ NAOMI_BTN1_KEY, "MEDIUM PUNCH" },
|
||||
|
@ -246,7 +246,7 @@ InputDescriptors sfz3ugd_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors ninjaslt_inputs = {
|
||||
static InputDescriptors ninjaslt_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "ENTER" },
|
||||
{ NAOMI_BTN2_KEY, "START 1P" },
|
||||
|
@ -263,7 +263,7 @@ InputDescriptors ninjaslt_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors vonot_inputs = {
|
||||
static InputDescriptors vonot_inputs = {
|
||||
{
|
||||
{ NAOMI_UP_KEY, "L UP" },
|
||||
{ NAOMI_DOWN_KEY, "L DOWN" },
|
||||
|
@ -289,7 +289,7 @@ InputDescriptors vonot_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors vtenis2c_inputs = {
|
||||
static InputDescriptors vtenis2c_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "SHOT1" },
|
||||
{ NAOMI_BTN1_KEY, "SHOT2" },
|
||||
|
@ -306,7 +306,7 @@ InputDescriptors vtenis2c_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors monkeyba_inputs = {
|
||||
static InputDescriptors monkeyba_inputs = {
|
||||
{
|
||||
NAO_START_DESC
|
||||
NAO_BASE_BTN_DESC
|
||||
|
@ -319,7 +319,7 @@ InputDescriptors monkeyba_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors cvs2_inputs = {
|
||||
static InputDescriptors cvs2_inputs = {
|
||||
{
|
||||
{ NAOMI_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ NAOMI_BTN1_KEY, "MEDIUM PUNCH" },
|
||||
|
@ -349,7 +349,7 @@ InputDescriptors cvs2_inputs = {
|
|||
{ AWAVE_SERVICE_KEY, "SERVICE" },
|
||||
#define AW_START_DESC { AWAVE_START_KEY, "START" },
|
||||
|
||||
InputDescriptors ftspeed_inputs = {
|
||||
static InputDescriptors ftspeed_inputs = {
|
||||
{
|
||||
{ AWAVE_BTN0_KEY, "BOOST" },
|
||||
{ AWAVE_UP_KEY, "HIGH GEAR" },
|
||||
|
@ -366,7 +366,7 @@ InputDescriptors ftspeed_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors kofnw_inputs = {
|
||||
static InputDescriptors kofnw_inputs = {
|
||||
{
|
||||
{ AWAVE_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ AWAVE_BTN1_KEY, "STRONG PUNCH" },
|
||||
|
@ -383,7 +383,7 @@ InputDescriptors kofnw_inputs = {
|
|||
}
|
||||
};
|
||||
|
||||
InputDescriptors kofxi_inputs = {
|
||||
static InputDescriptors kofxi_inputs = {
|
||||
{
|
||||
{ AWAVE_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ AWAVE_BTN1_KEY, "STRONG PUNCH" },
|
||||
|
@ -400,7 +400,7 @@ InputDescriptors kofxi_inputs = {
|
|||
}
|
||||
};
|
||||
|
||||
InputDescriptors maxspeed_inputs = {
|
||||
static InputDescriptors maxspeed_inputs = {
|
||||
{
|
||||
{ AWAVE_UP_KEY, "HIGH SHIFT" },
|
||||
{ AWAVE_DOWN_KEY, "LOW SHIFT" },
|
||||
|
@ -416,7 +416,7 @@ InputDescriptors maxspeed_inputs = {
|
|||
},
|
||||
};
|
||||
|
||||
InputDescriptors ngbc_inputs = {
|
||||
static InputDescriptors ngbc_inputs = {
|
||||
{
|
||||
{ AWAVE_BTN0_KEY, "LIGHT PUNCH" },
|
||||
{ AWAVE_BTN1_KEY, "STRONG PUNCH" },
|
||||
|
@ -433,7 +433,7 @@ InputDescriptors ngbc_inputs = {
|
|||
}
|
||||
};
|
||||
|
||||
InputDescriptors samsptk_inputs = {
|
||||
static InputDescriptors samsptk_inputs = {
|
||||
{
|
||||
{ AWAVE_BTN0_KEY, "LIGHT SLASH" },
|
||||
{ AWAVE_BTN1_KEY, "MEDIUM SLASH" },
|
||||
|
@ -450,7 +450,7 @@ InputDescriptors samsptk_inputs = {
|
|||
}
|
||||
};
|
||||
|
||||
InputDescriptors blockpong_inputs = {
|
||||
static InputDescriptors blockpong_inputs = {
|
||||
{
|
||||
AW_START_DESC
|
||||
AW_BASE_BTN_DESC
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "cfg/cfg.h"
|
||||
#include "hw/maple/maple_if.h"
|
||||
#include "hw/maple/maple_devs.h"
|
||||
#include "hw/naomi/naomi_cart.h"
|
||||
#include "hw/naomi/naomi_roms.h"
|
||||
#include "imgui/imgui.h"
|
||||
#include "gles/imgui_impl_opengl3.h"
|
||||
#include "imgui/roboto_medium.h"
|
||||
|
@ -1486,6 +1488,22 @@ static void gui_display_demo()
|
|||
ImGui_impl_RenderDrawData(ImGui::GetDrawData(), false);
|
||||
}
|
||||
|
||||
static std::string get_game_description(std::string name)
|
||||
{
|
||||
size_t dot = name.find_last_of(".");
|
||||
if (dot != std::string::npos && dot != name.size() - 1)
|
||||
name = name.substr(0, dot);
|
||||
|
||||
int gameid = 0;
|
||||
for (; Games[gameid].name != NULL; gameid++)
|
||||
if (!stricmp(Games[gameid].name, name.c_str()))
|
||||
break;
|
||||
if (Games[gameid].name == NULL)
|
||||
return std::string();
|
||||
|
||||
return std::string(Games[gameid].description);
|
||||
}
|
||||
|
||||
static void gui_display_content()
|
||||
{
|
||||
ImGui_Impl_NewFrame();
|
||||
|
@ -1544,10 +1562,16 @@ static void gui_display_content()
|
|||
// Only dreamcast disks
|
||||
continue;
|
||||
}
|
||||
if (filter.PassFilter(game.name.c_str()))
|
||||
std::string description,selection;
|
||||
description = get_game_description(game.name);
|
||||
if (description.empty())
|
||||
selection = game.name;
|
||||
else
|
||||
selection = game.name + " (" + description + ")";
|
||||
if (filter.PassFilter(selection.c_str()))
|
||||
{
|
||||
ImGui::PushID(game.path.c_str());
|
||||
if (ImGui::Selectable(game.name.c_str()))
|
||||
if (ImGui::Selectable(selection.c_str()))
|
||||
{
|
||||
if (gui_state == SelectDisk)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue