Commit Graph

  • 822cf2d38b Split WUD handling: Use getAbsoluteFile() before getParentFile(). reimplementation_wip David Korth 2022-01-15 12:48:32 -0500
  • 91fba66e39 Split WUD handling: Use getAbsoluteFile() before getParentFile(). #10 David Korth 2022-01-15 12:48:32 -0500
  • b1f941949c
    Merge b7492ce2a9 into ac7637e7bf #7 dependabot[bot] 2022-01-13 17:34:54 +0100
  • 066af764f7
    Merge 889ed8f5b2 into ac7637e7bf #9 dependabot[bot] 2021-04-26 16:11:36 +0000
  • 889ed8f5b2
    Bump commons-io from 2.6 to 2.7 #9 dependabot/maven/commons-io-commons-io-2.7 dependabot[bot] 2021-04-26 16:11:34 +0000
  • c9924347e9 Add support for RemoteLocal Maschell 2020-12-20 15:29:48 +0100
  • b95e1abc2d Add support for RemoteLocal Maschell 2020-12-20 15:29:48 +0100
  • 728e1f01bd Adapt to new LocalBackup format => tmd version are now stored as tmd.VERSION Maschell 2020-12-20 15:29:24 +0100
  • 52a92d605c Adapt to new LocalBackup format => tmd version are now stored as tmd.VERSION Maschell 2020-12-20 15:29:24 +0100
  • ac7637e7bf
    Create maven.yml master Maschell 2020-12-20 15:13:22 +0100
  • 07430cc2c7 Add support for reading wudmad archive files Maschell 2020-12-20 15:07:53 +0100
  • 90e83feade Add support for reading wudmad archive files Maschell 2020-12-20 15:07:53 +0100
  • 75a280ece5 llow reading disc with an given offset from a bigger file (e.g from a disk dump) Maschell 2020-12-20 11:25:26 +0100
  • f9f0c4d1f2 llow reading disc with an given offset from a bigger file (e.g from a disk dump) Maschell 2020-12-20 11:25:26 +0100
  • 135e78feda Add the method"downloadContentToByteArray" to the NUSDownloadService Maschell 2020-12-20 11:24:23 +0100
  • 451473610b Add the method"downloadContentToByteArray" to the NUSDownloadService Maschell 2020-12-20 11:24:23 +0100
  • 897afeeb2a Update the warning then volume addresses are missing or more than one address is provided Maschell 2020-12-20 11:23:50 +0100
  • 3f95f97dca Update the warning then volume addresses are missing or more than one address is provided Maschell 2020-12-20 11:23:50 +0100
  • 70481e9adc - Fix missing '/'' to paths Maschell 2020-12-20 11:23:16 +0100
  • fc52aae983 - Fix missing '/'' to paths Maschell 2020-12-20 11:23:16 +0100
  • 2aa0ddff17 - Allow to (de)compress files to/from wux which don't have the size of a wii u disc. - Fix writing the WUX header for really big files. Maschell 2020-12-20 11:23:09 +0100
  • e8c8888ff9 - Allow to (de)compress files to/from wux which don't have the size of a wii u disc. - Fix writing the WUX header for really big files. Maschell 2020-12-20 11:23:09 +0100
  • b7492ce2a9
    Bump junit from 4.12 to 4.13.1 #7 dependabot/maven/junit-junit-4.13.1 dependabot[bot] 2020-10-12 18:29:17 +0000
  • e4d32e9910 wip Maschell 2020-08-12 00:52:05 +0200
  • 4ebd98181c WIP Maschell 2020-08-12 00:52:05 +0200
  • 15a1df1358 Add simple test cases Maschell 2020-07-10 17:34:59 +0200
  • 95039a42ef Refactor the decryption Maschell 2020-07-10 17:29:07 +0200
  • 2604fe5eb9 Use the proper maven folder structure Maschell 2020-01-09 11:05:00 +0100
  • 1c17a668d8 Fix size parametet for the readContentAsStream function Maschell 2019-06-25 16:01:16 +0200
  • e3be1f5a33 Fix titles without a FST Maschell 2019-06-05 21:17:11 +0200
  • 56840994fd Update the readme Maschell 2019-06-04 13:33:49 +0200
  • 3715b757ab Add support for wumad data partitions Maschell 2019-06-04 13:16:13 +0200
  • 6d9cb2b155 Fix package declaration of NUSDataProviderWumad Maschell 2019-06-04 12:54:14 +0200
  • 2c3c25d806 The wudmad loading doesn't require any key.. Maschell 2019-06-04 12:53:19 +0200
  • 3b0b5b982f Move NUSDataProvider Wumad into the right package Maschell 2019-06-04 12:52:34 +0200
  • 9597b35a6d - Add suppport for multiple wumad partitions - The WUDPartitionHeader is now the "GameParitionHeader" as it's used by WUD and WUMAD - Refactor the way of loading the wumad. Now you have to use the WumadLoader, similar to the WUD Maschell 2019-06-04 12:13:25 +0200
  • cb0874deda Add initial support for .wumad files. Doesn't support all .wumads yet. Multiple paritions are not supported. SI partition is required Maschell 2019-06-03 22:23:52 +0200
  • 23f7066f0a Update readme Maschell 2019-05-04 12:27:09 +0200
  • 95802c7f5d Fix woomy support. Maschell 2019-05-04 12:05:34 +0200
  • 96e048b4b5 Some clean up Maschell 2019-05-04 11:27:35 +0200
  • 0ed359a43a Add default readFileToStream function wthout offset/size Maschell 2019-05-04 11:11:36 +0200
  • 156fcd02df Fix the getFSTEntriesByContentIndex function Maschell 2019-05-04 11:11:04 +0200
  • 010e349af9 Optimize the check for Exceptions on the PipedInputStreamWithException. Now everything is checked (properly) on every action do try to do on the stream. Maschell 2019-04-30 15:45:38 +0200
  • 62b87fe925 Revert commit [4b9ef5d]. We need that kind of hashing. Maschell 2019-04-30 15:43:37 +0200
  • b432537af7 Refactor FSTEntry decrypting Maschell 2019-04-30 15:43:04 +0200
  • 8dc4c8cf4d Moved the IV creation into another function, the hash function don't really need the contentIndex. Maschell 2019-04-30 14:35:32 +0200
  • 5ccc8c1763 Fix the size alignment wehne decrypting non hashed files Maschell 2019-04-30 14:32:34 +0200
  • 4b9ef5da70 Optimize the hash checks when decrypting a non hash file Maschell 2019-04-30 14:31:53 +0200
  • da196e845f Force an 0x10 alignment of the offset when trying to decrypt a file Maschell 2019-04-30 14:26:02 +0200
  • fc3a604cd4 Optimize the random access of the non hashed files Maschell 2019-04-30 14:25:29 +0200
  • 79365a9fe6 Caclulate how much of the stream actually is needed Maschell 2019-04-30 12:04:49 +0200
  • e461e78313 Throw an exception if the inputstream couldn't deliver all the needed bytes Maschell 2019-04-30 12:04:09 +0200
  • 3296b1befe Add caching for the h3 values on remote accesses Maschell 2019-04-30 12:03:39 +0200
  • 532501f3a5 Remove unused attribute of the NUSTitle class Maschell 2019-04-30 09:31:50 +0200
  • 95a25c4bcf Fix the Range attribute for downloading Maschell 2019-04-30 09:31:31 +0200
  • 3eb299d3a1 Formatting and organizing imports Maschell 2019-04-26 16:44:57 +0200
  • c1f6272476 Rename functions Maschell 2019-04-26 16:42:41 +0200
  • a48f2c7547 Remove redundant code Maschell 2019-04-26 13:45:24 +0200
  • 69e0c8b36a The size in the FSTDataProvider and NUSDataProvider functions are not Optional anymore Maschell 2019-04-26 13:44:24 +0200
  • 9cb2eaf3be Cache h3 content Maschell 2019-04-26 13:33:13 +0200
  • c3f4f96344 Fix the partial argument for the decryption Maschell 2019-04-26 10:55:13 +0200
  • dd4219423f Refactor the readFileToStream function of the FSTDataProviderNUSTitle Maschell 2019-04-26 10:10:10 +0200
  • c57cee987a Use the default readFile implementation for the FSTDataProviderNUSTitle Maschell 2019-04-26 10:08:53 +0200
  • ddee4b9f5d Refactor and fix FST parsing. - Fix a bug when parsing certain FST of system titles. - Remove the Content reference on the FSTEntry. The Content can get be get via the TMD using getContentByIndex. To get the FSTInfo for the content use FSTUtils.getFSTInfoForContent. - Children are added manually to a FSTEntry (getting ride of side effects). - The NUSTitleLoader sets the FST to the dataprovider. The WUDDataProvider needs the FST to get access to the FSTContentInfo (=> calculating the offsets of the content files). - Remove some unused functions from the FSTEntry class - To get the FSTEntries for the certain content use getFSTEntriesByContentIndex Maschell 2019-04-26 10:08:09 +0200
  • 157957f3ee Add default implementiation for the readFile function of the FSTDataProvider interface Maschell 2019-04-26 09:57:05 +0200
  • 794d4b5146 Remove "abstract" keywords from interface Maschell 2019-04-26 09:56:27 +0200
  • 448eea1092 Clean up NUSTitle class, move functions to FSTUtils class Maschell 2019-04-26 09:55:52 +0200
  • 5a57d42c52 Check partial file reads on a different location Maschell 2019-04-26 09:51:28 +0200
  • 995d548c11 Swap offset and size arguments in decrypt functions Maschell 2019-04-26 09:49:50 +0200
  • 6981345467 Force the use "/" as the path separator internally Maschell 2019-04-24 13:53:07 +0200
  • c1a1961e03 Minor formatting Maschell 2019-04-24 13:28:59 +0200
  • 0d39c037ad Increase the size of the PipedStream buffers. This increases the performance. Maschell 2019-04-24 13:28:47 +0200
  • 1f02e9d41d Give the NUSDataProvider implementation a hint to limit the length of the content stream Maschell 2019-04-24 13:27:54 +0200
  • a58c1c5b77 Make sure to always read the expected Blocksize from a stream of a hashed content. Maschell 2019-04-24 13:27:02 +0200
  • 06184da8d3 Only throw an exception in the FSTService when a content for a given wasn't found if the Map is emtpy Maschell 2019-04-24 13:26:25 +0200
  • 03181f6078 Close file properly on compressWUDToWUX function Maschell 2019-04-24 13:25:22 +0200
  • 254d16a584 Simplify the ByteArrayWrapper constructor Maschell 2019-04-24 13:24:08 +0200
  • 59411e4c7d Throw proper exception while hashing Maschell 2019-04-19 14:47:39 +0200
  • 9f6f9aaabe Make sure all streams are really closed via try/finally block. Added a "closeAll" function in StreamUtils which helps to close a list of closeables Maschell 2019-04-19 11:41:12 +0200
  • fccd8f8bf4 Throw an Exception when a FSTDataProviderNUSTitle has no FSTEntry root Maschell 2019-04-19 11:39:09 +0200
  • a5929f346d Replace System.exit with throwing an Exception Maschell 2019-04-19 11:38:02 +0200
  • 39d10291a2 Fix the warning when you try to decrypt a FSTEntry where the content is empty. Maschell 2019-04-19 11:37:22 +0200
  • dbad684549 Check for execptions when reading an inputstream Maschell 2019-04-19 11:36:49 +0200
  • ef878f7e41 Return an empty HashMap instead of null. Maschell 2019-04-19 10:57:18 +0200
  • 1ebe37b77e Adjust log levels Maschell 2019-04-19 10:56:59 +0200
  • 4aa6f532f0 Organize imports Maschell 2019-04-19 10:56:43 +0200
  • 9b38f9c8c6 The readToFile function of the FSTDataProvider Interface now does return a value value to indicate success Maschell 2019-04-19 10:56:24 +0200
  • 194b3084ae Add a missing input.close() when an exception happens. Maschell 2019-04-19 10:45:01 +0200
  • d3f2361803 Throw an exception instead of doing a System.exit when the offset is too big. Maschell 2019-04-19 10:44:08 +0200
  • 3a6f592294 Use break on reading error instead of return, this way the streams will be closed properly. Maschell 2019-04-19 10:43:32 +0200
  • c47c9913ac Change the content and parent attribute of a FSTEntry to an Optional Maschell 2019-04-19 10:42:33 +0200
  • 75e28a733b Some minor code cleanup for the WUDInfoParser Maschell 2019-04-18 23:28:01 +0200
  • a9fc37244a Only throw an exception when no content was found for files that are actually in the title (and not a directory) Maschell 2019-04-18 23:27:39 +0200
  • f8146ce56b Make SHA2 attribute of ContentInfo Optional Maschell 2019-04-18 23:25:20 +0200
  • 7c9fe334a8 The FST and Ticket attribute of the NUSTitle are now optionals Maschell 2019-04-18 11:18:32 +0200
  • 73440af121 Return false instead of throwing an exception while trying to extract missing files Maschell 2019-04-16 12:59:34 +0200
  • a521b045ab - Fix non-gm parition with FST > 0x8000 bytes. - Wrap reading from discReader in WUDInfoParser. - Only save the complete WUDPartitionHeader in the game partition - Replace the WUDPartitio.getAbsolutePartitionOffset by getPartitionOffset. Maschell 2019-04-14 22:09:15 +0200
  • 54536f29ab Add simple wrapper for the "readFileAsStream" function of the FSTDataProvider Maschell 2019-04-14 20:39:37 +0200
  • 151ad6e2a6 Add support for titles without FST. Maschell 2019-04-14 14:50:01 +0200
  • 1698acb3f6 Don't swallow the exception on checksum errors. Maschell 2019-04-14 14:49:47 +0200