cleaned up sound options
This commit is contained in:
parent
3ecd31976e
commit
1295e797e5
16
gfceu
16
gfceu
|
@ -247,20 +247,24 @@ def launch(passed, local=False):
|
|||
global xml, options, fceu_server_binary, fceux_binary
|
||||
set_options()
|
||||
|
||||
sound_options = ''
|
||||
|
||||
if options.sound_check:
|
||||
sound = '--sound 1 '
|
||||
sound_options += '--sound 1 '
|
||||
else:
|
||||
sound = '--sound 0 '
|
||||
sound_options += '--sound 0 '
|
||||
|
||||
if options.soundq_check:
|
||||
soundq = '--soundq 1 '
|
||||
sound_options += '--soundq 1 '
|
||||
else:
|
||||
soundq = '--soundq 0 '
|
||||
sound_options += '--soundq 0 '
|
||||
|
||||
if options.soundrate_entry:
|
||||
soundrate = '--soundrate ' + options.soundrate_entry + ' '
|
||||
sound_options += '--soundrate ' + options.soundrate_entry + ' '
|
||||
else:
|
||||
soundrate = ' '
|
||||
|
||||
|
||||
|
||||
if options.fullscreen_check:
|
||||
fullscreen = '--fullscreen 1 '
|
||||
|
@ -294,7 +298,7 @@ def launch(passed, local=False):
|
|||
else:
|
||||
opengl = '--opengl 0 '
|
||||
|
||||
command = fceux_binary +' '+ sound + soundq + soundrate + fullscreen +\
|
||||
command = fceux_binary + ' ' + sound_options + fullscreen +\
|
||||
network + opengl + options.extra_entry + ' '+ passed
|
||||
gfceu_message('Command: ' + command)
|
||||
|
||||
|
|
|
@ -275,7 +275,8 @@
|
|||
<widget class="GtkSpinButton" id="xscale_spin">
|
||||
<property name="visible">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>
|
||||
</widget>
|
||||
<packing>
|
||||
|
@ -307,6 +308,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="adjustment">2 1 10 0.5 1 10</property>
|
||||
<property name="digits">1</property>
|
||||
<property name="numeric">True</property>
|
||||
<property name="update_policy">GTK_UPDATE_IF_VALID</property>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in New Issue