From 34a4f8876cb2733da72260ad4262d63252cdbe75 Mon Sep 17 00:00:00 2001 From: giantpune Date: Wed, 18 May 2011 17:34:45 +0000 Subject: [PATCH] * dont need save file stuff in nandbincheck --- WiiQt/u8.cpp | 2 +- WiiQt/u8.h | 48 +++++++++++++++++------------------ nandBinCheck/nandBinCheck.pro | 5 ++-- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/WiiQt/u8.cpp b/WiiQt/u8.cpp index b184707..8a23cc3 100644 --- a/WiiQt/u8.cpp +++ b/WiiQt/u8.cpp @@ -1363,7 +1363,7 @@ QByteArray U8::GetIMET( const QStringList &names, int paddingType, quint32 iconS return ret; } -const QStringList U8::IMETNames() +const QStringList &U8::IMETNames() { return imetNames; } diff --git a/WiiQt/u8.h b/WiiQt/u8.h index 7097800..f1754e7 100644 --- a/WiiQt/u8.h +++ b/WiiQt/u8.h @@ -18,29 +18,29 @@ korean struct FEntry { - union - { - struct - { - unsigned int Type :8; - unsigned int NameOffset :24; - }; - unsigned int TypeName; - }; - union - { - struct // File Entry - { - unsigned int FileOffset; - unsigned int FileLength; - }; - struct // Dir Entry - { - unsigned int ParentOffset; - unsigned int NextOffset; - }; - unsigned int entry[ 2 ]; - }; + union + { + struct + { + unsigned int Type :8; + unsigned int NameOffset :24; + }; + unsigned int TypeName; + }; + union + { + struct // File Entry + { + unsigned int FileOffset; + unsigned int FileLength; + }; + struct // Dir Entry + { + unsigned int ParentOffset; + unsigned int NextOffset; + }; + unsigned int entry[ 2 ]; + }; }; enum @@ -137,7 +137,7 @@ public: const QByteArray AddIMET( int paddingType = U8_Hdr_IMET_app ); //ruterns a list of the names as read from the imet header - const QStringList IMETNames(); + const QStringList &IMETNames(); //set the imet names //the data in the archive is not changed, but calling AddIMET() on this banner will use the new names diff --git a/nandBinCheck/nandBinCheck.pro b/nandBinCheck/nandBinCheck.pro index 8851902..9a6501a 100644 --- a/nandBinCheck/nandBinCheck.pro +++ b/nandBinCheck/nandBinCheck.pro @@ -19,7 +19,6 @@ SOURCES += main.cpp \ ../WiiQt/tiktmd.cpp \ ../WiiQt/nandbin.cpp \ ../WiiQt/tools.cpp \ - ../WiiQt/savebanner.cpp \ ../WiiQt/aes.c \ ../WiiQt/sha1.c \ ../WiiQt/uidmap.cpp \ @@ -28,7 +27,7 @@ SOURCES += main.cpp \ ../WiiQt/settingtxtdialog.cpp \ ../WiiQt/u8.cpp \ ../WiiQt/lz77.cpp \ - ../WiiQt/ash.cpp + ../WiiQt/ash.cpp HEADERS += ../WiiQt/tiktmd.h \ ../WiiQt/nandbin.h \ @@ -40,7 +39,7 @@ HEADERS += ../WiiQt/tiktmd.h \ ../WiiQt/settingtxtdialog.h \ ../WiiQt/u8.h \ ../WiiQt/lz77.h \ - ../WiiQt/ash.h + ../WiiQt/ash.h FORMS += \ ../WiiQt/settingtxtdialog.ui