[Emulator] Launch file based on signature instead of file extension

This commit is contained in:
Adrian
2024-03-21 13:10:12 +00:00
committed by Radosław Gliński
parent 5eecb4e65d
commit 5efcc6a71b
9 changed files with 188 additions and 52 deletions

View File

@@ -21,6 +21,8 @@ namespace vfs {
class DiscImageEntry;
constexpr fourcc_t kXSFSignature = make_fourcc(0x58, 0x53, 0x46, 0x1A);
class DiscImageDevice : public Device {
public:
DiscImageDevice(const std::string_view mount_path,

View File

@@ -21,6 +21,11 @@
namespace xe {
namespace vfs {
const fourcc_t kZarMagic = make_fourcc((_ZARCHIVE::Footer::kMagic >> 24 & 0xFF),
(_ZARCHIVE::Footer::kMagic >> 16 & 0xFF),
(_ZARCHIVE::Footer::kMagic >> 8 & 0xFF),
(_ZARCHIVE::Footer::kMagic & 0xFF));
class DiscZarchiveEntry;
class DiscZarchiveDevice : public Device {

View File

@@ -22,6 +22,11 @@
namespace xe {
namespace vfs {
constexpr fourcc_t kLIVESignature = make_fourcc("LIVE");
constexpr fourcc_t kCONSignature = make_fourcc("CON ");
constexpr fourcc_t kPIRSSignature = make_fourcc("PIRS");
class XContentContainerDevice : public Device {
public:
const static uint32_t kBlockSize = 0x1000;