mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-26 02:54:19 +01:00
* nandBinCheck: show titles that rely on busted shared contents
This commit is contained in:
parent
15f5715c52
commit
52c6124b8e
@ -25,6 +25,8 @@ QByteArray sysMenuResource;
|
|||||||
QByteArray sysMenuExe;
|
QByteArray sysMenuExe;
|
||||||
quint64 sysMenuIos;
|
quint64 sysMenuIos;
|
||||||
|
|
||||||
|
QList<QByteArray>BadSharedItems;//remember bad shared items
|
||||||
|
|
||||||
bool CheckTitleIntegrity( quint64 tid );
|
bool CheckTitleIntegrity( quint64 tid );
|
||||||
|
|
||||||
#ifdef Q_WS_WIN
|
#ifdef Q_WS_WIN
|
||||||
@ -432,13 +434,24 @@ void CheckShared()
|
|||||||
qDebug() << "checking" << path << "...";
|
qDebug() << "checking" << path << "...";
|
||||||
QByteArray stuff = nand.GetData( path );
|
QByteArray stuff = nand.GetData( path );
|
||||||
if( stuff.isEmpty() )
|
if( stuff.isEmpty() )
|
||||||
|
{
|
||||||
|
BadSharedItems << sharedM.Hash( i );
|
||||||
Fail( "One of the shared contents in this nand is missing" );
|
Fail( "One of the shared contents in this nand is missing" );
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray realHash = GetSha1( stuff );
|
QByteArray realHash = GetSha1( stuff );
|
||||||
if( realHash != sharedM.Hash( i ) )
|
if( realHash != sharedM.Hash( i ) )
|
||||||
|
{
|
||||||
|
BadSharedItems << sharedM.Hash( i );
|
||||||
|
if( verbose )
|
||||||
|
{
|
||||||
|
qCritical() << "\texpected: " << sharedM.Hash( i ).toHex();
|
||||||
|
qCritical() << "\tactual: " << realHash.toHex();
|
||||||
|
}
|
||||||
Fail( "The hash for at least 1 content is bad" );
|
Fail( "The hash for at least 1 content is bad" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void BuildGoodIosList()
|
void BuildGoodIosList()
|
||||||
{
|
{
|
||||||
@ -716,6 +729,11 @@ bool CheckTitleIntegrity( quint64 tid )
|
|||||||
{
|
{
|
||||||
if( t.Type( i ) == 0x8001 )//shared
|
if( t.Type( i ) == 0x8001 )//shared
|
||||||
{
|
{
|
||||||
|
if( BadSharedItems.contains( t.Hash( i ) ) )
|
||||||
|
{
|
||||||
|
qWarning() << "\tthis title relies on a shared content that is borked (" << i << ")\n\t" << t.Hash( i ).toHex();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if( sharedM.GetAppFromHash( t.Hash( i ) ).isEmpty() )
|
if( sharedM.GetAppFromHash( t.Hash( i ) ).isEmpty() )
|
||||||
{
|
{
|
||||||
qWarning() << "\tone of the shared contents is missing";
|
qWarning() << "\tone of the shared contents is missing";
|
||||||
|
Loading…
Reference in New Issue
Block a user