mirror of https://github.com/RPCS3/rpcs3.git
Adds check for pkg signature in QT part
This commit is contained in:
parent
474bd7beaf
commit
a38182b967
|
@ -346,6 +346,16 @@ void main_window::InstallPkg(const QString& dropPath)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Check header
|
||||||
|
u32 pkg_signature;
|
||||||
|
pkg_f.seek(0);
|
||||||
|
pkg_f.read(pkg_signature);
|
||||||
|
if (pkg_signature != "\x7FPKG"_u32)
|
||||||
|
{
|
||||||
|
LOG_ERROR(LOADER, "PKG: %s is not a pkg file", fileName);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get title ID
|
// Get title ID
|
||||||
std::vector<char> title_id(9);
|
std::vector<char> title_id(9);
|
||||||
pkg_f.seek(55);
|
pkg_f.seek(55);
|
||||||
|
|
Loading…
Reference in New Issue