Skip to content

Commit

Permalink
+ sfx file extension name convertor
Browse files Browse the repository at this point in the history
  • Loading branch information
redsuns-chan committed Jul 24, 2022
1 parent 832c1ad commit bd0d61d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sdgo-sfx-extractor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# sdgo-sfx-extractor
# author: RedSuns Chan
# rename file extension to .wav

import os
from pathlib import Path
import shutil

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

def main():
print("sdgo sfx extractor")
Path(target_path).mkdir(parents=True, exist_ok=True)
file_list = os.listdir(sdgo_data_path + "sdrs")
for file_name in file_list:
if file_name.endswith(".zsd"):
file_name = file_name.replace(".zsd", "")
print("converting " + file_name + ".zsd >>>>> " + file_name + ".wav")
shutil.copyfile(sdgo_data_path + "sdrs/" + file_name + ".zsd", target_path + file_name + ".wav")

main()

0 comments on commit bd0d61d

Please sign in to comment.