mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 04:55:47 -04:00
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);
|
||||
|
@ -41,6 +41,8 @@ public:
|
||||
GameList();
|
||||
~GameList();
|
||||
|
||||
static const char* EntryTypeToString(EntryType type);
|
||||
|
||||
static std::string GetGameCodeForImage(CDImage* cdi);
|
||||
static std::string GetGameCodeForPath(const char* image_path);
|
||||
static std::optional<ConsoleRegion> GetRegionForCode(std::string_view code);
|
||||
|
Reference in New Issue
Block a user