From 998a46e5a4a646041291f67be9a62af5e249115c Mon Sep 17 00:00:00 2001 From: Stewie Date: Mon, 19 Dec 2022 17:39:11 -0500 Subject: [PATCH] Add simple bat files for extraction --- NDX_Batch/1. Extract Iso and Main archive.bat | 4 +++ NDX_Batch/2. Extract Story files.bat | 4 +++ NDX_Batch/3. Extract Skit files.bat | 4 +++ NDX_Executable.py | 28 +++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 NDX_Batch/1. Extract Iso and Main archive.bat create mode 100644 NDX_Batch/2. Extract Story files.bat create mode 100644 NDX_Batch/3. Extract Skit files.bat create mode 100644 NDX_Executable.py diff --git a/NDX_Batch/1. Extract Iso and Main archive.bat b/NDX_Batch/1. Extract Iso and Main archive.bat new file mode 100644 index 0000000..d1197a7 --- /dev/null +++ b/NDX_Batch/1. Extract Iso and Main archive.bat @@ -0,0 +1,4 @@ +pushd ".." +python "NDX_Executable.py" -d Iso "../b-topndxj.iso" +popd +pause \ No newline at end of file diff --git a/NDX_Batch/2. Extract Story files.bat b/NDX_Batch/2. Extract Story files.bat new file mode 100644 index 0000000..e71aa4a --- /dev/null +++ b/NDX_Batch/2. Extract Story files.bat @@ -0,0 +1,4 @@ +pushd ".." +python "NDX_Executable.py" -d Story +popd +pause \ No newline at end of file diff --git a/NDX_Batch/3. Extract Skit files.bat b/NDX_Batch/3. Extract Skit files.bat new file mode 100644 index 0000000..d461e65 --- /dev/null +++ b/NDX_Batch/3. Extract Skit files.bat @@ -0,0 +1,4 @@ +pushd ".." +python "NDX_Executable.py" -d Skit +popd +pause \ No newline at end of file diff --git a/NDX_Executable.py b/NDX_Executable.py new file mode 100644 index 0000000..bb4fb24 --- /dev/null +++ b/NDX_Executable.py @@ -0,0 +1,28 @@ +import ToolsNDX +import sys +import os + +if __name__ == "__main__": + + operation = sys.argv[1] + choices = sys.argv[2] + + tool = ToolsNDX.ToolsNDX("TBL_All.json") + if operation == "-d": + + if choices == "Iso": + + path = sys.argv[3] + tool.extract_Iso(path) + tool.extract_Main_Archive() + + elif choices == "Story": + + tool.extract_All_Story(True) + + elif choices == "Skit": + + tool.extract_All_Skit(True) + + + \ No newline at end of file