From 1295e797e533241975e5bffedd2ab1ffd3771c48 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Sun, 8 Jun 2008 03:33:53 +0000 Subject: [PATCH] cleaned up sound options --- gfceu | 16 ++++++++++------ gfceu.glade | 4 +++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gfceu b/gfceu index 044de66e..4f5cd9ae 100644 --- a/gfceu +++ b/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) diff --git a/gfceu.glade b/gfceu.glade index a5c118ad..4c5013b8 100644 --- a/gfceu.glade +++ b/gfceu.glade @@ -275,7 +275,8 @@ True True - 1 1 10 0.5 2 2 + 2 1 10 0.5 1 10 + 1 True @@ -307,6 +308,7 @@ True True 2 1 10 0.5 1 10 + 1 True GTK_UPDATE_IF_VALID