Commit graph

417 commits

Author SHA1 Message Date
Louai Al-Khanji
11b8ef45be Make data function have a single exit point again. 2008-10-12 23:09:08 +00:00
Louai Al-Khanji
72b498d391 Some trivial code style changes. 2008-10-12 23:02:11 +00:00
Scott Knauert
37c8e5c42b Fixes issue 154 (Qt4 GUI crashes if all ROMs removed). 2008-10-12 22:49:23 +00:00
Scott Knauert
1ba65b8a4d Add status support to rom loading function for .zipped roms. Should Fix issue 163. 2008-10-12 07:53:51 +00:00
Scott Knauert
eb24074f76 Fixes issue 162. Windows snprintf requires the NULL despite ANSI spec. Added general comment to issue 109. 2008-10-12 04:42:50 +00:00
Scott Knauert
596205c94f Fix issues 161. 2008-10-11 22:49:54 +00:00
Scott Knauert
5699d47fb4 Minor fixes for util.c. Possible fix for issue 162. 2008-10-11 22:29:47 +00:00
Scott Knauert
a8dfd0e785 License header changes for Debian inclusion (wrong FSF address). 2008-10-11 05:48:50 +00:00
Scott Knauert
347e32c7fc Should fix inability to detect zipped roms. Bug introduced when fixing -Wall warnings in unzip library. 2008-10-11 02:30:50 +00:00
Scott Knauert
777c6f9c1f Fix __LINE__ macro is of type %d no %c in fprintf error. Also implemented Qt4-like start / pause / stop button behavior in Gtk2 GUI. 2008-10-05 23:00:45 +00:00
Scott Knauert
ce19873672 More gui_message cleanup. 2008-10-05 22:44:51 +00:00
Scott Knauert
9c0cdf8b8e Going back to the older Gtk2 gui_message with a minor bug fix. 2008-10-05 22:37:39 +00:00
Louai Al-Khanji
573754f057 Fix up gui_message calls. Clean up gtk implementation. 2008-10-05 20:48:15 +00:00
Louai Al-Khanji
98d3f99fe0 Rework the gui state api a bit. Don't pass the enum through an unsigned
char. Changed the way the Qt4 ui handles things internally a bit.
Changed the gui_message to not use an unsigned char as well while I was
at it.
2008-10-05 15:18:59 +00:00
Scott Knauert
c53030d143 Minor Gtk toolbar tooltip fix. 2008-10-05 05:43:08 +00:00
Scott Knauert
663c3f2c13 Change how plugin combos are toggled in the Gtk GUI to update on state change. 2008-10-05 05:41:00 +00:00
Scott Knauert
008a65eaeb Primarily implementation of new GUI state API and associated Gtk2 and Qt4 implementations. Fixed one minor Gtk bug (unable to select large toolbar icons). Fixed a could of NO_GUI warnings. Changed romcache.h to not define RCS structures in NO_GUI mode (more optimized NO_GUI binary). Fixed some non-ANSI static code analysis "bugs" mainly function() -> function(void) in C declarations. Also some GPL header updates to the newest template. Sorry for the large commit. 2008-10-05 03:33:52 +00:00
Scott Knauert
acfef370c1 Fixed accidental rcs bug. Some new comments for rom.h and fixed Fullscreen crashing on the Qt4 GUI. 2008-10-02 21:15:17 +00:00
Richard Goedeken
0a1b86cf64 added ctype.h include for toupper()/tolower() functions 2008-09-29 20:04:18 +00:00
Richard Goedeken
210f946cae added newlines to the end of every source file which was missing one 2008-09-27 15:22:21 +00:00
Scott Knauert
a39df3aa94 Fix lack of newline breakage. Sorry about that, gcc 4.3 doesn't give those warnings even on -Wall. One -Wall fix, and remove hardcoded 1024 PATH_MAX to use limits.h. Also re-added rice hard gtk dependency. 2008-09-26 19:08:12 +00:00
Scott Knauert
83f614d45c Minor fixes, primarily to allow for compiling with -Wall, but also formatting and comments. A few corner case bugs found. 2008-09-25 21:46:06 +00:00
Scott Knauert
32a2ca13f9 A variety of Gtk GUI fixes. Some corner case bugs found by (and general cleanup to allow for) compiling with -Wall, also minor logic fix to improve UI and close issue 141. 2008-09-25 21:43:03 +00:00
Scott Knauert
61d4912ab9 Start of Rice GUI cleanup. Removed lack of non assembly byteswapping function fallback causing issues on non-x86 platforms. 2008-09-22 05:44:55 +00:00
Scott Knauert
fb4fb17f35 Save cache every X roms, fixed rebuiling from incomplete cache. snprintf with source and desination buffers the same not safe on all platforms, put back strncat code (fixes minor issue on OSX). 2008-09-21 19:47:27 +00:00
Scott Knauert
6cef67e666 Fixed rcs dirname() dependence, minor snprintf bug, moved ricevideo to default plugin list as it now compiles fine on OSX. 2008-09-18 00:15:40 +00:00
Louai Al-Khanji
38dbfe7813 Fix a few win32 things 2008-09-17 16:39:58 +00:00
Louai Al-Khanji
fd0464af60 Another attempt to fix compilation on windows 2008-09-17 16:32:05 +00:00
Louai Al-Khanji
8a48dfbfb4 Possibly fix compile errors on windows 2008-09-17 16:28:20 +00:00
Scott Knauert
b220e03ba7 Minor rcs default snprint bug fixed. 2008-09-16 12:30:26 +00:00
Scott Knauert
1bd211aa06 First stab at themable Gtk icons for plugins. Extended plugin API with EXPORT void CALL SetInstallDir(char* installDir) based on the config dir work we had done. Modified core to send the install dir. Modified Rice to accept (since glide64 and rice share the same dialog system and we want to remove the windows icons from glide64), checks for a Gtk icon theme and hook into the theme change (does do transient dialog icon changes like the core, yet). Feel free to revert or offer other suggestions as to how best handle this. 2008-09-12 05:46:45 +00:00
Scott Knauert
ba8a21e54f snprintf() / dirname() fix in romcache.c. Changed strncats to snprintfs to avoid possible lack of NULL termination. 2008-09-12 00:17:23 +00:00
Scott Knauert
32ea126717 Minor Gtk GUI fixes, pre.mk fixes for RSP Qt4 GUI. 2008-09-11 03:01:58 +00:00
Richard Goedeken
dc8c6e83ae new r4300 disassembler from ZZT32 2008-09-10 12:04:22 +00:00
Scott Knauert
b817627768 Code style changes for rcs thread. Minor Gtk GUI fixes, better handling of transient dialog icon themeing. 2008-09-09 18:28:53 +00:00
Scott Knauert
004980e813 Fixed a number of -Wall warnings, fixed memory leak which was due to freeing the variables giving seg fault previously. Fixed lack of deletion if rom is removed from filesystem durring rescan. 2008-09-09 12:18:29 +00:00
Scott Knauert
41640e3c54 Fixed issue 140, we can now delete roms from the rombrowser in both GUIs. Minor rcs code cleanup. Gtk GUI bugs, fixed memory leak / toggling full path crash issue. Child windows no longer have position memory, follow UI convention of snapping to center of main window. 2008-09-09 07:20:38 +00:00
Louai Al-Khanji
5563e5e610 Fix a few warnings 2008-09-08 23:25:53 +00:00
Louai Al-Khanji
4a2c71a9ec Add reset button to config dialog. Restore Defaults button still
missing.
2008-09-08 23:00:47 +00:00
Louai Al-Khanji
a06e9c517a Draw focus in ratings column 2008-09-08 22:23:28 +00:00
Scott Knauert
63c4248bb1 Remove XID passing code accitendly commited as gdkx.h breaks portability. 2008-09-08 21:51:20 +00:00
Louai Al-Khanji
1f8659fc82 Fix ratings painter to work even when 16x16 star icon is missing.
Nicer look for disabled stars.
2008-09-08 21:17:43 +00:00
Scott Knauert
a8f52ca62b More Gtk GUI fixes. Finished transitioning to Gtk icon theme. Themable empty status stars. Minor UI additions to address issue 141. More removal of depreciated gtk functions. Fixed a number of minor bugs. First stab at better debugger GUI integration, strncpy fixes. Minor GUI API change from updaterombrowser() to update_rombroswer(). 2008-09-08 11:13:02 +00:00
Louai Al-Khanji
870fde202c Use the plugin config, about, and test calls that take a window id. 2008-09-07 22:22:11 +00:00
Louai Al-Khanji
2bd11611da Add config, about, and test callbacks that take a window id. 2008-09-07 22:21:48 +00:00
Louai Al-Khanji
9868a13a57 Make sure string is null-terminated. 2008-09-06 21:05:17 +00:00
Richard Goedeken
18aa4baf5b use SDL instead of pthreads in debugger, remove pthread from library list in makefile, fix small bug in glide64 makefile 2008-09-06 20:09:28 +00:00
Louai Al-Khanji
2bbd453a87 Make sure never to overflow buffer 2008-09-06 18:36:35 +00:00
Louai Al-Khanji
c2dbc1decb Work around a crash in gtk with qt + gtk both enabled at the same time. 2008-09-06 12:01:55 +00:00
Louai Al-Khanji
44109dbcd8 Improve settings dialog a bit. Add cancel button, make header a bit nicer, make the dialog modal. 2008-09-06 10:10:54 +00:00