mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 08:35:39 +00:00
39 lines
604 B
C
39 lines
604 B
C
|
#pragma once
|
||
|
#ifndef ES_CORE_MAMENAMES_H
|
||
|
#define ES_CORE_MAMENAMES_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace CEC { class ICECAdapter; }
|
||
|
|
||
|
class MameNames
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
static void init ();
|
||
|
static void deinit ();
|
||
|
static MameNames* getInstance();
|
||
|
std::string getRealName(const std::string& _mameName);
|
||
|
|
||
|
private:
|
||
|
|
||
|
struct NamePair
|
||
|
{
|
||
|
std::string mameName;
|
||
|
std::string realName;
|
||
|
};
|
||
|
|
||
|
typedef std::vector<NamePair> namePairVector;
|
||
|
|
||
|
MameNames();
|
||
|
~MameNames();
|
||
|
|
||
|
static MameNames* sInstance;
|
||
|
|
||
|
namePairVector names;
|
||
|
|
||
|
}; // MameNames
|
||
|
|
||
|
#endif // ES_CORE_MAMENAMES_H
|