Skip to content

Commit

Permalink
Fixed Convert.py
Browse files Browse the repository at this point in the history
Hadn't updated it after all the changes.
  • Loading branch information
ValadAmoleo committed Oct 8, 2020
1 parent 9aeb892 commit 989658d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
if os.path.exists(extractedFolder) == False :
extract.extract(extractedFolder,"Bundle/")
tidy.tidy(extractedFolder)
split.begin_convert(extractedFolder,"roms",None,"sf30th")
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")
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")
split.begin_convert(extractedFolder,"roms",None,"samsho", None, False)
else :
print("Can't determine what you're trying to convert. Please proceed manually.")
7 changes: 5 additions & 2 deletions split.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def get_games():
all_games.append(snk40th_powjpnes)

samsho_samsho = Game("Samurai Shodown", conversion_type_samuraishowdowncollection, "Main", "samsho")
samsho_samsho3.compatibility.extend(["FB Neo", "MAME-2008", "MAME-2009", "MAME-2010", "MAME-2011", "MAME-2012", "MAME-2013", "MAME-2014", "MAME-2015", "MAME-2016", "MAME-2017", "MAME-2018", "MAME-2019", "MAME-2020"])
samsho_samsho.compatibility.extend(["FB Neo", "MAME-2008", "MAME-2009", "MAME-2010", "MAME-2011", "MAME-2012", "MAME-2013", "MAME-2014", "MAME-2015", "MAME-2016", "MAME-2017", "MAME-2018", "MAME-2019", "MAME-2020"])
samsho_samsho.files.append(RenameGameFileOffset(samsho_samsho.rom_name +".cslot1_audiocpu", "045-m1.m1", (192 * 1024) - (128 * 1024)))
samsho_samsho.files.append(RenameGameFile(samsho_samsho.rom_name +".cslot1_fixed", "045-s1.s1"))
samsho_samsho.files.append(SplitGameFile(samsho_samsho.rom_name +".cslot1_ymsnd", ["045-v1.v1", "045-v2.v2"], 2097152))
Expand Down Expand Up @@ -771,7 +771,7 @@ def get_games():
all_games.append(samsho_samsho3)

samsho_samsho4 = Game("Samurai Shodown IV: Amakusa's Revenge", conversion_type_samuraishowdowncollection, "Main", "samsho4")
samsho_samsho3.compatibility.extend(["FB Neo", "MAME-2008", "MAME-2009", "MAME-2010", "MAME-2011", "MAME-2012", "MAME-2013", "MAME-2014", "MAME-2015", "MAME-2016", "MAME-2017", "MAME-2018", "MAME-2019", "MAME-2020"])
samsho_samsho4.compatibility.extend(["FB Neo", "MAME-2008", "MAME-2009", "MAME-2010", "MAME-2011", "MAME-2012", "MAME-2013", "MAME-2014", "MAME-2015", "MAME-2016", "MAME-2017", "MAME-2018", "MAME-2019", "MAME-2020"])
samsho_samsho4.files.append(RenameGameFileOffset(samsho_samsho4.rom_name +".cslot1_audiocpu", "222-m1.m1", int("0x10000", 16)))
samsho_samsho4.files.append(RenameGameFile(samsho_samsho4.rom_name +".cslot1_fixed", "222-s1.s1"))
samsho_samsho4.files.append(SplitGameFile(samsho_samsho4.rom_name +".cslot1_ymsnd", ["222-v1.v1", "222-v2.v2"], int(0x400000)))
Expand Down Expand Up @@ -1106,6 +1106,9 @@ def process_game_list(root_dir, game_list, rom_dir, overwrite):
rm_dir(rom_dir+'/'+game.rom_name)

def begin_convert(root_dir, rom_dir, rom_name, conversion_type, all_games, overwrite):
if all_games == None:
all_games = get_games()

#create rom_dir if missing
if not os.path.exists(rom_dir):
os.mkdir(rom_dir)
Expand Down

0 comments on commit 989658d

Please sign in to comment.