Skip to content

Commit

Permalink
unify sdgo data root path config
Browse files Browse the repository at this point in the history
  • Loading branch information
redsuns-chan committed Aug 11, 2022
1 parent ec9085e commit 44bf5a3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions sdgo-mod-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import struct
import sys
import codecs

sdgo_data_path = "D:/Project/SDGO/data/"
from toolconfig import sdgo_data_path

def extract_header(f):
read_zoa = 0
Expand Down
2 changes: 1 addition & 1 deletion sdgo-mod-finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path
import sys

sdgo_data_path = "G:\\Games\\SDGO_DEV\\data_dev\\"
from toolconfig import sdgo_data_path

def main(tex: str):
os.chdir(sdgo_data_path)
Expand Down
2 changes: 1 addition & 1 deletion sdgo-script-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
from pathlib import Path
import shutil
from toolconfig import sdgo_data_path

sdgo_data_path = "D:/Project/SDGO/data/"
target_path = sdgo_data_path + "scp/decoded/"

command = "java -jar ./unlua.jar \"" + sdgo_data_path + "scp/{{filename}}.scp" + "\" > \"" + target_path + "{{filename}}.lua\""
Expand Down
2 changes: 1 addition & 1 deletion sdgo-sfx-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import os
from pathlib import Path
import shutil
from toolconfig import sdgo_data_path

sdgo_data_path = "D:/Project/SDGO/data/"
target_path = sdgo_data_path + "sdrs/decoded/"

def main():
Expand Down
2 changes: 1 addition & 1 deletion sdgo-texture-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# author: RedSuns Chan
import os
import pathlib
from toolconfig import sdgo_data_path

sdgo_data_path = "G:/Games/SDGO_DEV/data_dev/"
target_path = sdgo_data_path + "txrs/decoded/"

def extract_texture(file_name):
Expand Down
2 changes: 2 additions & 0 deletions toolconfig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

sdgo_data_path = "/users/redsunschan/Documents/sdgo-data/"

0 comments on commit 44bf5a3

Please sign in to comment.