Commit graph

2672 commits

Author SHA1 Message Date
casualjames casualjames
6ee6decb19 Remove path size limits from screenshots, refactor a bit (not really satisfied). 2012-08-06 22:01:43 +02:00
casualjames casualjames
d8dd5deb52 Replace some clunky string manipulation with formatstr. 2012-08-06 22:01:40 +02:00
casualjames casualjames
8ed2e2c2a0 Remove adler32.c/adler32.h since Zlib provides an adler32() function already. 2012-08-06 22:01:37 +02:00
casualjames casualjames
464bac4dae Centralize and simplify alphabetic section finding code 2012-08-06 22:01:33 +02:00
casualjames casualjames
b1549f3064 Allow config section names of arbitrary length. Centralize section creation code. 2012-08-06 22:01:32 +02:00
casualjames casualjames
2c59693816 Compilation fix. 2012-08-06 22:01:30 +02:00
casualjames casualjames
639dc4b2d8 Fix a new memory leak introduced by previous commit. 2012-08-06 22:01:29 +02:00
casualjames casualjames
bf8a982718 Centralize config_var creation code. Note the fixed memory leaks on ConfigSetDefault* in case strdup fails. 2012-08-06 22:01:27 +02:00
casualjames casualjames
0fdaff33c2 Don't risk blowing up a config section to save a small allocation. Minor simplifications related to last change. 2012-08-06 22:01:25 +02:00
casualjames casualjames
97df25f174 Add find_section_link to remove duplicated code. Also delete redundant checks since free(NULL) is a noop. 2012-08-06 22:01:24 +02:00
casualjames casualjames
c055f5690a Keep all values on an union instead of having a variable for each type. 2012-08-06 22:01:23 +02:00
casualjames casualjames
031b88246b More malloc+strcpy to strdup replacements 2012-08-06 22:01:21 +02:00
casualjames casualjames
69eaece1b3 Remove duplicated section finding code. Found out that there was already a line to NUL-terminate configtext, but don't overallocate anyway. 2012-08-06 22:01:19 +02:00
casualjames casualjames
1be8b37cb8 Remove duplicated section finding code. Found out that there was already a line to NUL-terminate configtext, but don't overallocate anyway. 2012-08-06 22:01:18 +02:00
casualjames casualjames
c8329e3d92 Reorganize util.c so that functions are defined in the same order in which they are declared. Add combinepath function to util.c and use it in config.c 2012-08-06 22:01:14 +02:00
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
84a36e8f92 Enable experimental support for link-time optimization 2012-05-29 22:19:41 +02: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
dbb500b34f bugfix in hg archive command 2012-03-10 11:00:59 -08:00
Richard Goedeken
eef0646e9d removed --repository option from hg archive command, as it is not included with my hg. also, build -norom core automatically 2012-03-10 10:57:20 -08:00
Richard Goedeken
652572c1fa Added tag 1.99.5 for changeset 1ec4920bbc35 2012-03-10 10:29:02 -08: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
Anthony J. Bentley
8f2043ad4d off_t is 64 bits on OpenBSD, so don't use f*64() there. 2012-02-27 23:17:58 -07:00
Richard Goedeken
92739fa732 updated wiki documentation for new SaveSRAMPath config parameter 2012-02-25 21:04:40 -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