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