140 Commits

Author SHA1 Message Date
Jack 334f6f0468 [CTRTool] Honour plain flag when processing CIA files. (#126)
* Add util functions to CTRTool

* [ctrtool] Honour -p flag when processing CIA files.

* Bump CTRTool version to v1.1.1
2022-06-19 13:53:25 +08:00
Jack cc707c160f Modernize MakeROM build system + bug fixes (#120)
* Move files around to new directory structure

* Rework libyaml into a stand-alone dep for makerom.

* Rework libpolarssl to be standalone dependency for makerom.

* Update includes.

* Delete makefile

* Add new makefile for makerom.

* Update MakeROM github actions script.

* Fix again.

* Update MakeROM's makefile

* Tweak makerom build script

* Tweak MakeROM build script.

* Fix typo

* Update MakeROM makefiles.

* Tweak CTRTool build script.

* Tweak build script

* Tweak CTRTool build script.

* Tweak CTRTool build script

* Add libmbedtls to makerom deps

* Partially migrate makerom to libmbedtls

* Break out libblz as an external dependency for makerom.

* Tweak makerom build script.

* Move dependencies to the top level.

* Put everything back.

* misc

* Update makerom documentation.

* Link to ctrtool/makerom readmes from the root readme.

* Update root readme again.

* Migrate makerom to modern mbedtls

* Bump makerom version to 0.18.1

* Change signing errors to be warnings when they fail.

* Add error verbosity to errors when generating CIA files.

* Fix bug in RSA code.

* misc.

* Remove polarssl now migration to mbedtls complete.

* Surface more makerom errors.

* [makerom] Tolerate CCI signing errors as a warning.

* Add missing return.

* Import initial data key_x (prod/dev included)

* [makerom] Fix initial data generation.
2022-04-17 10:49:05 +08:00
jakcron e1a6f9101d Bump version to v1.1.0 2022-04-15 11:27:33 +08:00
jakcron be1394234a Tag error output as [ctrtool::ClassName ERROR], leaving warnings/progress indicators as [ctrtool::ClassName LOG] 2022-04-15 11:26:20 +08:00
Jakcron 247045ba8f Extraction progress logs are now only shown in verbose mode. 2022-04-15 00:21:35 +08:00
jakcron c0ce043b30 Emit errors/warns/logs in a consistent manner. 2022-04-12 20:05:02 +08:00
jakcron 60334cd7dd Don't silence verbosity with -q/--quiet 2022-04-12 19:43:24 +08:00
jakcron 6ce56539be Merge branch 'master' into ctrtool-silence-output 2022-04-12 11:48:13 +08:00
jakcron 5c584f4d36 Bump version. 2022-04-11 18:01:44 +08:00
jakcron a1f86a6813 Add support for processing InitialData CryptoTypes 1-2 2022-04-11 18:01:05 +08:00
jakcron 7798ddda90 (ctrtool::ExeFsProcess) Emit errors/warns/logs in a consistent manner. 2022-03-31 16:15:49 +08:00
jakcron f79a5666a5 When verifying CIA cert/tik/tmd, preference certchain over keybag. 2022-03-31 16:01:36 +08:00
jakcron 4652a08d10 (ctrtool::CrrProcess) Emit errors/warns/logs in a consistent manner. 2022-03-31 14:59:55 +08:00
jakcron 6509b431d8 (ctrtool::CiaProcess) Emit errors/warns/logs in a consistent manner. 2022-03-30 20:09:25 +08:00
jakcron e7d872934a (ctrtool::CciProcess) Emit errors/warns/logs in a consistent manner. 2022-03-30 20:09:04 +08:00
Jakcron eddbb3fd95 Merge branch 'master' into ctrtool-silence-output 2022-03-30 15:03:53 +08:00
jakcron ea3b188de4 Bump patch version. 2022-03-30 14:27:12 +08:00
jakcron 97e956d782 [BugFix] Honour exheader code compressed flag. 2022-03-30 14:26:56 +08:00
Jakcron 0715b3d5b9 Add flag -q/--quiet to suppress non-errors. 2022-03-29 17:37:26 +08:00
Jakcron b1629a4aa6 Fix bug when processing NCCH files directly, -p/--plain flag was not honoured. 2022-03-29 17:34:45 +08:00
Jakcron cbc20b2a15 Honour opt.info when running CiaProcess 2022-03-29 17:26:12 +08:00
Jakcron d9f9d4ec48 Bump patch version 2022-03-29 17:02:34 +08:00
jakcron 5f58433bcf Fix issue where titleid was being read incorrectly when importing SeedDB. 2022-03-28 15:49:01 +08:00
jakcron 1684a3a7e0 Correct documentation about automatic alignment padding. 2022-03-27 09:09:10 +08:00
jakcron 400a68e1ba Fix link to BUILDING.md 2022-03-19 15:05:38 +08:00
jakcron 986a8cd859 Add readme and build instructions. 2022-03-19 15:04:07 +08:00
jakcron cc8a4d6ccb Bump version. 2022-03-14 21:44:24 +08:00
jakcron dd7c33e996 [ctrtool] Fix common-key 05 init. 2022-03-14 21:44:09 +08:00
jakcron 8108bea6de Use set.opt.info into *Process::setCliOutputMode() instead of hardcoding values. 2022-03-14 17:13:23 +08:00
jakcron f08c3a11a0 Remove "FS" view option from CciProcess as it was never going to be used. 2022-03-14 17:12:46 +08:00
jakcron d3343000f4 Misc whitespace removal 2022-03-14 17:12:23 +08:00
jakcron b73d95ef89 Change -x/--extract option handling to be as a deprecated option. 2022-03-14 17:11:25 +08:00
jakcron 4ded736c72 Add TikProcess and TmdProcess to VS project files. 2022-03-13 17:44:28 +08:00
jakcron fb824cab04 Comment debug text in umain() 2022-03-13 17:40:55 +08:00
jakcron 30c11c9ea6 Add support for processing tik/tmd files directly. 2022-03-13 17:24:17 +08:00
jakcron ea74ca4e93 Enable CiaProcess to fallback use certs to verify cert/tik/tmd. 2022-03-13 17:23:51 +08:00
jakcron 5f0186d19f Change behaviour of TitleMetaDataDeserialiser to read only the length of the actual data. 2022-03-13 17:23:19 +08:00
jakcron 51e3433bec Revise usage text/handler 2022-03-13 13:45:29 +08:00
jakcron 031d45cfde Fix more mistakes in makefiles 2022-03-13 10:19:09 +08:00
jakcron dbd8c95701 More makefile fixes 2022-03-13 10:11:09 +08:00
jakcron 90dd1abc63 Fix copy-pasta mistake in libnintendo-n3ds makefile 2022-03-13 10:05:33 +08:00
jakcron 8dd17ce5fe Fix copy/paste bug in ctrtool makefile 2022-03-13 09:21:37 +08:00
jakcron 85f0fea970 Update makefiles 2022-03-13 09:18:27 +08:00
jakcron c57a691c2f Properly detect SMDH magic. 2022-03-13 08:42:10 +08:00
jakcron 70f253152d Misc formatting logging text. 2022-03-13 08:41:53 +08:00
jakcron 800f5776bc Add source code for ctrtool 2022-03-12 16:00:33 +08:00
jakcron ef3a1bc2e6 Remove old ctrtool source code. 2022-03-12 14:13:01 +08:00
Jack 85a0ba610e Update windows ctrtool makefile. 2020-05-11 17:00:52 +08:00
3DSGuy b3cb4aa1dc Add version text to CTRTool. 2020-04-28 21:17:22 +08:00
Muh Muhten 8cbeb744d7 Fix UTF-16 to UTF-8 conversion on non-Windows
U+800 to U+FFFF encode as one UTF-16 code unit, but three byte in UTF-8.
Filenames containing more characters in this range than the ASCII range
would be cut off.

This range includes all BMP Japanese characters.
2020-04-08 03:14:40 -04:00