mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 06:35:38 +00:00
9de16045c9
fix faulty line endings silence warnings on windows
43 lines
849 B
C++
43 lines
849 B
C++
#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);
|
|
const bool isBios(const std::string& _biosName);
|
|
const bool isDevice(const std::string& _deviceName);
|
|
|
|
private:
|
|
|
|
struct NamePair
|
|
{
|
|
std::string mameName;
|
|
std::string realName;
|
|
};
|
|
|
|
typedef std::vector<NamePair> namePairVector;
|
|
|
|
MameNames();
|
|
~MameNames();
|
|
|
|
static MameNames* sInstance;
|
|
|
|
namePairVector mNamePairs;
|
|
std::vector<std::string> mMameBioses;
|
|
std::vector<std::string> mMameDevices;
|
|
|
|
const bool find(const std::vector<std::string> devices, const std::string& name);
|
|
|
|
}; // MameNames
|
|
|
|
#endif // ES_CORE_MAMENAMES_H
|