From 27b7ba5e7fc312b2c24b5faba2d3c2a7c7f20cb6 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Wed, 10 Aug 2022 20:20:25 +0300 Subject: [PATCH] Remove all back end things to separate library. Update copyrights. --- README.md | 21 +- pom.xml | 28 +- src/main/java/konogonka/AppPreferences.java | 2 +- .../java/konogonka/Child/ChildWindow.java | 4 +- .../java/konogonka/Controllers/IRowModel.java | 2 +- .../konogonka/Controllers/ITabController.java | 4 +- .../konogonka/Controllers/MainController.java | 4 +- .../Controllers/NCA/NCAController.java | 10 +- .../NCA/NCASectionContentController.java | 6 +- .../NCA/NCASectionHeaderBlockController.java | 6 +- .../Controllers/NCA/NCATableController.java | 6 +- .../NPDM/FSAccessControlController.java | 8 +- .../NPDM/FSAccessHeaderController.java | 8 +- .../NPDM/KernelAccessControlController.java | 4 +- .../Controllers/NPDM/NPDMController.java | 12 +- .../NPDM/ServiceAccessControlController.java | 2 +- .../Controllers/NSP/NSPController.java | 10 +- .../Controllers/NSP/Pfs0RowModel.java | 2 +- .../NSP/Pfs0TableViewController.java | 6 +- .../RFS/RFSFolderTableViewController.java | 4 +- .../Controllers/RFS/RFSModelEntry.java | 4 +- .../Controllers/RFS/RomFsController.java | 12 +- .../Controllers/TIK/TIKController.java | 8 +- .../Controllers/XCI/HFSBlockController.java | 6 +- .../Controllers/XCI/Hfs0RowModel.java | 2 +- .../XCI/Hfs0TableViewController.java | 6 +- .../Controllers/XCI/XCIController.java | 8 +- .../Controllers/XML/XMLController.java | 4 +- src/main/java/konogonka/LoperConverter.java | 64 --- src/main/java/konogonka/Main.java | 2 +- src/main/java/konogonka/MainFx.java | 17 +- src/main/java/konogonka/MediatorControl.java | 2 +- .../konogonka/ModelControllers/EMsgType.java | 2 +- .../ModelControllers/LogPrinter.java | 2 +- .../ModelControllers/MessagesConsumer.java | 2 +- src/main/java/konogonka/RainbowDump.java | 62 --- src/main/java/konogonka/ServiceWindow.java | 2 +- .../Settings/ListSelectorController.java | 2 +- .../Settings/SettingsController.java | 2 +- .../konogonka/Settings/SettingsWindow.java | 2 +- .../konogonka/Tools/ASuperInFileProvider.java | 42 -- .../java/konogonka/Tools/ISuperProvider.java | 32 -- .../java/konogonka/Tools/NCA/NCAContent.java | 443 ------------------ .../Tools/NCA/NCAHeaderTableEntry.java | 53 --- .../java/konogonka/Tools/NCA/NCAProvider.java | 384 --------------- .../NCASectionTableBlock/NCASectionBlock.java | 113 ----- .../NCASectionTableBlock/SuperBlockIVFC.java | 173 ------- .../NCASectionTableBlock/SuperBlockPFS0.java | 55 --- .../Tools/NPDM/ACI0/ACI0Provider.java | 81 ---- .../NPDM/ACI0/FSAccessHeaderProvider.java | 58 --- .../Tools/NPDM/ACID/ACIDProvider.java | 104 ---- .../NPDM/ACID/FSAccessControlProvider.java | 46 -- .../NPDM/KernelAccessControlProvider.java | 246 ---------- .../konogonka/Tools/NPDM/NPDMProvider.java | 165 ------- .../NPDM/ServiceAccessControlProvider.java | 48 -- .../konogonka/Tools/PFS0/IPFS0Provider.java | 31 -- .../Tools/PFS0/PFS0EncryptedProvider.java | 304 ------------ .../konogonka/Tools/PFS0/PFS0Provider.java | 189 -------- .../konogonka/Tools/PFS0/PFS0subFile.java | 38 -- .../konogonka/Tools/RomFs/FileMeta4Debug.java | 88 ---- .../Tools/RomFs/FileSystemEntry.java | 192 -------- .../Tools/RomFs/FolderMeta4Debug.java | 84 ---- .../konogonka/Tools/RomFs/IRomFsProvider.java | 31 -- .../konogonka/Tools/RomFs/Level6Header.java | 92 ---- .../Tools/RomFs/RomFsDecryptedProvider.java | 166 ------- .../Tools/RomFs/RomFsEncryptedProvider.java | 289 ------------ .../java/konogonka/Tools/TIK/TIKProvider.java | 181 ------- .../java/konogonka/Tools/XCI/HFS0File.java | 44 -- .../konogonka/Tools/XCI/HFS0Provider.java | 190 -------- .../konogonka/Tools/XCI/XCIGamecardCert.java | 67 --- .../Tools/XCI/XCIGamecardHeader.java | 149 ------ .../konogonka/Tools/XCI/XCIGamecardInfo.java | 119 ----- .../java/konogonka/Tools/XCI/XCIProvider.java | 118 ----- src/main/java/konogonka/Workers/Analyzer.java | 16 +- .../Workers/DumbNCA3ContentExtractor.java | 2 +- .../konogonka/Workers/DumbRomFsExtractor.java | 4 +- .../java/konogonka/Workers/Extractor.java | 4 +- src/main/java/konogonka/ctraes/AesCtr.java | 53 --- .../konogonka/ctraes/AesCtrDecryptSimple.java | 63 --- .../exceptions/EmptySectionException.java | 7 - .../konogonka/xtsaes/XTSAESBlockCipher.java | 116 ----- .../java/konogonka/xtsaes/XTSAESCipher.java | 117 ----- src/main/java/konogonka/xtsaes/XTSCore.java | 154 ------ src/main/java/konogonka/xtsaes/XTSTweak.java | 129 ----- src/main/resources-filtered/app.properties | 1 + src/main/resources/FXML/NSP/TableView.fxml | 2 +- .../resources/FXML/RomFS/RFSTableView.fxml | 2 +- 87 files changed, 138 insertions(+), 5307 deletions(-) delete mode 100644 src/main/java/konogonka/LoperConverter.java delete mode 100644 src/main/java/konogonka/RainbowDump.java delete mode 100644 src/main/java/konogonka/Tools/ASuperInFileProvider.java delete mode 100644 src/main/java/konogonka/Tools/ISuperProvider.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCAContent.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCAHeaderTableEntry.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCAProvider.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCASectionTableBlock/NCASectionBlock.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCASectionTableBlock/SuperBlockIVFC.java delete mode 100644 src/main/java/konogonka/Tools/NCA/NCASectionTableBlock/SuperBlockPFS0.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/ACI0/ACI0Provider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/ACI0/FSAccessHeaderProvider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/ACID/ACIDProvider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/ACID/FSAccessControlProvider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/KernelAccessControlProvider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/NPDMProvider.java delete mode 100644 src/main/java/konogonka/Tools/NPDM/ServiceAccessControlProvider.java delete mode 100644 src/main/java/konogonka/Tools/PFS0/IPFS0Provider.java delete mode 100644 src/main/java/konogonka/Tools/PFS0/PFS0EncryptedProvider.java delete mode 100644 src/main/java/konogonka/Tools/PFS0/PFS0Provider.java delete mode 100644 src/main/java/konogonka/Tools/PFS0/PFS0subFile.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/FileMeta4Debug.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/FileSystemEntry.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/FolderMeta4Debug.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/IRomFsProvider.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/Level6Header.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/RomFsDecryptedProvider.java delete mode 100644 src/main/java/konogonka/Tools/RomFs/RomFsEncryptedProvider.java delete mode 100644 src/main/java/konogonka/Tools/TIK/TIKProvider.java delete mode 100644 src/main/java/konogonka/Tools/XCI/HFS0File.java delete mode 100644 src/main/java/konogonka/Tools/XCI/HFS0Provider.java delete mode 100644 src/main/java/konogonka/Tools/XCI/XCIGamecardCert.java delete mode 100644 src/main/java/konogonka/Tools/XCI/XCIGamecardHeader.java delete mode 100644 src/main/java/konogonka/Tools/XCI/XCIGamecardInfo.java delete mode 100644 src/main/java/konogonka/Tools/XCI/XCIProvider.java delete mode 100644 src/main/java/konogonka/ctraes/AesCtr.java delete mode 100644 src/main/java/konogonka/ctraes/AesCtrDecryptSimple.java delete mode 100644 src/main/java/konogonka/exceptions/EmptySectionException.java delete mode 100644 src/main/java/konogonka/xtsaes/XTSAESBlockCipher.java delete mode 100644 src/main/java/konogonka/xtsaes/XTSAESCipher.java delete mode 100644 src/main/java/konogonka/xtsaes/XTSCore.java delete mode 100644 src/main/java/konogonka/xtsaes/XTSTweak.java create mode 100644 src/main/resources-filtered/app.properties diff --git a/README.md b/README.md index 394ad0f..8c0ad16 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Nightly builds could be found somewhere on [redrise.ru](https://redrise.ru) Deep WIP multi-tool to work with NS-specific files / filesystem images. +Front end to libKonogonka + ### License [GNU General Public License v3+](https://github.com/developersu/konogonka/blob/master/LICENSE) @@ -19,15 +21,9 @@ Deep WIP multi-tool to work with NS-specific files / filesystem images. drawing ### Used libraries & resources -* [Bouncy Castle](https://www.bouncycastle.org/) for Java. -* [Java-XTS-AES](https://github.com/horrorho/Java-XTS-AES) by horrorho with minimal changes. * [OpenJFX](https://wiki.openjdk.java.net/display/OpenJFX/Main) * Few icons taken from: [materialdesignicons.com](http://materialdesignicons.com/) - -#### Thanks -* Switch brew wiki -* Original ScriesM software -* roothorick, [shchmue](https://github.com/shchmue/), He, other Team AtlasNX discord members for their advices, notes and examples! +* See libKonogonka project for details ### System requirements @@ -42,9 +38,14 @@ JRE/JDK 8u60 or higher. 1. Install JDK 2. Install Maven -3. $ git clone https://github.com/developersu/konogonka.git -4. $ mvn -B -DskipTests clean package -5. $ java -jar target/konogonka-0.x.x-jar-with-dependencies.jar +3. Install libKonogonka to local repository: +4. $ git clone https://git.redrise.ru/desu/libKonogonka +5. $ mvn -B -DskipTests clean package +6. $ mvn install:install-file -Dfile=./target/libKonogonka-*-jar-with-dependencies.jar -DgroupId=ru.redrise -DartifactId=libKonogonka -Dversion=`grep -m 1 '' pom.xml| sed -e 's/\s*.\/\?version>//g' + ` -Dpackaging=jar -DgeneratePom=true; +7. $ git clone https://github.com/developersu/konogonka.git +8. $ mvn -B -DskipTests clean package +9. $ java -jar target/konogonka-0.x.x-jar-with-dependencies.jar ### Checklist diff --git a/pom.xml b/pom.xml index 0b7b6a1..05bf568 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ konogonka konogonka - 0.0.3-SNAPSHOT + 0.0.4-SNAPSHOT https://github.com/developersu/${project.name}}/ @@ -137,19 +137,14 @@ mac compile - + - org.bouncycastle - bcprov-jdk15on - 1.54 - compile - - - net.jcip - jcip-annotations - 1.0 + ru.redrise + libKonogonka + 0.1 compile +