Commit Graph

51 Commits

Author SHA1 Message Date
giantpune
a27c48058c * use ++i instead of i++ for iterators 2011-05-18 17:24:51 +00:00
giantpune
d0ca7c0f15 * use const reference in foreach() also 2011-05-17 21:18:45 +00:00
giantpune
3ee828284a * more of the same 2011-05-17 19:02:45 +00:00
giantpune
4f74cc3968 * more of the same 2011-05-17 18:36:33 +00:00
giantpune
32cf8113e4 * ohneswanzenegger: dont include code for building extracted FS 2011-05-15 23:17:06 +00:00
giantpune
b6330b362d * minor optimizations 2011-05-15 17:22:42 +00:00
giantpune
b8ae0d48f2 *nusdownloader: dont include USA news & weather channels in EU updates ( fix for issue 1 ) 2011-05-15 16:32:08 +00:00
giantpune
2de556bc77 * 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.
2011-05-08 06:09:02 +00:00
giantpune@gmail.com
1617433aea nandbin.cpp: add more characters to replace to support lame-ass windows filesystems 2011-04-19 08:24:00 +00:00
giantpune
12964e5c91 *svnfail 2011-03-24 09:11:51 +00:00
giantpune
dd38acc53e * settingtxtdialog:: add newline after the last entry to keep libogc from choking on it 2011-03-13 06:53:43 +00:00
giantpune@gmail.com
15f5715c52 * 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
2011-02-21 15:51:14 +00:00
giantpune
c96add47e3 *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 2011-01-29 08:44:22 +00:00
giantpune@gmail.com
b733f95398 * NUS Downloader: fix missing titles for 4.0+u. 2011-01-26 02:44:03 +00:00
giantpune@gmail.com
1ee50ec16f * 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 )
2011-01-21 06:21:28 +00:00
giantpune@gmail.com
b45b4dfd83 * nandchecker: send text to stdout instead of stderr. add pretty colors to see errors and warnings easier. 2011-01-20 02:05:18 +00:00
giantpune@gmail.com
924ce71bf6 *nandchecker: add listing of deleted titles
* ohneswanzenegger: fix bug that let original HBC slip though as "installed at the factory"
2011-01-19 22:32:13 +00:00
giantpune@gmail.com
96860e5aeb *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
2011-01-19 03:39:39 +00:00
giantpune@gmail.com
d0b90a46d9 * nandBin: add format()
* ohneswanzenegger: allow using format on an already existing nand.bin
2011-01-18 19:30:36 +00:00
giantpune@gmail.com
2ccd125bb3 * 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
2011-01-18 03:03:08 +00:00
giantpune@gmail.com
29d7193a21 * NUSdownloader:
fix incorrect system menu version in one of the jap updates
add some 2.X updates
2011-01-17 19:31:00 +00:00
giantpune@gmail.com
b901dfe453 * nanddump: fix bug when changing basepath
* NUSdownloader: dont always include IOS35, since the class is used for other things besides just sneek now
2011-01-17 16:24:12 +00:00
giantpune@gmail.com
4807fb1f20 * NUS downloader: ensure a IOS4 & 9 for full updates
* adding 3 more full updates
2011-01-16 16:05:01 +00:00
giantpune@gmail.com
9360cd9721 * nandBin - change the way gathering clusters for new data works. this seems to better emulate the way IOS does it 2011-01-16 14:40:14 +00:00
giantpune@gmail.com
c81e7a9c17 * fix wad class for dealing with backwards-ass cIOS wads 2011-01-15 22:45:32 +00:00
giantpune@gmail.com
7ed92b3fda * 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
2011-01-15 22:21:43 +00:00
giantpune@gmail.com
0e671a6764 * 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
2011-01-13 16:43:49 +00:00
giantpune@gmail.com
00176fffdf * fix bug dealing with cache for NUS class
* add settings for example programs
2011-01-08 19:14:47 +00:00
giantpune@gmail.com
14b4cb1f3d * fix installing saves to nand dump
* add installing saves to nand in savetoy
2011-01-04 05:37:50 +00:00
giantpune@gmail.com
d5d094862d * adding icons and adjusting layouts for example programs
* adjust U8 class for changed round-up macro.  still needs to be verified
2011-01-04 02:40:25 +00:00
giantpune@gmail.com
d3e71407c8 * use Qt stuff for general sha1 & md5.
* replace apparently buggy round-up macro
2011-01-04 00:07:21 +00:00
giantpune@gmail.com
1313326925 * add a few more things to get from keys.bin
* remove some junk left over from testing
2011-01-03 10:21:34 +00:00
giantpune@gmail.com
8e3d07daad * 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
2011-01-03 04:02:00 +00:00
giantpune@gmail.com
2d6a6ee9f1 * and these 2011-01-02 06:48:17 +00:00
giantpune@gmail.com
25e62f5938 * forgot these 2011-01-02 06:47:44 +00:00
giantpune@gmail.com
9b0bbcea4d * adding stuff to convert to/from data.bin for saves 2011-01-02 06:15:26 +00:00
giantpune@gmail.com
dfcd1bed60 * 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
2010-12-23 16:17:46 +00:00
megazig
0f506a205d added functions for modifying permissions of a wad. applied titleid setting for tickets. 2010-12-23 07:32:10 +00:00
giantpune@gmail.com
374699c434 * remember the ticket decrypted key and dont calculate it every time it is requested 2010-12-22 19:19:12 +00:00
giantpune@gmail.com
30f8070e81 * 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
2010-12-22 00:25:08 +00:00
giantpune@gmail.com
d0490cce4c * 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
2010-12-21 20:01:39 +00:00
giantpune@gmail.com
9afc40b70f * add building a "blank" nand.bin.
* when checking spare data, dont check for blocks that are all 0xff ( untouched )
* dont try to check contents for DLC, since there will probably always be some missing
2010-12-19 22:24:54 +00:00
giantpune@gmail.com
7e64a9f6b5 * fixed bugs in nandBin dealing with getting the supercluster
* adding stuff for writing a supercluster with updates information, using correct rotation
* fixed a few more bugs in this class forgot about
* move the "fakesign checker" stuff to a more appropriate place
* add a couple small functions to TMD, ticket, shardeMap
* add a new "demo" program/project nandBinCheck.  it does lots of useful integrety checks on a nand.bin that will be needed when starting to actually write these things
2010-12-18 21:07:58 +00:00
giantpune@gmail.com
8eac10ea9e * NUS downloader - add 2 more full updates to the list
* fix bug in creating the jap lists
* change the saveDialog to openFileDialog when opening a wad
* remove default text in the NUS downloader
* nandBin class - add the beginnings of writing...  adding & deleting files & directories apparently is working.  writing data to a file appears to work
* right now, its not writing to the nand.bin, so dont use these functions
* probably some other stuff i forgot
2010-12-16 23:37:30 +00:00
megazig
6ce5ffc566 added code for importing a wad into a nand 2010-12-16 20:07:38 +00:00
giantpune@gmail.com
0ddcbca710 * add spare.cpp/.h for calculating ecc & hmac used in the nand 2010-12-15 08:11:56 +00:00
giantpune@gmail.com
63f58938fe * added a class to deal with getting data from the first 8 nand blocks ( ones not belonging to the filesystem )
* really fix the bug that caused the nandBin class not to be able to open keys.bin
2010-12-14 05:58:44 +00:00
giantpune@gmail.com
598a3aa49e * fix bug in nandBin class that added the "/" root item to the path being extracted to 2010-12-11 11:05:37 +00:00
giantpune@gmail.com
167f73aa41 * add access functions to the nandBin class to get the cluster map for whole nand and for a given file
* change the nandExtract program a bit.  move nand extraction to a thread to keep it from hanging the main thread
* add pretty block map
2010-12-11 10:12:50 +00:00
giantpune@gmail.com
09d82184d9 * adding in support for transparently replacing characters in save names in the nand dump class. replacements are held in "/sys/replace". this should allow writing all official save data to a nand dump on any filesystem. weather or not other program know how to read that data back is another story. but at least this one will be able to handle all sorts of filenames now
* adding save installing & retrieving from an extracted nand FS ( untested )
2010-12-10 13:10:53 +00:00