Skip to content

Commit

Permalink
support cross drive execution
Browse files Browse the repository at this point in the history
  • Loading branch information
redsuns-chan committed Aug 4, 2022
1 parent a704023 commit f690921
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sdgo-texture-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import os
import pathlib

sdgo_data_path = "D:/Project/SDGO/data/"
sdgo_data_path = "G:/Games/SDGO_DEV/data_dev/"
target_path = sdgo_data_path + "txrs/decoded/"

def extract_texture(file_name):
f = open(sdgo_data_path + file_name, "rb")
file_size = os.path.getsize(sdgo_data_path + file_name)
f = open(sdgo_data_path + "txrs/" + file_name, "rb")
file_size = os.path.getsize(sdgo_data_path + "txrs/" + file_name)
found_type = ""
fhex = f.read(file_size).hex().upper()

Expand All @@ -33,8 +33,9 @@ def extract_texture(file_name):

def main():
print("sdgo texture extractor")
os.chdir(sdgo_data_path)
pathlib.Path(target_path).mkdir(parents=True, exist_ok=True)
file_list = os.listdir(sdgo_data_path)
file_list = os.listdir(sdgo_data_path + "txrs")
txr_count = 0
tga_count = 0
png_count = 0
Expand Down

0 comments on commit f690921

Please sign in to comment.