2020-12-05 13:08:24 +01:00
|
|
|
#pragma once
|
2012-11-15 00:39:56 +01:00
|
|
|
|
2020-12-12 13:01:29 +01:00
|
|
|
#include "util/types.hpp"
|
2020-02-29 19:13:11 +01:00
|
|
|
#include <string>
|
2018-09-26 00:14:10 +02:00
|
|
|
|
2012-11-15 00:39:56 +01:00
|
|
|
struct GameInfo
|
|
|
|
|
{
|
2017-07-12 15:58:48 +02:00
|
|
|
std::string path;
|
2014-12-13 18:27:34 +01:00
|
|
|
std::string icon_path;
|
2022-12-17 14:58:08 +01:00
|
|
|
|
|
|
|
|
std::string name = "Unknown";
|
|
|
|
|
std::string serial = "Unknown";
|
|
|
|
|
std::string app_ver = "Unknown";
|
|
|
|
|
std::string version = "Unknown";
|
|
|
|
|
std::string category = "Unknown";
|
|
|
|
|
std::string fw = "Unknown";
|
2012-11-15 00:39:56 +01:00
|
|
|
|
2019-05-16 20:49:48 +02:00
|
|
|
u32 attr = 0;
|
|
|
|
|
u32 bootable = 0;
|
|
|
|
|
u32 parental_lvl = 0;
|
|
|
|
|
u32 sound_format = 0;
|
|
|
|
|
u32 resolution = 0;
|
2012-11-15 00:39:56 +01:00
|
|
|
|
2022-12-25 12:47:21 +01:00
|
|
|
u64 size_on_disk = umax;
|
2023-11-23 00:38:40 +01:00
|
|
|
|
|
|
|
|
std::string get_pam_path() const
|
|
|
|
|
{
|
|
|
|
|
if (icon_path.empty())
|
|
|
|
|
{
|
|
|
|
|
return {};
|
|
|
|
|
}
|
|
|
|
|
return icon_path.substr(0, icon_path.find_last_of("/")) + "/ICON1.PAM";
|
|
|
|
|
}
|
2012-11-15 00:39:56 +01:00
|
|
|
};
|