Super Mario 64 OpenGL port for PC. Mirror of https://github.com/sm64pc/sm64pc https://github.com/sm64pc/sm64pc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
893 B

  1. #!/usr/bin/env python3
  2. def add_custom_arguments(parser):
  3. group = parser.add_mutually_exclusive_group(required=False)
  4. group.add_argument('-j', dest='lang', action='store_const', const='jp',
  5. help="Set version to JP.")
  6. group.add_argument('-u', dest='lang', action='store_const', const='us',
  7. help="Set version to US.")
  8. group.add_argument('-e', dest='lang', action='store_const', const='eu',
  9. help="Set version to EU.")
  10. group.add_argument('-s', dest='lang', action='store_const', const='sh',
  11. help="Set version to SH.")
  12. def apply(config, args):
  13. lang = args.lang or 'us'
  14. config['mapfile'] = f'build/{lang}/sm64.{lang}.map'
  15. config['myimg'] = f'build/{lang}/sm64.{lang}.z64'
  16. config['baseimg'] = f'baserom.{lang}.z64'
  17. config['makeflags'] = [f'VERSION={lang}']
  18. config['source_directories'] = ['src', 'include']