From 19c976aa0bdc75a6b128bf2330e65159976987d0 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Sat, 7 Jun 2008 22:06:12 +0000 Subject: [PATCH] New GUI options for soundq and soundrate --- gfceu | 28 ++++++++- gfceu.glade | 176 ++++++++++++++++++++++++++-------------------------- 2 files changed, 114 insertions(+), 90 deletions(-) diff --git a/gfceu b/gfceu index 848d735f..6391476b 100644 --- a/gfceu +++ b/gfceu @@ -109,8 +109,16 @@ except ImportError: # GFCEU Functions class game_options: + # sound sound_check = True + soundq_check = True + soundrate_entry = 11000 + + # video fullscreen_check = False + xscale_spin = 2 + yscale_spin = 2 + bpp_combo = 32 extra_entry = '' romfile = '' opengl_check = False @@ -208,8 +216,13 @@ def set_options(): """ global xml options.romfile = widgets['rom_entry'].get_text() - options.sound_check = widgets['sound_check'].get_active() + # sound + options.sound_check = widgets['sound_check'].get_active() + options.soundq_check = widgets['soundq_check'].get_active() + options.soundrate_entry = widgets['soundrate_entry'].get_text() + + # video options.fullscreen_check = widgets['fullscreen_check'].get_active() options.opengl_check = widgets['opengl_check'].get_active() @@ -223,6 +236,7 @@ def set_options(): options.join_pass = widgets['join_pass'].get_text() options.host_port = widgets['host_port'].get_value() options.host_pass = widgets['host_pass'].get_text() + def launch(passed, local=False): @@ -233,6 +247,16 @@ def launch(passed, local=False): sound = '--sound 1 ' else: sound = '--sound 0 ' + + if options.soundq_check: + soundq = '--soundq 1 ' + else: + soundq = '--soundq 0 ' + + if options.soundrate_entry: + soundrate = '--soundrate ' + options.soundrate_entry + ' ' + else: + soundrate = ' ' if options.fullscreen_check: fullscreen = '--fullscreen 1 ' @@ -266,7 +290,7 @@ def launch(passed, local=False): else: opengl = '--opengl 0 ' - command = fceux_binary +' '+ sound + fullscreen +\ + command = fceux_binary +' '+ sound + soundq + soundrate + fullscreen +\ network + opengl + options.extra_entry + ' '+ passed gfceu_message('Command: ' + command) diff --git a/gfceu.glade b/gfceu.glade index d77b0d41..a5c118ad 100644 --- a/gfceu.glade +++ b/gfceu.glade @@ -124,30 +124,17 @@ 5 5 - + True True - Gamepad _1 + Gamepad _3 True 0 - - - - - - True - True - Gamepad _2 - True - 0 - - - - 1 - 2 + 1 + 2 @@ -169,17 +156,30 @@ - + True True - Gamepad _3 + Gamepad _2 + True + 0 + + + + 1 + 2 + + + + + + True + True + Gamepad _1 True 0 - 1 - 2 @@ -272,7 +272,7 @@ - + True True 1 1 10 0.5 2 2 @@ -303,10 +303,10 @@ - + True True - 1 1 10 0.5 1 10 + 2 1 10 0.5 1 10 True GTK_UPDATE_IF_VALID @@ -335,7 +335,7 @@ - + True 3 8 @@ -519,7 +519,7 @@ Invalid options may cause GFCE Ultra to perform incorrectly. - + True True 11000 @@ -592,26 +592,15 @@ Invalid options may cause GFCE Ultra to perform incorrectly. 5 5 - + True - 0 - Port: - - - GTK_FILL - - - - - - True - 0 - Password: + True + 1 + 2 1 2 - GTK_FILL @@ -629,15 +618,26 @@ Invalid options may cause GFCE Ultra to perform incorrectly. - + True - True + 0 + Password: - 1 - 2 1 2 + GTK_FILL + + + + + + True + 0 + Port: + + + GTK_FILL @@ -688,13 +688,54 @@ Invalid options may cause GFCE Ultra to perform incorrectly. 3 5 - + True True + 4046 1 65536 1 10 10 + 1 1 2 + 1 + 2 + + + + + + True + 0 + Password: + + + 2 + 3 + GTK_FILL + + + + + + True + 0 + Server Port: + + + 1 + 2 + GTK_FILL + + + + + + True + 0 + Server Address: + + + GTK_FILL @@ -714,54 +755,13 @@ Invalid options may cause GFCE Ultra to perform incorrectly. - - True - 0 - Server Address: - - - GTK_FILL - - - - - - True - 0 - Server Port: - - - 1 - 2 - GTK_FILL - - - - - - True - 0 - Password: - - - 2 - 3 - GTK_FILL - - - - - + True True - 4046 1 65536 1 10 10 - 1 1 2 - 1 - 2