Revert "Rewrote to not use .ird, turn's out they're not needed"

This reverts commit f8b35fbe83.
This commit is contained in:
Nichlas Severinsen 2018-07-09 07:40:41 +02:00
parent f8b35fbe83
commit e45367a875
6 changed files with 195 additions and 12 deletions

View file

@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with libray. If not, see <https://www.gnu.org/licenses/>.
import sys
import argparse
try:
@ -34,13 +34,11 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(description='A Libre (FLOSS) Python application for unencrypting, extracting, repackaging, and encrypting PS3 ISOs')
parser.add_argument('-v', '--verbose', help="Increase verbosity", action='count')
parser.add_argument('-o', '--output', dest='output', type=str, help="Output filename", default='output.iso')
parser.add_argument('-k', '--ird', dest='ird', type=str, help="Path to .ird file", default="")
required = parser.add_argument_group('required arguments')
required.add_argument('-i', '--iso', dest='iso', type=str, help="Path to .iso file", required=True)
args = parser.parse_args()
if args.iso:
core.decrypt(args)
sys.exit()
core.decrypt(args)
print("Not enough arguments given. See --help")