2018-02-09 17:23:58 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef ES_CORE_MAMENAMES_H
|
|
|
|
#define ES_CORE_MAMENAMES_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class MameNames
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
static void init ();
|
|
|
|
static void deinit ();
|
|
|
|
static MameNames* getInstance();
|
|
|
|
std::string getRealName(const std::string& _mameName);
|
2018-05-10 01:29:46 +00:00
|
|
|
const bool isBios(const std::string& _biosName);
|
|
|
|
const bool isDevice(const std::string& _deviceName);
|
2018-02-09 17:23:58 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
struct NamePair
|
|
|
|
{
|
|
|
|
std::string mameName;
|
|
|
|
std::string realName;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::vector<NamePair> namePairVector;
|
|
|
|
|
|
|
|
MameNames();
|
|
|
|
~MameNames();
|
|
|
|
|
|
|
|
static MameNames* sInstance;
|
|
|
|
|
2018-05-10 01:29:46 +00:00
|
|
|
namePairVector mNamePairs;
|
|
|
|
std::vector<std::string> mMameBioses;
|
|
|
|
std::vector<std::string> mMameDevices;
|
2019-08-25 15:23:02 +00:00
|
|
|
|
2018-05-10 01:29:46 +00:00
|
|
|
const bool find(const std::vector<std::string> devices, const std::string& name);
|
2018-02-09 17:23:58 +00:00
|
|
|
|
|
|
|
}; // MameNames
|
|
|
|
|
|
|
|
#endif // ES_CORE_MAMENAMES_H
|