[Emulator] Launch file based on signature instead of file extension
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user