mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Crypto: fix magical type
This commit is contained in:
parent
3a6bda4d93
commit
e4b6de409a
2 changed files with 3 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ bool pkg_install(const std::string& path, atomic_t<double>& sync)
|
|||
//pkg_log.notice("Extended header: padding2 = 0x%x = %d", ext_header.padding2, ext_header.padding2);
|
||||
}
|
||||
|
||||
if (header.pkg_magic != "\x7FPKG"_u32)
|
||||
if (header.pkg_magic != std::bit_cast<le_t<u32>>("\x7FPKG"_u32))
|
||||
{
|
||||
pkg_log.error("Not a PKG file!");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue