mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 06:38:46 +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.Read(magic);
|
||||||
file.Close();
|
file.Close();
|
||||||
switch (magic) {
|
switch (magic) {
|
||||||
case 0x544e437f: // PS4 PKG
|
case PkgMagic:
|
||||||
return FileTypes::Pkg;
|
return FileTypes::Pkg;
|
||||||
}
|
}
|
||||||
return FileTypes::Unknown;
|
return FileTypes::Unknown;
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
namespace Loader {
|
namespace Loader {
|
||||||
|
|
||||||
|
constexpr static u32 PkgMagic = 0x544e437f;
|
||||||
|
|
||||||
enum class FileTypes {
|
enum class FileTypes {
|
||||||
Unknown,
|
Unknown,
|
||||||
Pkg,
|
Pkg,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue