2016-08-10 03:28:40 +00:00
|
|
|
#ifndef INCLUDED_GAME_H
|
|
|
|
#define INCLUDED_GAME_H
|
|
|
|
|
2017-03-26 16:38:55 +00:00
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
2016-08-10 03:28:40 +00:00
|
|
|
|
|
|
|
struct Game
|
|
|
|
{
|
2016-08-11 03:53:19 +00:00
|
|
|
std::string name;
|
2017-03-27 02:02:22 +00:00
|
|
|
std::string parent;
|
2016-08-10 03:28:40 +00:00
|
|
|
std::string title;
|
|
|
|
std::string version;
|
|
|
|
std::string manufacturer;
|
2016-08-24 04:13:23 +00:00
|
|
|
unsigned year = 0;
|
2016-08-10 03:28:40 +00:00
|
|
|
std::string stepping;
|
2016-08-18 04:19:36 +00:00
|
|
|
std::string mpeg_board;
|
|
|
|
uint32_t encryption_key = 0;
|
|
|
|
enum Inputs
|
|
|
|
{
|
|
|
|
INPUT_UI = 0, // special code reserved for Supermodel UI inputs
|
|
|
|
INPUT_COMMON = 0x00000001, // common controls (coins, service, test)
|
|
|
|
INPUT_VEHICLE = 0x00000002, // vehicle controls
|
|
|
|
INPUT_JOYSTICK1 = 0x00000004, // joystick 1
|
|
|
|
INPUT_JOYSTICK2 = 0x00000008, // joystick 2
|
|
|
|
INPUT_FIGHTING = 0x00000010, // fighting game controls
|
|
|
|
INPUT_VR4 = 0x00000020, // four VR view buttons
|
|
|
|
INPUT_VIEWCHANGE = 0x00000040, // single view change button
|
|
|
|
INPUT_SHIFT4 = 0x00000080, // 4-speed shifter
|
|
|
|
INPUT_SHIFTUPDOWN = 0x00000100, // up/down shifter
|
|
|
|
INPUT_HANDBRAKE = 0x00000200, // handbrake
|
|
|
|
INPUT_HARLEY = 0x00000400, // Harley Davidson controls
|
|
|
|
INPUT_GUN1 = 0x00000800, // light gun 1
|
|
|
|
INPUT_GUN2 = 0x00001000, // light gun 2
|
|
|
|
INPUT_ANALOG_JOYSTICK = 0x00002000, // analog joystick
|
|
|
|
INPUT_TWIN_JOYSTICKS = 0x00004000, // twin joysticks
|
|
|
|
INPUT_SOCCER = 0x00008000, // soccer controls
|
|
|
|
INPUT_SPIKEOUT = 0x00010000, // Spikeout buttons
|
|
|
|
INPUT_ANALOG_GUN1 = 0x00020000, // analog gun 1
|
|
|
|
INPUT_ANALOG_GUN2 = 0x00040000, // analog gun 2
|
|
|
|
INPUT_SKI = 0x00080000, // ski controls
|
|
|
|
INPUT_MAGTRUCK = 0x00100000, // magical truck controls
|
|
|
|
INPUT_FISHING = 0x00200000, // fishing controls
|
|
|
|
INPUT_ALL = 0x003FFFFF
|
|
|
|
};
|
|
|
|
uint32_t inputs = 0;
|
2016-08-10 03:28:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDED_GAME_H
|