Android: Add type to game list (disc/psexe)
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include "common/cd_image.h"
|
||||
#include "common/iso_reader.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cctype>
|
||||
#include <tinyxml2.h>
|
||||
#include <utility>
|
||||
@ -20,6 +21,12 @@ GameList::GameList() = default;
|
||||
|
||||
GameList::~GameList() = default;
|
||||
|
||||
const char* GameList::EntryTypeToString(GameList::EntryType type)
|
||||
{
|
||||
static std::array<const char*, 2> names = {{"Disc", "PSExe"}};
|
||||
return names[static_cast<int>(type)];
|
||||
}
|
||||
|
||||
std::string GameList::GetGameCodeForPath(const char* image_path)
|
||||
{
|
||||
std::unique_ptr<CDImage> cdi = CDImage::Open(image_path);
|
||||
|
||||
Reference in New Issue
Block a user