mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 11:35:45 +00:00
constexpr magic
This commit is contained in:
parent
26161707ab
commit
fa173da189
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
namespace Loader {
|
||||
|
||||
constexpr static u32 PkgMagic = 0x544e437f;
|
||||
|
||||
enum class FileTypes {
|
||||
Unknown,
|
||||
Pkg,
|
||||
|
|
Loading…
Add table
Reference in a new issue