rpcsx/rpcs3/Emu/GameInfo.h

35 lines
611 B
C
Raw Normal View History

2020-12-05 13:08:24 +01:00
#pragma once
2020-12-12 13:01:29 +01:00
#include "util/types.hpp"
2020-02-29 19:13:11 +01:00
#include <string>
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";
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;
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";
}
};