Commit Graph

415 Commits

Author SHA1 Message Date
retro-wertz
5c1ddf45d4 VRC7: Update instrument patch dumped by Nuke.YKT
https://wiki.nesdev.com/w/index.php/VRC7_audio#cite_note-2
2019-03-27 18:03:30 +08:00
retro-wertz
d164ea7470 Move some startup variables into retro_load_game 2019-03-11 15:39:57 +08:00
retro-wertz
75e837f34a Update libretro.c 2019-02-24 01:51:44 +08:00
Francisco Javier Trujillo Mata
e962d1f19c [PS2] Fix wrong palette in FCEUmm 2019-02-22 00:05:24 +01:00
Francisco Javier Trujillo Mata
9715f13bc7 Improvement paddings
Improvement palette
2019-02-17 23:23:12 +01:00
Francisco Javier Trujillo Mata
d7f7709a37 Add palette into FCEumm for PS2 2019-02-01 23:39:18 +01:00
retro-wertz
55b3d8a5bc FDS: Fix pointers are not freed when closing rom 2019-01-06 10:42:12 +08: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
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
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
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
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
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
retro-wertz
3cd1ea0060 palette:Labeling and index changes 2018-11-25 09:01:21 +08: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
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
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
retro-wertz
2bca72186d Mapper30: Backport 4-screen mirroring support
9b6ff8fe49
2018-06-15 11:30:23 +08:00
retro-wertz
1811ea1e06 Remove incomplete Use NTSC core option
Use NTSC colors option is incomplete due to missing int,hue adjustments. This can be added but there is no smooth way using core options or hotkey to selec ranges 1-256 for fine tuning

Using shaders instead can work better at this with more adjustments possible
2018-06-15 10:59:25 +08:00
retro-wertz
7439630dab add Pro Yakyuu - Family Stadium '88 to ines-correct (#2) (#3) 2018-06-15 10:33:43 +08:00
SapphireTactician
9991455b69 Improve Label Redux Act 2
Changing name wording from what FCEUX used to @fr500 's suggestion
2018-04-17 23:17:12 -04:00
SapphireTactician
e5b3025d24 Update option title
Done as per @twinaphex
2018-04-14 18:50:29 -04:00
twinaphex
674be2d5d0 Add label 2018-04-14 19:49:14 +02:00
twinaphex
3f7127a932 Add up/down allowed core option 2018-04-14 19:35:51 +02:00
twinaphex
f6db0b026b Updates 2018-04-13 01:58:48 +02:00
twinaphex
02840d9cff C89_BUILD fixes 2018-03-20 16:07:46 +01:00
Dwedit
ef6e70075f corrected non-functional typo 2018-03-16 23:25:48 -05:00
Dwedit
a76897a920 More variables in sound state, plus first 32 words of sound buffer (needed for filtering) 2018-03-16 23:17:37 -05:00
Dwedit
b9df5f188c Smooth sound after loading state
Moved function-level static variables outside of functions and renamed them
2018-03-15 19:50:46 -05:00
retro-wertz
e5421762fd state.c: Style nits 2018-03-07 00:57:52 +08:00
retro-wertz
77d07e782c state.c: Update 2018-03-07 00:36:03 +08:00
Twinaphex
8314297846 Merge pull request #207 from retro-wertz/savestate
Add missing variable to save state
2018-03-04 14:51:54 +01:00
retro-wertz
0343e3dbd8 Add missing variable to save state 2018-03-04 21:47:52 +08:00
retro-wertz
ad68b979f4 Initialize save ram 2018-02-25 07:17:04 +08:00