mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-22 21:29:15 +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 )
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@6 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
ca34183e4f
commit
d795e3ffdc
@ -129,7 +129,7 @@ void MainWindow::on_pushButton_GetTitle_clicked()
|
|||||||
ShowMessage( "<b>Error converting \"" + ui->lineEdit_tid->text() + "\" to a hex number.</b>" );
|
ShowMessage( "<b>Error converting \"" + ui->lineEdit_tid->text() + "\" to a hex number.</b>" );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
quint32 ver = 0;
|
quint32 ver = TITLE_LATEST_VERSION;
|
||||||
if( !ui->lineEdit_version->text().isEmpty() )
|
if( !ui->lineEdit_version->text().isEmpty() )
|
||||||
{
|
{
|
||||||
ver = ui->lineEdit_version->text().toInt( &ok, 10 );
|
ver = ui->lineEdit_version->text().toInt( &ok, 10 );
|
||||||
|
@ -85,7 +85,7 @@ void NusDownloader::StartNextJob()
|
|||||||
downloadJob tmdJob;
|
downloadJob tmdJob;
|
||||||
tmdJob.tid = QString( "%1" ).arg( currentJob.tid, 16, 16, QChar( '0' ) );
|
tmdJob.tid = QString( "%1" ).arg( currentJob.tid, 16, 16, QChar( '0' ) );
|
||||||
tmdJob.index = IDX_TMD;
|
tmdJob.index = IDX_TMD;
|
||||||
if( currentJob.version )
|
if( currentJob.version != TITLE_LATEST_VERSION )
|
||||||
{
|
{
|
||||||
tmdJob.name = QString( "tmd.%1" ).arg( currentJob.version );
|
tmdJob.name = QString( "tmd.%1" ).arg( currentJob.version );
|
||||||
QByteArray stuff = GetDataFromCache( tmdJob );
|
QByteArray stuff = GetDataFromCache( tmdJob );
|
||||||
@ -150,7 +150,7 @@ void NusDownloader::ReadTmdAndGetTicket( QByteArray ba )
|
|||||||
CurrentJobErrored( tr( "TID in TMD doesn't match expected." ) );
|
CurrentJobErrored( tr( "TID in TMD doesn't match expected." ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( !currentJob.version )
|
if( currentJob.version == TITLE_LATEST_VERSION )
|
||||||
{
|
{
|
||||||
currentJob.version = qFromBigEndian( curTmd.payload()->title_version );
|
currentJob.version = qFromBigEndian( curTmd.payload()->title_version );
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
#define WIICONNECT24_USER_AGENT "WiiConnect24/1.0FC4plus1 (build 061114161108)"
|
#define WIICONNECT24_USER_AGENT "WiiConnect24/1.0FC4plus1 (build 061114161108)"
|
||||||
#define NUS_BASE_URL "http://ccs.shop.wii.com/ccs/download/"
|
#define NUS_BASE_URL "http://ccs.shop.wii.com/ccs/download/"
|
||||||
|
|
||||||
|
#define TITLE_LATEST_VERSION 0xffff
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
IDX_CETK = 0x9000,
|
IDX_CETK = 0x9000,
|
||||||
@ -47,7 +49,7 @@ public:
|
|||||||
//get a title from NUS. if version is 0, get the latest one
|
//get a title from NUS. if version is 0, get the latest one
|
||||||
void GetTitle( NusJob job );
|
void GetTitle( NusJob job );
|
||||||
void GetTitles( QList<NusJob> jobs );
|
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
|
//TODO! this function is far from complete
|
||||||
//starts getting all the titles involved for a given update
|
//starts getting all the titles involved for a given update
|
||||||
|
Loading…
Reference in New Issue
Block a user