cleaned up sound options

This commit is contained in:
punkrockguy318 2008-06-08 03:33:53 +00:00
parent 3ecd31976e
commit 1295e797e5
2 changed files with 13 additions and 7 deletions

16
gfceu
View File

@ -247,21 +247,25 @@ def launch(passed, local=False):
global xml, options, fceu_server_binary, fceux_binary global xml, options, fceu_server_binary, fceux_binary
set_options() set_options()
sound_options = ''
if options.sound_check: if options.sound_check:
sound = '--sound 1 ' sound_options += '--sound 1 '
else: else:
sound = '--sound 0 ' sound_options += '--sound 0 '
if options.soundq_check: if options.soundq_check:
soundq = '--soundq 1 ' sound_options += '--soundq 1 '
else: else:
soundq = '--soundq 0 ' sound_options += '--soundq 0 '
if options.soundrate_entry: if options.soundrate_entry:
soundrate = '--soundrate ' + options.soundrate_entry + ' ' sound_options += '--soundrate ' + options.soundrate_entry + ' '
else: else:
soundrate = ' ' soundrate = ' '
if options.fullscreen_check: if options.fullscreen_check:
fullscreen = '--fullscreen 1 ' fullscreen = '--fullscreen 1 '
else: else:
@ -294,7 +298,7 @@ def launch(passed, local=False):
else: else:
opengl = '--opengl 0 ' opengl = '--opengl 0 '
command = fceux_binary +' '+ sound + soundq + soundrate + fullscreen +\ command = fceux_binary + ' ' + sound_options + fullscreen +\
network + opengl + options.extra_entry + ' '+ passed network + opengl + options.extra_entry + ' '+ passed
gfceu_message('Command: ' + command) gfceu_message('Command: ' + command)

View File

@ -275,7 +275,8 @@
<widget class="GtkSpinButton" id="xscale_spin"> <widget class="GtkSpinButton" id="xscale_spin">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="adjustment">1 1 10 0.5 2 2</property> <property name="adjustment">2 1 10 0.5 1 10</property>
<property name="digits">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
</widget> </widget>
<packing> <packing>
@ -307,6 +308,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="adjustment">2 1 10 0.5 1 10</property> <property name="adjustment">2 1 10 0.5 1 10</property>
<property name="digits">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_IF_VALID</property> <property name="update_policy">GTK_UPDATE_IF_VALID</property>
</widget> </widget>