Commit Graph

240 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
retro-wertz
1bcbfba6a6 Update to 4:3 aspect
Update 4:3 aspect so that image is not stretched when horizontal and vertical overscans are adjusted
2018-01-10 11:39:36 +08:00
retro-wertz
fe04e86c42 Cleanup input
Gamepad loops based on # of players(4 max), while other inputs are looped by number of ports(2 max).
2018-01-03 20:06:13 +08:00
retro-wertz
bec41ab460 Remove use of RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2017-12-21 14:45:02 +08:00
Alberto Fustinoni
d4b04866c1 Build fix 2017-12-20 00:36:34 +09:00
twinaphex
6f8934aee7 Look in system header dir 2017-12-16 18:41:41 +01:00
twinaphex
1e84d6dec5 Update 2017-12-16 15:47:24 +01:00
twinaphex
56e8cf3ed1 Updates 2017-12-16 01:11:25 +01:00
retro-wertz
bdf9d44688 Update 2017-11-25 12:09:10 +08:00
retro-wertz
ff24eeb0fb Input: Fix input handling if a 4-player adaptor is used. 2017-11-25 11:59:04 +08:00
retro-wertz
032d86b3a4 Input: Add support for mouse/lightgun-type peripherals 2017-11-25 11:16:26 +08:00
retro-wertz
483c414327 Start refactoring input devices and cleanup 2017-11-13 08:22:46 +08:00
retro-wertz
09dbd4d5d9 Update turbo fuction and cleanup. 2017-11-12 15:38:04 +08:00
retro-wertz
82ff4e9bd1 Re-apply palette when changing region
https://github.com/libretro/libretro-fceumm/issues/176
2017-10-21 19:40:54 +08:00
retro-wertz
d0857f363f Rearrange core options to group similar or related items 2017-10-20 09:25:31 +08:00
retro-wertz
52c8155dee Use C-comment style 2017-10-15 03:13:11 +08:00
retro-wertz
40ab200e44 Remove this. 2017-10-14 10:38:45 +08:00
joemommasfat
ced0fa6a43 Wavebeam update 2017-10-12 23:34:04 -06:00
retro-wertz
294eb511b4 Update Region Override 2017-10-07 13:35:00 +08:00
retro-wertz
21e814774d Overclock cleanup 2017-10-07 08:09:26 +08:00
retro-wertz
2cdf32300b Add core option Swap Duty Cycles 2017-10-05 14:43:20 +08:00
retro-wertz
c9a762a1e6 Added "Auto" input device that auto-selects between gamepad or zapper based in internal db. 2017-10-02 01:18:06 +08:00
retro-wertz
e43a3374e1 Update JSReturn 2017-09-30 13:28:05 +08:00
retro-wertz
c4c67b4b08 Proper fix for VS Unisystem input not working with some games. 2017-09-30 12:00:33 +08:00
retro-wertz
793c61f7ac Update 2017-09-16 17:45:51 +08:00
retro-wertz
8b41b3ff14 Add core option to choose between absolute and relative zapper modes 2017-09-16 17:32:05 +08:00
retro-wertz
3171bddeae Zapper update 2017-09-16 16:24:59 +08:00
twinaphex
758304733b Don't need these solution files anymore 2017-09-15 00:37:58 +02:00
twinaphex
5961b34d8d Update 2017-09-15 00:34:16 +02:00
twinaphex
9e8761000d Can now get rid of msvc-2010-360 solution 2017-09-14 23:59:10 +02:00
retro-wertz
4049668620 Fix crashing when trying to connect a netplay session 2017-09-10 13:30:56 +08:00
hizzlekizzle
02513b54a7 Merge pull request #148 from retro-wertz/patch-1
Buildfix
2017-09-09 20:10:14 -05:00