You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Add simple bat files for extraction
This commit is contained in:
4
NDX_Batch/1. Extract Iso and Main archive.bat
Normal file
4
NDX_Batch/1. Extract Iso and Main archive.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
pushd ".."
|
||||
python "NDX_Executable.py" -d Iso "../b-topndxj.iso"
|
||||
popd
|
||||
pause
|
||||
4
NDX_Batch/2. Extract Story files.bat
Normal file
4
NDX_Batch/2. Extract Story files.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
pushd ".."
|
||||
python "NDX_Executable.py" -d Story
|
||||
popd
|
||||
pause
|
||||
4
NDX_Batch/3. Extract Skit files.bat
Normal file
4
NDX_Batch/3. Extract Skit files.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
pushd ".."
|
||||
python "NDX_Executable.py" -d Skit
|
||||
popd
|
||||
pause
|
||||
28
NDX_Executable.py
Normal file
28
NDX_Executable.py
Normal file
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user