Commit graph

94 commits

Author SHA1 Message Date
Scott Knauert
ec306a5b63 Fixed eeprom issue crash for nogui version due to database RCS dependence. Set default savestate to 0. Savestate now persistent via config integration. Integrated sort column and method with config. Minor speedup to sorting. 2008-06-22 16:20:06 +00:00
Scott Knauert
91efd5b04b Added basic view menu (Toolbar, Filter, Statusbar) fixing Issue 88, also integrated view menu into config system. Haven't integrated the Debugger or VCR menus into it yet, would like to discuss on the best way to do so. Made the rom properties dialogue look nicer and be able to fit on 800x600 screens. Integrated rombrowser columns into config system so one can set which columns are viewable and those selected columns will show up the same way when the emulator is restarted. Ideally we'd also track the order of the columns, but Gtk does not seem to be able to do that. Also changed the way column names are provided as to ease future translation efforts. 2008-06-22 12:19:10 +00:00
Scott Knauert
c6e067fbd2 Added bzip2 support, readded unstream fixes from minizip library and redeleted MupenIniApi (cleanup from merge). 2008-06-19 07:40:49 +00:00
Richard Goedeken
9eebbdb55b Rom Cache System has landed in the trunk. 2008-06-19 04:29:35 +00:00
Scott Knauert
02cc55fd0c Fixed gtk bug discovered by compiling against gtk 2.12.10-2. 2008-06-13 02:00:41 +00:00
Richard Goedeken
ca505dce6d Fixed a whole bunch of warnings in the debugger. Most were 64-bit issues 2008-06-12 18:23:51 +00:00
Richard Goedeken
38e92c3a76 Merged r0286-debugger branch into trunk 2008-06-06 18:25:59 +00:00
Scott Knauert
b865e7ae9a Merged Gtk toolbar style and spacing bugfix from rcs branch upon developer request. 2008-05-21 19:57:30 +00:00
Scott Knauert
eb8755b000 Overhaul of rom handling functions.
- Calculating MD5 in Gtk GUI rom properties dialogue now works.
- Gtk GUI open rom filter now  has .z64, .v64, and .n64 extensions.
- Rom file decompression handled at single point (as opposed to 
2-3) to prevent duplication of code and make adding 7zip support easier.
- General code cleanup, renaming / comments, etc.

Testing done:
- Tested .zipped (singe and multifile archives), .gzipped, and 
uncompressed .z64 amd .v64 roms.
2008-05-11 08:20:37 +00:00
Scott Knauert
1eff426fe1 Savestate overhaul complete, messages when saving or loading, size_t / int type abuse fixed, general cleanup. 2008-05-08 00:48:13 +00:00
Scott Knauert
bef4ea9b63 - Further cleanup of savestate code.
- Now traps slot changes from core.
2008-05-07 16:50:19 +00:00
Scott Knauert
66620a6331 Changes:
- Cleaned up Gtk GUI emulation menu.
- Added accelerator group for non-meta accelerators so the don't  
interfere with entries (like the filter)
- Added savestate_get_filename() helper function. 
- Changing the savestate in the Gtk GUI is relayed to the user via the 
statusbar.
2008-05-07 09:22:29 +00:00
Jesse Dean
4a0ae5000f Resubmitting fixes to debugger. 2008-04-30 23:34:47 +00:00
James Hood
a6199536e4 Made the following changes to gtk gui menu for save slots (see issue 35 for details):
-Renamed menu to "Current save slot"
 -When save slot menu is opened, gui checks the current save slot and makes sure the selected slot in the menu matches it.
 -Removed "Default" slot option and replaced with slot 0. Slot 0 is the default on mupen64plus startup.
2008-04-25 21:38:36 +00:00
Richard Goedeken
47623cc7e6 reverted changes in 287 because debugger has a branch 2008-04-23 12:29:16 +00:00
Jesse Dean
e2fb5b7dd2 Initial cleanup of debugger & gtk gui code to allow use of DBG=1 flag. Code now compiles, and debugger shows up,
although at this time it does little else, and does prevent emulation from running properly.  --Jes
2008-04-23 11:25:24 +00:00
James Hood
16a274adb6 -Rewrote cheat dialog to handle add/edit and enable of cheats all in one dialog.
-Removed Cheat menu and replaced it with "Cheats..." menu item in the Options menu.
-Modified alert_message and confirm_message so they handle line wrap of the message internally, so now it's no longer necessary to insert newline chars into strings passed to alert_message and confirm_message.
-added list_find_node utility function to util.c.
-added utility functions to create/delete cheat structures for use by the gui.
2008-04-23 06:46:47 +00:00
James Hood
605a4a02b1 Changed pause/continue keyboard shortcut to Pause/Break key because the previous shortcut 'p' was conflicting with the new rom filter. 2008-04-22 20:49:45 +00:00
Scott Knauert
c456b9bfc1 Fixed a collision from variable rename. 2008-04-22 13:57:05 +00:00
Scott Knauert
cd92cf9f9a Gtk GUI filter and improved sorting functions. 2008-04-22 13:10:42 +00:00
Scott Knauert
e984cab71a Removed second status bar which was not used (even in 0.5)
as it caused two Gtk resize handles to be drawn on the 
main window. Left in framework for multiple status bars
in case we actually want to use this in the future.
2008-04-20 22:51:23 +00:00
James Hood
d37739f761 Fixed segfault introduced by r244. Segfault would happen if you start mupen64plus, press the play button without selecting any roms in the rombrowser. When the dialog pops up asking if you want to load a rom, select yes and select a rom via the file chooser and click open. 2008-04-20 15:24:54 +00:00
Scott Knauert
f272302d26 Fixed Issue 6, if a ROM is selected in the ROM browser and
the 'play' is pressed, emulation will start if mupen can 
load the ROM.
2008-04-20 09:28:49 +00:00
James Hood
64fcb851fe -Moved ability for start emulation to also continue emulation (committed in r237) to startEmulation function of main/main.c, so other gui's don't have to re-implement it.
-Also removed gui code that tries to change the name of the pause toolbar item to either "Pause" or "Resume". I think most users understand that the pause key will also unpause. Plus the name can get out of sync due to the many alternative ways to pause/continue emulation (lirc, keyboard shortcut, mapped controller button).
2008-04-19 23:32:34 +00:00
Scott Knauert
f3a922e71f Adds the ability for GUI start to also continue emulation. This minor GUI fix
makes our Play/Pause/Stop follow convention.
2008-04-19 22:02:23 +00:00
Richard Goedeken
cbc32cb208 Removed unused LimitFPS option 2008-04-17 15:27:04 +00:00
James Hood
49aad76ff0 Implemented accelerator keys in the gtk gui. These are keyboard shortcuts that cause certain menu items to be activated, e.g., Alt+Return activates the fullscreen menu item. This also adds the accelerator keys to the menu items so the user can see the shortcut for that function. 2008-04-17 06:38:26 +00:00
James Hood
5a27989463 -Fixed menu "accelerator" problem. The correct term to use for the underlined letter in the file menu items is "mnemonic". Anyway, they work now.
-Minor change to man page.
2008-04-17 06:00:23 +00:00
James Hood
f6d65f0ab6 -Added multi-threading support to gtk gui. This allows info_message, confirm_message, alert_message functions to safely be called from any thread.
-I also changed the name of gui_parseArgs to gui_init, which will affect the kde4 gui code slightly when it's merged back into trunk.
2008-04-15 23:38:29 +00:00
James Hood
2baec5c8eb Added cheat menu and implemented dialog to enable/disable cheats during gameplay. This dialog does not allow you to add/edit cheats. That's coming soon. 2008-04-14 19:32:07 +00:00
Richard Goedeken
9f10d202be Reverted all changes on trunk from rev 189. The reason why I made a branch was so that you would not commit these things on the trunk. 2008-04-14 11:29:15 +00:00
John Chadwick
ec8445cc55 Attempt 3 at commiting the patches.
THIS PATCH IS PRELIMINARY AND DOES NOT WORK.
It also needs some major cleanup and most plugins are not yet compiling. Going to need any help I can get here, but I'll be working on it.
2008-04-14 04:37:57 +00:00
James Hood
fa74232ba2 -Replaced custom directory browser in (appeared when you clicked the "Add" button in the "Rom Browser" tab of the config dialog) with a gtk file chooser. Was able to remove dirbrowser.[ch] because of this.
-Removed "Remove All" button from rom browser config tab. There wasn't a stock gtk button for remove all and it didn't really seem necessary since you can select all of the directories and then click the "Remove" button.
-Removed unnecessary callback functions for about dialog, made about dialog not resizable.
2008-04-08 07:32:55 +00:00
James Hood
9de4a1eb8e -GTK_GUI: fixed gtk warnings given on gui reload, e.g., when language is changed. Warnings were introduced by new hotkeys tab in config dialog. 2008-04-08 06:16:53 +00:00
James Hood
9920114bc8 -GTK_GUI: change buttons like ok and cancel to use gtk stock buttons.
-GTK_GUI: reorder ok/cancel buttons on dialogs to be consistent with gtk.
-minor whitespace changes.
2008-04-07 23:16:37 +00:00
James Hood
f1e86b8f51 -Added gzip format to open rom file filter.
-Change "clear" button to "delete" in set controller special function dialog. This was because clear and cancel buttons had the same accelerator 'c'.
2008-04-07 22:17:15 +00:00
Richard Goedeken
5f32c254fe Converted all tabs to 4-spaces, and all line endings to LF-only 2008-04-06 14:55:37 +00:00
John Chadwick
c3c53540eb Adds "FPS Limiter" Option, enabled by default. Some things need to have this off to operate properly. 2008-04-05 19:26:05 +00:00
James Hood
af3b85e37f -Fixed the rest of the places where deprecated GtkFileSelection widget was being used. Converted to GtkFileChooserDialog.
-Added file filters to load dialogs for a more polished file chooser.
-Removed chdir to the config dir (~/.mupen64plus) from setPaths function. This was a hack to get around the fact that plugins were looking in the current working dir for config files. I've since fixed that issue, so the chdir is no longer necessary. Plus, the chdir was causing the file chooser dialogs to default to ~/.mupen64plus, which could be confusing to a user.
2008-04-01 20:34:53 +00:00
James Hood
e8551a2754 Replaced deprecated GtkFileSelection widget with GtkFileChooserDialog widget. 2008-03-31 07:03:24 +00:00
John Chadwick
28fcce941d * Fixed some compilation problems (defines PATH_MAX to 1024 in a couple files, if they aren't already defined)
* More GUI work ("Toolbar Style" now works)
2008-03-27 20:29:30 +00:00
James Hood
ed26e44479 Removed gui_load_rom call from guifuncs.h. It's not a necessary call for common code. 2008-03-26 23:16:51 +00:00
James Hood
74a6a52a02 -Fixed LIRC support (it was broken during gui/nogui merge).
-Separated LIRC functions into new lirc.c file so they can be used in gui or nogui build.
-Added pause/continue functionality to LIRC.
-Made it so LIRC commands work while emulation is paused.
-Added wiki page on how to setup LIRC for Mupen64Plus.
-Fixed minor bug with g_EmulationRunning (it was being set to 1 during stopEmulation).
2008-03-25 05:40:42 +00:00
Richard Goedeken
cf8b8ca208 Imported mupen64plus/trunk from mupen64-amd64/trunk/mupen64-64bit rev 254 2008-03-15 14:33:00 +00:00