mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-05 00:55:06 +01:00
* change "get the latest version of this title" to version 0xffff instead of 0. this allows getting version of a title that really does have version 0 ( some jap ones for example )
This commit is contained in:
parent
941fe73baf
commit
fe18155a2a
@ -129,7 +129,7 @@ void MainWindow::on_pushButton_GetTitle_clicked()
|
||||
ShowMessage( "<b>Error converting \"" + ui->lineEdit_tid->text() + "\" to a hex number.</b>" );
|
||||
return;
|
||||
}
|
||||
quint32 ver = 0;
|
||||
quint32 ver = TITLE_LATEST_VERSION;
|
||||
if( !ui->lineEdit_version->text().isEmpty() )
|
||||
{
|
||||
ver = ui->lineEdit_version->text().toInt( &ok, 10 );
|
||||
|
@ -85,7 +85,7 @@ void NusDownloader::StartNextJob()
|
||||
downloadJob tmdJob;
|
||||
tmdJob.tid = QString( "%1" ).arg( currentJob.tid, 16, 16, QChar( '0' ) );
|
||||
tmdJob.index = IDX_TMD;
|
||||
if( currentJob.version )
|
||||
if( currentJob.version != TITLE_LATEST_VERSION )
|
||||
{
|
||||
tmdJob.name = QString( "tmd.%1" ).arg( currentJob.version );
|
||||
QByteArray stuff = GetDataFromCache( tmdJob );
|
||||
@ -150,7 +150,7 @@ void NusDownloader::ReadTmdAndGetTicket( QByteArray ba )
|
||||
CurrentJobErrored( tr( "TID in TMD doesn't match expected." ) );
|
||||
return;
|
||||
}
|
||||
if( !currentJob.version )
|
||||
if( currentJob.version == TITLE_LATEST_VERSION )
|
||||
{
|
||||
currentJob.version = qFromBigEndian( curTmd.payload()->title_version );
|
||||
}
|
||||
|
@ -10,6 +10,8 @@
|
||||
#define WIICONNECT24_USER_AGENT "WiiConnect24/1.0FC4plus1 (build 061114161108)"
|
||||
#define NUS_BASE_URL "http://ccs.shop.wii.com/ccs/download/"
|
||||
|
||||
#define TITLE_LATEST_VERSION 0xffff
|
||||
|
||||
enum
|
||||
{
|
||||
IDX_CETK = 0x9000,
|
||||
@ -47,7 +49,7 @@ public:
|
||||
//get a title from NUS. if version is 0, get the latest one
|
||||
void GetTitle( NusJob job );
|
||||
void GetTitles( QList<NusJob> jobs );
|
||||
void Get( quint64 tid, bool decrypt, quint16 version = 0 );
|
||||
void Get( quint64 tid, bool decrypt, quint16 version = TITLE_LATEST_VERSION );
|
||||
|
||||
//TODO! this function is far from complete
|
||||
//starts getting all the titles involved for a given update
|
||||
|
Loading…
Reference in New Issue
Block a user