Commit graph

1883 commits

Author SHA1 Message Date
casualjames casualjames
7f9c0c1440 config.c: Use trim() from util.h instead of custom routine. 2012-08-06 22:00:32 +02:00
casualjames casualjames
ef72018541 Use strdup instead of manually copying. 2012-08-06 22:00:31 +02:00
casualjames casualjames
5167baf5ae Don't limit path length for savestates path. 2012-08-06 22:00:29 +02:00
casualjames casualjames
6c05625361 Quick fix: Don't pass an unitialized zip_fileinfo* to minizip, passing NULL is OK and deterministic. 2012-08-06 22:00:21 +02:00
casualjames casualjames
af22ad98e6 Do some refactoring around savestates.c. Note the fixed memory leak on PJ64 savestates. Needs testing and more refactoring tough. 2012-08-06 22:00:03 +02:00
casualjames casualjames
eadafafe2f Remove some leftovers from the last commit. 2012-08-06 21:59:10 +02:00
casualjames casualjames
2b291af0c3 - Added shell32.lib as a dependency to VS project (because some functions like SHGetSpecialFolderLocation are used)
- #define inline __inline in mupen64plus-core for Visual Studio, since 'inline' doesn't work on Visual Studio (2008) for C files.
- Added a reset.c file with functions to perform soft and hard resets
- Add support for multiple path separators instead of just one
- Added a PluginGetVersion to the dummy plugins, so they can be handled as if they were a real plugin
- Added new frontend APIs:
      Get screen width
      Get screen height
      Read screen
      Volume up
      Volume down
      Get volume level
      Set volume level
      Mute volume
      Input callback
      Soft reset
      Advance frame
      Audio callback
      Get audio frequency
      Read audio samples
      Vi Callback

- Reorganized internal rom_header structure so field sizes make more sense
- Added two systemtype and vilimit properties to m64p_rom_settings
  so frontends can get this information easily instead of looking at ROM header,
  and also simplifies some internal logic
- Some other refactoring/commenting
2012-08-06 21:59:08 +02:00
Sven Eckelmann
41348aa636 Fix build of mupen64plus on non-gentoo systems 2012-07-15 14:16:34 +02:00
Richard Goedeken
f61dc7e362 fix for zlib weirdness from latest gentoo update 2012-07-09 09:57:41 -07:00
Sven Eckelmann
68e3d1317e Import minizip from zlib 1.2.7 2012-05-29 22:13:29 +02:00
Sven Eckelmann
307c6875ce Print function pointer using %p instead of %x 2012-05-29 22:13:05 +02:00
Sven Eckelmann
a68e8d67c6 Remove unused variable bdslot in db_disasm_insn 2012-05-29 22:12:38 +02:00
Sven Eckelmann
b6aa3e52dc Reduce call overhead for assemble functions
The macro like assemble functions have a relative high overhead due to the call
necessary to write only a small number of bytes. A compiler without link time
global optimization cannot analyze these functions and inline them.
2012-05-29 22:11:55 +02:00
Sven Eckelmann
8dcdbb06e1 Remove unused functions 2012-05-29 22:11:03 +02:00
Richard Goedeken
34d877620d moved breakpoint typedef and BPT_* macros from dbg_breakpoints.h into m64p_types.h 2012-05-20 09:24:58 -07:00
Sven Eckelmann
fe0ec6c138 Fix name of PIC thunks with gcc 4.7 2012-05-15 23:30:31 +02:00
Richard Goedeken
ed6add8341 more specific parameter comment based on feedback from issue 489 2012-04-08 09:55:30 -07:00
Richard Goedeken
c31a273328 read/write breakpoint fix from Neive 2012-04-08 09:33:29 -07:00
Richard Goedeken
a78204171e use sscanf for reading floating-point values in config file instead of character parsing, so that other locales with commas instead of periods for decimal separator can be supported 2012-04-08 09:31:14 -07:00
Richard Goedeken
580cdd7fb7 updating version and release info for v1.99.5 tag 2012-03-10 09:53:00 -08:00
richard42
e429ff4afb fix warnings in MSVC8 2012-03-06 20:35:30 -08:00
Richard Goedeken
8bb50abf18 fixed round-off error in config parameter version checking 2012-03-04 15:41:32 -08:00
Richard Goedeken
b8a60d01cb update core Video API version to 2.1.0. The core is backwards-compatible with older video plugins. The difference in the newer API is that the video render callback function now takes a boolean (int) parameter, which specifies whether the video frame has been re-drawn since the last time the render callback was called. This allows us to take screenshots without the On-Screen-Display text 2012-03-04 15:11:34 -08:00
Richard Goedeken
4bfd64f67a apply patch from Bobby Smiles: Fix RSP DMA behavior
-r/w length must be a multiple of 8 bytes
-Handle non linear transfer as well (skip > 0, count > 1)

This change is difficult to test, since not many games use that and rsp plugins use their own implementation of DMA anyway.
2012-03-04 09:19:51 -08:00
Richard Goedeken
1c8649cdf5 improve PIF debug messaging 2012-03-03 07:32:35 -08:00
Richard Goedeken
62fb33cf9f bugfix: when the front-end specifies an override for the configuration directory, always use this path, so that we don't load the config from there and then save it back to the default user path 2012-03-02 23:02:04 -08:00
Richard Goedeken
674c816c28 re-indented all .c files in src/memory/. old formatting was horrible. tabs must die 2012-03-01 14:29:42 -08:00
Richard Goedeken
b1b90973d8 make all of the mpk/eep/sra file open failure messages VERBOSE level, since these are expected to happen the first time a game is played. remove the static flag variables which were used to prevent more than 1 message being sent 2012-02-29 22:36:43 -08:00
Richard Goedeken
6d52637faf issue 462: feature request: include separate config parameter for path to save SRAM/EEPROM/MPK files, so they can be separated from emulator snapshots 2012-02-25 21:00:40 -08:00
Richard Goedeken
b43fbe9e91 resolve issue 413: when failing to read SRAM data file, send verbose-level message instead of warning. This alwaps happens the first time a game is run 2012-02-25 20:05:58 -08:00
Richard Goedeken
f02331c028 split core configuration data into 2 sections: Core and CoreEvents. Added version numbers and upgrade handling to both 2012-02-23 20:17:10 -08:00
Richard Goedeken
d0879715dc Added 2 new config functions: ConfigHasUnsavedChanges and ConfigRevertChanges 2012-02-21 21:22:12 -08:00
Richard Goedeken
bde4612d7f add new Config API function to save only a single config section to disk. Added documentation for new function and bumped config api version number to 2.1.0 2012-01-02 21:49:27 -08:00
Richard Goedeken
5ff38ca40f refactored internal structure of Config data. Now there are 2 internal lists: one representing the status of the config file on the disk, and another representing the active list. This will allow us to add a new feature whereby only a single section is saved, and all other (possibly modified) sections are not changed 2012-01-02 20:50:26 -08:00
Richard Goedeken
f943f183a8 add sections alphabetically when parsing config file at init time 2012-01-02 17:21:05 -08:00
Richard Goedeken
89793ed51e put new config sections in alphabetical order 2012-01-02 16:46:20 -08:00
Richard Goedeken
794ce10069 renaming and cleaning up in prep for new feature 2012-01-02 16:31:50 -08:00
Richard Goedeken
bb1019cd91 bugfix issue 468: dlopen problem with OGLFT; the static class object is not initialized when the shared lib is loaded under OSX, so change the api to do it explicitly 2011-11-12 16:25:50 -08:00
Sven Eckelmann
1b488a48e1 Don't print '%' twice in volume string 2011-10-14 22:02:34 +02:00
Sven Eckelmann
faf9c54e76 Read option SaveStatePath from config when set 2011-10-06 11:32:09 +02:00
Sven Eckelmann
0a517b3238 Try to build against external minizip library to fix compilation on Gentoo 2011-10-06 10:26:08 +02:00
Sven Eckelmann
dd2e1b885b Import minizip from zlib 1.2.5 2011-10-04 22:48:28 +02:00
Richard Goedeken
4c21158e8f merged changes from ecsv's fork 2011-09-08 21:08:09 -07:00
Richard Goedeken
6fc06eaf66 instead of calling SDL_Quit when finished in the M64CMD_EXECUTE command, don't call it until the library is being unloaded. this will fix some front-end use cases 2011-09-07 21:27:49 -07:00
Sven Eckelmann
12c9a61058 Fix some -Wformat related warnings 2011-09-04 13:12:13 +02:00
Sven Eckelmann
277f2fd7ff Remove unused pagesize query when allocating rwx memory 2011-09-04 12:48:52 +02:00
Sven Eckelmann
1121cb9cec Merge branch 'default' from ssh://hg@bitbucket.org/richard42/mupen64plus-core 2011-09-01 12:46:12 +02:00
Richard Goedeken
447bc14b2f patch for openbsd support from 'ryan' on irc 2011-08-13 12:28:56 -07:00
Sven Eckelmann
5b0f4ab40e Use MAP_ANON when MAP_ANONYMOUS is not defined 2011-07-23 10:21:30 +02:00
Richard Goedeken
43206c936f use X-Scale's PIF-CIC algorithm instead of the hard-coded challenge-response pairs 2011-07-16 15:47:14 -07:00