constexpr magic

This commit is contained in:
georgemoralis 2024-02-29 17:23:42 +02:00
parent 26161707ab
commit fa173da189
2 changed files with 3 additions and 1 deletions

View file

@ -19,7 +19,7 @@ FileTypes DetectFileType(const std::string& filepath) {
file.Read(magic);
file.Close();
switch (magic) {
case 0x544e437f: // PS4 PKG
case PkgMagic:
return FileTypes::Pkg;
}
return FileTypes::Unknown;

View file

@ -7,6 +7,8 @@
namespace Loader {
constexpr static u32 PkgMagic = 0x544e437f;
enum class FileTypes {
Unknown,
Pkg,