diff scripts/pytouhou @ 568:e7a4731a278b

Add a GTK+ main menu, mimicking the original EoSD one.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 01 Jul 2014 23:18:15 +0200
parents b2269b9c6119
children f0252cf111d8
line wrap: on
line diff
--- a/scripts/pytouhou
+++ b/scripts/pytouhou
@@ -48,6 +48,10 @@ logger.root.name = 'pytouhou'
 
 logger.info('Configuration loaded from: %s', ', '.join(options.paths))
 
+if not args.no_menu:
+    from pytouhou.menu import menu
+    menu(options, args)
+
 if args.game == 'EoSD':
     from pytouhou.games.eosd import EoSDCommon as Common, EoSDGame as Game