forked from WydD/sf30ac-extractor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConvert.py
27 lines (25 loc) · 1.17 KB
/
Convert.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import extract
import tidy
import split
import sys
import os
extractedFolder = "extracted/"
directory = os.path.basename(os.path.dirname(os.path.realpath(__file__))).lower()
if "street" in directory and "30th" in directory :
print("You're trying to convert Street Fighter 30th Anniversary Edition")
if os.path.exists(extractedFolder) == False :
extract.extract(extractedFolder,"Bundle/")
tidy.tidy(extractedFolder)
split.begin_convert(extractedFolder,"roms",None,"sf30th", None, False)
elif "snk" in directory and "40th" in directory :
print("You're trying to convert SNK 40th Anniversary Collection")
if os.path.exists(extractedFolder) == False :
extract.extract(extractedFolder,"Bundle/")
split.begin_convert(extractedFolder,"roms",None,"snk40th", None, False)
elif "ss" in directory and "neogeo" in directory :
print("You're trying to convert Samurai Shodown Collection")
if os.path.exists(extractedFolder) == False :
extract.extract(extractedFolder,"Bundle/")
split.begin_convert(extractedFolder,"roms",None,"samsho", None, False)
else :
print("Can't determine what you're trying to convert. Please proceed manually.")