Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, sys
- names = {
- 'opening.bns': '00 - Disc Channel Theme.bns',
- '01_BGM_TITLE.brstm': '01 - Title Screen.brstm',
- '01_ME_SAVE.brstm': '02 - Save Fanfare.brstm',
- '03_BGM_BANNER.brstm': '03 - Banner.brstm',
- '03_ME_HOLIDAY.brstm': '04 - Take-a-break Square.brstm',
- '04_BGM_SAVELOAD.brstm': '05 - File Selection.brstm',
- '04_ME_LEVELUP_M.brstm': '06 - Promotion (Mario Version).brstm',
- '05_BGM_MENU.brstm': '07 - Main Menu.brstm',
- '05_ME_LEVELUP_D.brstm': '08 - Promotion (Dragon Quest Version).brstm',
- '06_BGM_WIFI.brstm': '09 - Nintendo Wi-Fi Connection.brstm',
- '06_ME_CURSE.brstm': '10 - Cursed Card!.brstm',
- '07_BGM_ENDING_M.brstm': '11 - Ending (Mario Version).brstm',
- '07_ME_MONOPOLY.brstm': '12 - Total Domination!.brstm',
- '08_BGM_ENDING_D.brstm': '13 - Ending (Dragon Quest Version).brstm',
- '08_ME_OJAMA_COME.brstm': '14 - Cameo Adventure!.brstm',
- '09_BGM_ORDER.brstm': '15 - Order Selection.brstm',
- '09_ME_OJAMA_BYE.brstm': '16 - Goodbye, Cameo!.brstm',
- '10_BGM_WINNER_M.brstm': '17 - Winner! (Mario Version).brstm',
- '10_ME_5_BUY.brstm': '18 - Forced Buyout.brstm',
- '11_BGM_WINNER_D.brstm': '19 - Winner! (Dragon Quest Version).brstm',
- '11_ME_BANKRUPTCY.brstm': '20 - Bankrupt!.brstm',
- '12_BGM_CHANCECARD.brstm': '21 - Venture Card Selection.brstm',
- '12_ME_ITEM_GET.brstm': '22 - Got Item!.brstm',
- '13_BGM_STOCK.brstm': '23 - Stock Purchase Menu.brstm',
- '13_ME_ATARI_M.brstm': '24 - Round the Blocks - Winner! (Mario Version).brstm',
- '14_BGM_AUCTION.brstm': '25 - Auction.brstm',
- '14_ME_OHATARI_M.brstm': '26 - Round the Blocks - BIG WINNER! (Mario Version).brstm',
- '15_BGM_CASINO_SLOT_M.brstm': '27 - Round the Blocks (Mario Version).brstm',
- '15_ME_ATARI_D.brstm': '28 - Round the Blocks - Winner! (Dragon Quest Version).brstm',
- '16_BGM_CASINO_SLOT_D.brstm': '29 - Round the Blocks (Dragon Quest Version).brstm',
- '16_ME_OHATARI_D.brstm': '30 - Round the Blocks - BIG WINNER! (Dragon Quest Version).brstm',
- '17_BGM_CASINO_BLOCK.brstm': '31 - Memory Block.brstm',
- '17_ME_RACE_START.brstm': '32 - Slurpodrome - Race Start Fanfare.brstm',
- '19_BGM_CASINO_RACE.brstm': '33 - Slurpodrome - Race in Progress.brstm',
- '19_ME_OP_FIREWORKS.brstm': '34 - Opening (Fireworks).brstm',
- '20_BGM_MAP_YOSHI.brstm': '35 - Yoshi\'s Island.brstm',
- '20_ME_OP_LIGHT_BUBBLES.brstm': '36 - Opening (Bubbles).brstm',
- '21_BGM_MAP_CIRCUIT.brstm': '37 - Mario Circuit.brstm',
- '22_BGM_MAP_PEACH.brstm': '38 - Peach\'s Castle.brstm',
- '23_BGM_MAP_STADIUM.brstm': '39 - Mario Stadium.brstm',
- '24_BGM_MAP_DOLPIC.brstm': '40 - Delfino Plaza.brstm',
- '25_BGM_MAP_SMB.brstm': '41 - Super Mario Bros..brstm',
- '26_BGM_MAP_KOOPA.brstm': '42 - Bowser\'s Castle.brstm',
- '27_BGM_MAP_STARSHIP.brstm': '43 - Starship Mario.brstm',
- '28_BGM_MAP_EGG.brstm': '44 - Good Egg Galaxy.brstm',
- '29_BGM_MAP_TRODAIN.brstm': '45 - Castle Trodain.brstm',
- '30_BGM_MAP_GHOSTSHIP.brstm': '46 - Ghost Ship.brstm',
- '31_BGM_MAP_MAJINZOU.brstm': '47 - Colossus.brstm',
- '32_BGM_MAP_SINOKAZAN.brstm': '48 - Mt. Magmageddon.brstm',
- '33_BGM_MAP_SLABACCA.brstm': '49 - Slimenia.brstm',
- '34_BGM_MAP_KANDATA.brstm': '50 - Robin Hood Ruins.brstm',
- '35_BGM_MAP_ALEFGARD.brstm': '51 - Alefgard.brstm',
- '36_BGM_MAP_DHAMA.brstm': '52 - Alltrades Abbey.brstm',
- '37_BGM_MAP_ANGEL.brstm': '53 - The Observatory.brstm',
- '38_BGM_GOALPROP_M.brstm': '54 - Target Amount Reached! (Mario Version).brstm',
- '39_BGM_GOALPROP_D.brstm': '55 - Target Amount Reached! (Dragon Quest Version).brstm',
- 'BGM_010.brstm': 'Unused - BGM 10.brstm',
- 'BGM_033.brstm': 'Unused - BGM 33.brstm'
- }
- def print_usage():
- print 'Usage: python {0} (original|detailed)'.format(sys.argv[0])
- def main():
- args = sys.argv[1:]
- if len(args) != 1:
- print_usage()
- return
- mode = args[0].lower()
- if mode != 'original' and mode != 'detailed':
- print_usage()
- return
- #Rename the files
- if mode == 'detailed':
- for name in names:
- old_name = name
- new_name = names[name]
- os.rename(old_name, new_name)
- else:
- for name in names:
- current_name = names[name]
- original_name = name
- os.rename(current_name, original_name)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement