Commit Graph

664 Commits

Author SHA1 Message Date
retro-wertz
55b3d8a5bc FDS: Fix pointers are not freed when closing rom 2019-01-06 10:42:12 +08:00
hizzlekizzle
3d46793a39 Merge pull request #249 from retro-wertz/fds-save
update FDS to use retro_get_memory_data/size for handling modified disks
2019-01-04 10:32:11 -06:00
retro-wertz
1b47b366c5 FDS: Print manufacturer label when loading rom 2019-01-04 22:33:26 +08:00
retro-wertz
00bf47ebf8 Fix memory leak 2019-01-04 19:33:26 +08:00
retro-wertz
b53fb91239 FDS: Use retro_get_memory_data/size for disk saving 2019-01-04 17:13:09 +08:00
twinaphex
919468f74c Update Makefile 2019-01-03 14:05:53 +01:00
twinaphex
290b1f92ce Add MSVC2008 target 2018-12-27 19:52:49 +01:00
retro-wertz
b6c251b7b2 Cleanup (#248)
* Silence some clang warnings

* Cleanup input and turbo functions

* Update apu pulse' swap duty cycle
2018-12-23 08:46:17 -06:00
retro-wertz
a44a9b5be1 FDS: Fix IRQ timing (#247)
- Fixes Druid flickering status window
2018-12-15 18:50:08 -06:00
retro-wertz
b09a060ae6 Wii related updates for save state fixes/workarounds (#246)
* Wii: Fix uninitialized save state size causing load state problems

- Issue origially from Wii and possibly affects similar devices where
retroarch and the core are one program. The problem was that the
serialize size was not reset when you change game, causing the last
serialized size to be carried over to the next game loaded causing save
state issues due to change in size. Initializing this variable during
retro_init() seems enough for most of the games.

- In this same observation, also initialized some variables in a similar
way.

- also exluded a variable used for sound state that was added for smooth
sound after load state which causes similar loading issues as well.

- default sample rate has been lowered to 32K as well as to minimize
some stuttering for these devices, while maintaining 48K sample rate for
others.

- Some comments are added to modified section as necessary.

* Add workaround for save state issue in Wii with expansion audio

- Some mappers are not loading states as well. Seems to affect those
that are using expansion audio. some of these mappers(bandai, mmc5,
namco106), the state variables has to be expanded so that it will
load states fine with big endian while others (vrc6, vrc7 sunsoft), some
variables that were added for smoother audio during load state has been
removed.

- This does not guarantee though that other mappers might not have
similar incompatibilities after loading a state but so far, some of the
most common roms in each mapper has been tested to load fine.

* FDS: Expand state variables for big endian compatibility

* FDS: Change OSD label from Disk 0 to Disk 1... when switching disks

- Minor osd label change that now shows Disk 1 of (# of disks) instead
of just Disk 0 Side nth.
2018-12-14 20:23:43 -06:00
retro-wertz
e3cf3efc69 fix vrc7 issue #235, update state.c (#245)
* vrc7: Add sound save states

* Try to fix some save state issues

try to fix big-endian related save problems

* vrc7: fix crash in some cases when loading states
2018-12-11 16:16:02 -06:00
hizzlekizzle
25fdf55f8f Merge pull request #244 from retro-wertz/fix
Fix
2018-12-09 07:52:56 -06:00
retro-wertz
c352ddd9da Update Makefile.libretro
accidentally left debugging options enabled...
2018-12-09 20:29:49 +08:00
retro-wertz
049007f33b Use -fsigned-char on some builds 2018-12-09 20:23:53 +08:00
hizzlekizzle
4d24c4be4a Merge pull request #243 from retro-wertz/apu_pulse
Apu pulse
2018-12-08 08:51:41 -06:00
retro-wertz
fd5c95e60c Fix pulse channel fails to clock lenght counter when silenced
- Backported implementation from Mednafen-NES
- Reference test roms:
https://forums.nesdev.com/viewtopic.php?t=15346
https://github.com/christopherpow/nes-test-roms/tree/master/apu_mixer
2018-12-08 19:56:31 +08:00
retro-wertz
3b2511a8fe Fix APU IRQ inhibit flag $4017 and dmc 2018-12-08 11:35:04 +08:00
retro-wertz
68c5289726 Update apu sweep unit
- http://wiki.nesdev.com/w/index.php/APU_Sweep
- APU sweep test roms:
   https://forums.nesdev.com/viewtopic.php?t=219&p=1403
- Fixes R.C. Pro AM II intro music
2018-12-08 08:42:33 +08:00
hizzlekizzle
64bccb470a Revert "Fix RC Pro Am II intro music and pulse phase reset behavior (#241)" (#242)
This reverts commit 5bc56f786b.
2018-12-05 13:25:25 -06:00
retro-wertz
5bc56f786b Fix RC Pro Am II intro music and pulse phase reset behavior (#241)
References:
- RC Pro Am II, intro music square channels are wrong.
- apu_phase_reset.nes -
http://forums.nesdev.com/viewtopic.php?f=2&t=15346
2018-12-05 10:45:24 -06:00
Twinaphex
3cb9e9924a Merge pull request #240 from retro-wertz/fix
fixes crash, audio states and comments
2018-12-05 13:47:59 +01:00
retro-wertz
34985a9d6e Set max_width and max_height to its actual NES values
Fix crash while using video filters and video dimensions is changed
for example when using the overscan options.
2018-12-05 16:05:55 +08:00
retro-wertz
095fd57117 Fix audio states in VRC6 2018-12-05 15:52:20 +08:00
retro-wertz
1993f31352 Fix wrong info in some comments 2018-12-05 15:09:13 +08:00
bparker06
1f10cc631c Merge pull request #239 from Tatsuya79/patch-5
Remove space in core option
2018-12-04 08:52:47 -05:00
Tatsuya79
b238ca5d62 Update libretro.c 2018-12-04 11:27:54 +01:00
retro-wertz
b5803e0e1d c89 compliant? (#237)
* Replace C++ comments into  C comments

* Move INLINE out of Makefile.common, move to fceu-types.h

An INLINE define is still existing in Makefile.common for msvc (dont
have a way to to test that). Moved the rest into fceu-types.h using the
one already existing from emu2413.h.

* Increase maximum volume for apu channels
2018-12-03 20:25:17 -06:00
retro-wertz
829a7552f1 Audiostuff (#236)
* Add option to enable/disable audio channels

Audio options are backports from FCEUX. Options are set as on/off toggle for each apu channel.

Compile with DEBUG=1 to see options.

* Add missing audio state vars, fix for hq audio when using runahead

* Additional checks for save ram (battery)

* Cleanup

* Update libretro header
2018-11-29 19:22:36 -06:00
Twinaphex
e3362d3772 Merge pull request #234 from ehmry/master
Build rules for Genode platform
2018-11-26 15:25:24 +01:00
Emery Hemingway
60d6f17cea Build rules for Genode platform 2018-11-26 11:40:37 +01:00
hizzlekizzle
495f32a0a4 Merge pull request #233 from retro-wertz/updates
Updates
2018-11-25 21:04:37 -06:00
retro-wertz
e07255c87c Remove redundant memset() calls 2018-11-26 10:43:06 +08:00
retro-wertz
9d9c48007d Add core option: RAM power up state 2018-11-25 21:45:52 +08:00
Twinaphex
684106fb3a Merge pull request #232 from retro-wertz/updates
palette:Labeling and index changes
2018-11-25 02:22:56 +01:00
retro-wertz
3cd1ea0060 palette:Labeling and index changes 2018-11-25 09:01:21 +08:00
hizzlekizzle
ef60a38ef3 Merge pull request #231 from retro-wertz/patch-1
Fix autodetection of NES controllers
2018-11-22 22:04:17 -06:00
retro-wertz
3de40d9126 Fix autodetection of NES controllers
Closes https://github.com/libretro/libretro-fceumm/issues/230
2018-11-23 07:25:17 +08:00
hizzlekizzle
773c90e75a Merge pull request #229 from retro-wertz/input
Update input settings, allow multi-player without matching CRC
2018-11-22 13:02:50 -06:00
retro-wertz
53b7fc4ae7 Remove leftover lines 2018-11-23 02:18:16 +08:00
retro-wertz
b929147612 Update input settings, allow multi-player without matching CRC 2018-11-23 02:01:42 +08:00
Twinaphex
efb5783234 Merge pull request #226 from Classicmods/master
Added Classic Platform structure - ARMv7 Cortex A7 build
2018-11-08 13:35:20 +01:00
Ryan 'Swingflip' Hamlin
3427b381f5 Finished Armv7 A7 build 2018-10-17 22:20:03 +01:00
Ryan 'Swingflip' Hamlin
6906866518 init commit 2018-10-17 16:23:43 +01:00
Twinaphex
eb17f882df Merge pull request #225 from natinusala/libnx
libnx port
2018-09-29 22:16:47 +02:00
natinusala
620fb25d50 libnx port 2018-09-29 22:09:30 +02:00
Twinaphex
afd4cdf58b Merge pull request #224 from hiddenasbestos/lightgun
Use lightgun API for Zapper.
2018-09-27 10:25:05 +02:00
David Walters
a9f1ef274b Use lightgun API for Zapper. 2018-09-27 08:43:12 +01:00
meepingsnesroms
a37c3bc664 Fix null terminator buffer overflow
While updating my devkitARM I found this buffer overflow:
src/input/bworld.c:56:3: warning: '__builtin_memcpy' forming offset 21 is out of the bounds [0, 20] of object 'bdata' with type 'uint8[20]' {aka 'unsigned char[20]'} [-Warray-bounds]
   strcpy((char*)&bdata[13], "SUNSOFT");
2018-08-15 13:29:46 -07:00
Twinaphex
67c072617b Merge pull request #220 from misson20000/nsw-dynamic
NSW: dynamic cores
2018-06-21 10:44:49 +02:00
Twinaphex
b0375d3cbf Merge pull request #222 from retro-wertz/libretro
Libretro
2018-06-15 06:53:06 +02:00