diff --git a/gfceu b/gfceu index 7eb8ccd9..b27687fc 100644 --- a/gfceu +++ b/gfceu @@ -2,6 +2,7 @@ # gfceu - Graphical launcher for FCE Ultra. # Designed on Ubuntu, with platfrom independence in mind. version = "0.6.1svn" +title = "gfceux" # Copyright (C) 2006 Lukas Sabota ## """ @@ -40,7 +41,7 @@ def gfceu_message(message, use_gtk=False): messages. However, it can be used for important messages as well. If a GTK message_box is requried, the use_gtk flag can be enabled """ - print 'gfceu message: '+message + print title + ' message: '+message if use_gtk: msgbox = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_CLOSE) @@ -56,13 +57,13 @@ def gfceu_error(message, code, use_gtk=True, fatal=True): in the standard python language. One of these days... """ print '# # # #' - print 'gfceu ERROR code '+str(code)+':' + print title + ' ERROR code '+str(code)+':' print message print '# # # #' if use_gtk: msgbox = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_CLOSE) - msgbox.set_markup('gfceu ERROR Code '+str(code)+':\n'+message) + msgbox.set_markup(title + ' ERROR Code '+str(code)+':\n'+message) msgbox.run() msgbox.destroy() if fatal: @@ -225,7 +226,7 @@ def set_options(): def launch(passed, local=False): - global xml, options, fceu_server_binary, fceu_binary + global xml, options, fceu_server_binary, fceux_binary set_options() if options.sound_check: @@ -265,7 +266,7 @@ def launch(passed, local=False): else: opengl = '--opengl 0 ' - command = fceu_binary +' '+ sound + fullscreen +\ + command = fceux_binary +' '+ sound + fullscreen +\ network + opengl + options.extra_entry + ' '+ passed gfceu_message('Command: ' + command) @@ -484,10 +485,10 @@ class GladeHandlers: ############################################################################## # Globals options = None -appconfigdir = os.getenv('HOME') + '/.gfceu' -old_optionsfile = os.getenv('HOME')+'/.gfceu_options' +appconfigdir = os.getenv('HOME') + '/.'+ title +old_optionsfile = os.getenv('HOME')+'/.' + title + '_options' optionsfile = appconfigdir + 'gfceu_options.dat' -fceu_binary = None +fceux_binary = None fceu_server_binary = None #version is defined earlier in the code #have_vfs is defined earlier in the code @@ -521,14 +522,14 @@ if __name__ == '__main__': parser = OptionParser(version='%prog '+ version) parser.parse_args() - fceu_binary = find_binary('fceux') - if fceu_binary == None: + fceux_binary = find_binary('fceux') + if fceux_binary == None: gfceu_error('Could not find the fceu binary.\n\ Ensure that FCE Ultra is installed and in the $PATH.\n\ On Debian based systems (like Ubuntu), try the following command:\n\ sudo apt-get install fceu', 4, True) else: - gfceu_message('Using: '+fceu_binary) + gfceu_message('Using: '+fceux_binary) widgets = WidgetsWrapper() widgets['main_window'].show_all() diff --git a/gfceu.glade b/gfceu.glade index 98baed40..399c0144 100644 --- a/gfceu.glade +++ b/gfceu.glade @@ -67,9 +67,6 @@ False - - - @@ -258,6 +255,102 @@ 1 + + + True + + + True + X scale: + + + False + 5 + + + + + True + True + 1 1 10 0.5 2 2 + True + + + False + 1 + + + + + False + 2 + + + + + True + + + True + Y scale: + + + False + 5 + + + + + True + True + 1 1 10 0.5 1 10 + True + GTK_UPDATE_IF_VALID + + + False + 1 + + + + + False + 3 + + + + + True + + + True + Bits per pixel: + + + False + 5 + + + + + True + 3 + 8 +16 +32 + + + False + False + 1 + + + + + False + 4 + + True @@ -268,7 +361,7 @@ False False - 2 + 5 @@ -373,6 +466,31 @@ Invalid options may cause GFCE Ultra to perform incorrectly. False + + + True + True + Enable _Sound + True + 0 + True + True + + + 4 + + + + + True + Sound + + + tab + 4 + False + + True @@ -615,7 +733,7 @@ Invalid options may cause GFCE Ultra to perform incorrectly. - 4 + 5 @@ -624,31 +742,6 @@ Invalid options may cause GFCE Ultra to perform incorrectly. False Network - - tab - 4 - False - - - - - True - True - Enable _Sound - True - 0 - True - True - - - 5 - - - - - True - Sound - tab 5