Commit Graph

60 Commits

Author SHA1 Message Date
Antonio SJ Musumeci
a18bbb98cd get nandBinCheck to compile with QT5 2014-07-09 17:49:58 -04:00
giantpune
54fb86682a * add whatever local changes i have in the lz77 & u8 classes
* make everything build again

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@116 389f4c8b-5dfe-645f-db0e-df882bc27289
2012-01-11 05:29:59 +00:00
giantpune
b703943847 *u8: add support for checking if an archive was packed with wii.cs to allow fixing it
use case-insensitivity.  seems all the nintendo tools are running on windows and in the system menu html, paths are case-insensitive.  it doesnt seem like there is anywhere where they would need to be the other way

* lz77: support for unpacking archives larger than 0xffffff bytes

* nusdownloader: dont try to write files to cache if there is not one set

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@107 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-07-11 05:47:33 +00:00
giantpune
06da4707a6 * ohneschwanzenegger:: allow passing nand filename as argv
* nandBinCheck:: default to "-all -v -v" if no args are given

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@104 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-30 23:39:10 +00:00
giantpune
62be6769b1 * nusDownloader: use newer IOS14 for early JAP updates
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@98 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-28 08:08:10 +00:00
giantpune
c621d20e86 * add basic stuff for putting svn rev into the programs for identification.
* only tested on kubuntu with ohneswanzenegger so far

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@97 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-28 06:50:16 +00:00
giantpune
2777708318 *nusDownloader:: fix cache bug caused be overzealous optimizations; add better error handeling when reading and saving data to/fromcache
*ohneschwanzenegger:: change possible misleading version text when overwriting a title

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@96 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-28 06:05:34 +00:00
giantpune
c744b29d04 *nandBin:: fix return value for failed reading of keys
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@94 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-26 23:40:12 +00:00
giantpune
a9bde8574e * dont need save file stuff in nandbincheck
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@93 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-18 17:34:45 +00:00
giantpune
057023094e * use ++i instead of i++ for iterators
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@92 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-18 17:24:51 +00:00
giantpune
a747992319 * use const reference in foreach() also
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@91 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-17 21:18:45 +00:00
giantpune
573d64a87b * more of the same
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@90 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-17 19:02:45 +00:00
giantpune
a747124f2b * more of the same
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@89 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-17 18:36:33 +00:00
giantpune
8a683c7078 * ohneswanzenegger: dont include code for building extracted FS
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@87 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-15 23:17:06 +00:00
giantpune
1dab1d2a59 * minor optimizations
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@86 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-15 17:22:42 +00:00
giantpune
c891dd5ff5 *nusdownloader: dont include USA news & weather channels in EU updates ( fix for issue 1 )
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@85 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-15 16:32:08 +00:00
giantpune
0576fafe79 * adding new program... punetwiin. its purpose is kinda like betwiin. but it works slightly different. for one, it takes a full nand.bin for both done files. it pulls the files and filesystem from the first nand, and it pull boot1&2, the keys and the bad block map from the second nand. then it bakes on low heat for 45 minutes and when its done, you will have the contents from the filesystem in teh first nand mixed with everything else from the second nand.
i only performed limited testing, but it seems to work fine.  in linux, the full process took < 20 seconds.  in windows, it was about 2 minutes.  bad blocks are taken into account, so i personally feel that it is safer that betwiin ( but im not knocking that program at all :) )

anybody using punetwiin is encouraged to verify the content of the output file before even thinking about installing it.

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@83 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-05-08 06:09:02 +00:00
giantpune@gmail.com
b91785abac nandbin.cpp: add more characters to replace to support lame-ass windows filesystems
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@77 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-04-19 08:24:00 +00:00
giantpune
13610f87ad *svnfail
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@76 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-03-24 09:11:51 +00:00
giantpune
45ab760616 * settingtxtdialog:: add newline after the last entry to keep libogc from choking on it
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@74 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-03-13 06:53:43 +00:00
giantpune@gmail.com
43ae33972d * TMD:: use reserved2 for fakesigning. "zeros" is actually part of the region and breaks things
* nandBin:: if SFFS generation rolls around to 0, write all 16 superclusters

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@72 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-02-21 15:51:14 +00:00
giantpune
e48e9d67e0 *ash class: slightly better error handling & memory management. should help fix/avoid some issues with buffer overflowing using the hardcoded buffer size from crediar's original code
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@71 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-29 08:44:22 +00:00
giantpune@gmail.com
b899479a01 * NUS Downloader: fix missing titles for 4.0+u.
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@69 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-26 02:44:03 +00:00
giantpune@gmail.com
2ef8140044 * Tmd class: change name of bootindex/index to match libogc and avoid confusion
* nandChecker: add korean brick checking ( still untested with a real korean dump )

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@67 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-21 06:21:28 +00:00
giantpune@gmail.com
b9acf97809 * nandchecker: send text to stdout instead of stderr. add pretty colors to see errors and warnings easier.
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@65 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-20 02:05:18 +00:00
giantpune@gmail.com
9c9e7a763f *nandchecker: add listing of deleted titles
* ohneswanzenegger: fix bug that let original HBC slip though as "installed at the factory"

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@64 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-19 22:32:13 +00:00
giantpune@gmail.com
a283f45b7d *NUSdownloader: get regsel v1 for 2.X updates. v2 requires ios31, which didnt come around till 3.0
*nandBin: #ifdef out code not used when not built with write ability
*nandChecker: add stuff for checking system menu against setting.txt
* add stuff for displaying title name and other information
*ohneswansenegger: fix bug which caused formatted nand to use previous content.map and uid.sys

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@63 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-19 03:39:39 +00:00
giantpune@gmail.com
6b5441637b * nandBin: add format()
* ohneswanzenegger: allow using format on an already existing nand.bin

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@62 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-18 19:30:36 +00:00
giantpune@gmail.com
192789e01f * account for the other, non-usa regions when creating default UID entries
* try to use the least possible ones amount of them while still being accurate

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@61 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-18 03:03:08 +00:00
giantpune@gmail.com
8e81f88928 * NUSdownloader:
fix incorrect system menu version in one of the jap updates
add some 2.X updates

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@60 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-17 19:31:00 +00:00
giantpune@gmail.com
8294800e9d * nanddump: fix bug when changing basepath
* NUSdownloader: dont always include IOS35, since the class is used for other things besides just sneek now

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@59 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-17 16:24:12 +00:00
giantpune@gmail.com
7994575033 * NUS downloader: ensure a IOS4 & 9 for full updates
* adding 3 more full updates

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@55 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-16 16:05:01 +00:00
giantpune@gmail.com
e8bd408ba6 * nandBin - change the way gathering clusters for new data works. this seems to better emulate the way IOS does it
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@54 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-16 14:40:14 +00:00
giantpune@gmail.com
2769d3a891 * fix wad class for dealing with backwards-ass cIOS wads
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@53 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-15 22:45:32 +00:00
giantpune@gmail.com
dfd31fe4ed * fix bug in NUS downloader that added some titles to the list and then used another list, forgetting about the first 2 titles
* fix bug in nandBin class when the current superblock was the last one

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@52 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-15 22:21:43 +00:00
giantpune@gmail.com
92f2500c08 * sort titles in nandBinChecker
* use unsigned int since HBC's TID wont fit in a signed 32 bit int
* add key index fixing in the ticket class

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@50 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-13 16:43:49 +00:00
giantpune@gmail.com
38bff8d982 * fix bug dealing with cache for NUS class
* add settings for example programs

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@49 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-08 19:14:47 +00:00
giantpune@gmail.com
a041dba1b3 * fix installing saves to nand dump
* add installing saves to nand in savetoy

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@47 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-04 05:37:50 +00:00
giantpune@gmail.com
411c42203d * adding icons and adjusting layouts for example programs
* adjust U8 class for changed round-up macro.  still needs to be verified

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@46 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-04 02:40:25 +00:00
giantpune@gmail.com
930e92ca3c * use Qt stuff for general sha1 & md5.
* replace apparently buggy round-up macro

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@45 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-04 00:07:21 +00:00
giantpune@gmail.com
3f1f5654ad * add a few more things to get from keys.bin
* remove some junk left over from testing

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@44 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-03 10:21:34 +00:00
giantpune@gmail.com
1801f7f8cf * fix bug in nand.bin class: when creating a new nand.bin, initialize fst_pos in fst entries
* insert new entries in nand.bin at the start of the chain instead of at the end ( to closer mimic IOS FS behavior )
* oneswanzenegger: create /sys/cert.sys when creating a new nand.bin

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@42 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-03 04:02:00 +00:00
giantpune@gmail.com
cc09d9e72f * and these
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@37 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:48:17 +00:00
giantpune@gmail.com
f3c7feaee5 * forgot these
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@36 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:47:44 +00:00
giantpune@gmail.com
1994e8bdda * adding stuff to convert to/from data.bin for saves
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@34 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:15:26 +00:00
giantpune@gmail.com
a3e6288604 * implement static function for creating wads from a list of bytearrays
* minor optimizations - using "const &" to avoid creating a duplicate for function arguments in the library files
* nandBin needs to be built with write support to create a new file

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@30 389f4c8b-5dfe-645f-db0e-df882bc27289
2010-12-23 16:17:46 +00:00
megazig
4ef3c3bebf added functions for modifying permissions of a wad. applied titleid setting for tickets.
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@29 389f4c8b-5dfe-645f-db0e-df882bc27289
2010-12-23 07:32:10 +00:00
giantpune@gmail.com
d0b87f88f4 * remember the ticket decrypted key and dont calculate it every time it is requested
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@28 389f4c8b-5dfe-645f-db0e-df882bc27289
2010-12-22 19:19:12 +00:00
giantpune@gmail.com
44900c32f1 * setting.txt dialog knows different regions
* make the button for selecting the NUS_Cache path actually do something in the 2 programs that use NUS
* default NUS_cache is up 2 directories in windoze
* allow reading bad blocks from a txt file when creating a blank nand

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@27 389f4c8b-5dfe-645f-db0e-df882bc27289
2010-12-22 00:25:08 +00:00
giantpune@gmail.com
c41bc634a1 * fix bugs in the nandBin delete
* fiix bug when writing supercluster
* add macros for nand attributes
* adding another example program for creating nand.bin and adding wads.  it SEEMS to work as expected, but still, use it with EXTREME CAUTION
* changed default NUS_Cache path in NUS downloader to parent directly so the 2 example programs can share the same cache
* added "-all" argument for the nandBinchecker

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@26 389f4c8b-5dfe-645f-db0e-df882bc27289
2010-12-21 20:01:39 +00:00