Commit graph

442 commits

Author SHA1 Message Date
Scott Knauert
8ea4bb4f53 Two more bugfixes thanks to Valgrind. Free string returned from gtk_combo_box_get_active_text, more correctly hanle RCS pthread. Fixed possible seg fault in filefrompath (although there still seems to be a leak somewhere here). 2008-06-30 17:44:45 +00:00
Scott Knauert
28682c4e3d Bugfixes thanks to Valgrind. Two using strcpy with source and destination overlay, i.e. strcpy(p,p+1). Three writing %X int to byte memory space. 2008-06-30 16:18:11 +00:00
Scott Knauert
a15ed3a458 Two memory bugs found with valgrind (not freeing 7zip db and having an if(buffer[counter]) for possible unitialized values of buffer). 2008-06-30 13:10:16 +00:00
Scott Knauert
685f42a28e Rough 7zip support. 2008-06-30 01:13:04 +00:00
Richard Goedeken
5d3f679afc dont remove the newlines at the end of source files - the compiler complains 2008-06-27 12:26:40 +00:00
Scott Knauert
53bef26d5a Multifile zip support. 2008-06-27 10:59:33 +00:00
Scott Knauert
9bfee62452 Modularized cache entry filling to function fill_entry(), this will allow looping over roms inside an archive. 2008-06-27 10:09:39 +00:00
Scott Knauert
e76c5e94e6 Readded emulation started message, switched rcs messages over to unified messaging system. 2008-06-27 06:12:33 +00:00
Scott Knauert
d0d198131f Reverted a poor formating choice change. Fixed case of referenced MD5 or CRC but NULL goodname (would cause seg fault). Technically this should never happen but can if .ini is corrupt. 2008-06-26 21:10:22 +00:00
Scott Knauert
990d14f8fc Changed open_rom() API. Updated its use in main and the Gtk GUI accordingly. Removed Gtk GUI title change to previous - rom internal name when loading via the file chooser since its silly and we don't do it when loading roms other ways. Moved open_rom() and close_rom() to rom.c and cleaned up the merged open_rom()/rom_read() function consolidating code, fixing a seg fault when the .ini couldn't assign a goodname to the loading rom. 2008-06-26 21:02:53 +00:00
Richard Goedeken
65de6b5d79 fixed OSD crash bug after running a game, disabling OSD, then running another game 2008-06-26 20:01:33 +00:00
Richard Goedeken
4bf03541d0 A few small changes to the new messaging code: dont use newlines in message strings, print to console even if gui is enabled, OSD pause message should be in center, print config/install dir info message to console. Small bugfix in gtk gui statusbar variable-arg code 2008-06-26 02:57:21 +00:00
Richard Goedeken
eaa7093f42 reverted commit 677, which introduced a bug which causes very bad things to happen if you run the same game twice. I suspect this is related to the g_MemHasBeenBSwapped mechanism which was removed in this commit, but there were too many changes to pinpoint the exact cause 2008-06-26 01:10:56 +00:00
Scott Knauert
d607893707 Tied rcs messages with new main_messaging system. Fixed longstanding rcs Gtk GUI bug (cannot load rom via play button), added multifile zip support, cleaned up rom loading functions. 2008-06-25 19:48:49 +00:00
Scott Knauert
059fcd3989 Fixed inability to configure plugins in GUI due to call order in main() from last commit. 2008-06-23 13:46:29 +00:00
Scott Knauert
b39789413d Minor changes to how GUI=NONE is built, mainly to strip out unneeded RCS code. Also since info_message is not needed (and ideally its friends will be phased out too) removed that and the no-op gui functions in guifuncs.c since its confusing and hacky when working in main. 2008-06-23 11:15:04 +00:00
Scott Knauert
b2c2462587 Integrated 2 icons out of 4 icons into theme which I missed, deleted 2 extra unused icons. We now actually make use of the config integration with MainWindowWidth/Height. Many Gtk GUI statusbar improvements. Implemented a unified console/GUI/OSB main_message function as per Richards suggestions. This is a little rough, I'd like suggestions to improve it and include the confirm message code. 2008-06-23 05:32:45 +00:00
Richard Goedeken
ebb6fb2ed4 added function prototype for strnstrip to util.h. This was causing a crash on 64-bit machines 2008-06-23 03:42:45 +00:00
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
Richard Goedeken
9cda3e9d69 dont launch rom cache thread when emulator is in nogui mode. Fixed null pointer access in rom.c 2008-06-22 04:21:55 +00:00
Scott Knauert
dccd3a3041 Sorry for the commit SPAMing... 2008-06-21 03:44:34 +00:00
Scott Knauert
4eaed381a6 Simpler fix instead of previous commit. 2008-06-21 03:42:18 +00:00
Scott Knauert
6ad02b8049 Neater version strings. 2008-06-21 03:39:03 +00:00
Scott Knauert
35046d1519 LZMA support. 2008-06-21 03:25:10 +00:00
Richard Goedeken
4b96690016 a little refactoring so that release builds will display plain version numbers with no -development or -rxxxx. 2008-06-21 01:50:11 +00:00
Scott Knauert
8eb672f7d4 Moved mupen64plus.ini to installdir since its not user edittable. 2008-06-20 08:12:30 +00:00
Jesse Dean
59a83f1030 Added version number to information displayed on stdout 2008-06-20 08:07:20 +00:00
Scott Knauert
e05e7e8078 More properly setup empty entry and default database entries to deal with dynamic allocation. Fixes seg faults when using older or improperly formatted .ini. Might fix some of the semirandom seg faults some users were experiencing. Remove some old debugging code. 2008-06-20 07:09:37 +00:00
Jesse Dean
a837b799d8 Added to version string the SVN revision, branch and a hash of the 'svn diff' if that diff is
not empty
2008-06-20 06:42:56 +00:00
Scott Knauert
703157916d Made gzip and bzip2 decompression 50-100% faster. 2008-06-20 05:33:11 +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
Richard Goedeken
62da9e3122 refactored the recent speed/pause/advance changes to be a bit more object oriented. Instead of making the local variables global and spreading the code around in the files, write new global functions which manipulate the local variables and can be called from other places. This also decreases source code size slightly 2008-06-19 02:13:26 +00:00
Jesse Dean
ec94be6322 Added speedup, slowdown, pause and frame advance to LIRC support 2008-06-18 18:52:17 +00:00
Richard Goedeken
c0853c464b fix LIRC build to integrate w/ new screenshot mechanism; some refactoring 2008-06-18 01:56:30 +00:00
Richard Goedeken
18a6042d03 another couple of memory leak fixes from Tub, in main/config.c 2008-06-17 19:06:30 +00:00
Richard Goedeken
c1de297dd3 fix from Tub for free() bug in main/util.c/list_delete() 2008-06-17 14:19:23 +00:00
Richard Goedeken
8ec163dcaf Moved new minzip files from compression/zip to main/zip (too many folders in root), removed old unzip.* and ioapi.* files in main 2008-06-17 03:22:17 +00:00
Scott Knauert
4d6691b363 Updated zip decompression library to 1.01e from 0.18. 2008-06-16 01:09:51 +00:00
Richard Goedeken
c624419312 Updated version number on trunk for 1.4 release 2008-06-15 03:03:14 +00:00
Richard Goedeken
8355b89053 put some sanity back into the save slot numbering scheme 2008-06-15 02:54:01 +00:00
Richard Goedeken
15547b5f96 Updated rice_video, kde4 gui, and jttl_audio to take version numbers from main/version.h. 2008-06-14 21:53:20 +00:00
Scott Knauert
3938f7024d Added a toggle for the Gtk GUI which turns OSD on or off without restarting. Documented --noosd flag. Integrated with config file. Removed old Gtk GUI config defaults from mupen64plus.conf which are no longer used (and haven't been since ~r420). Config overridden on startup by commandline flag so no loss of function for nogui users. 2008-06-14 04:15:17 +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
e0d97e7dfe Build mupen64plus instead of mupen64plus_dbg when DBG=1 to avoid install failure; do update_breakpoints() at end of init_breakpoints() in main/gui_gtk/debugger/breakpoints.c to populate list with previously set breakpoints 2008-06-11 13:33:45 +00:00
Richard Goedeken
38e92c3a76 Merged r0286-debugger branch into trunk 2008-06-06 18:25:59 +00:00
Richard Goedeken
44738c78b2 Removed NoAudioDelay core option to resolve issue #48. The Mupen64 v0.5 readme.pdf states that this option is not needed for Mupen64 v0.5, so I believe that it is unnecessary and can be removed 2008-06-03 03:43:00 +00:00
Richard Goedeken
88de0f7f80 bugfixes in OSD: no screenshots when OSD was disabled, adding new messages to OSD list even when OSD was disabled 2008-05-30 04:17:46 +00:00