Commit Graph

243 Commits

Author SHA1 Message Date
Davis Mosenkovs
ae42152216 Add A+B and Turbo A+B buttons 2021-12-23 11:02:55 +02:00
DisasterMo
cb5481af1f Add automatic Crowdin synchronization 2021-12-04 16:43:54 +01:00
jdgleaver
3a1dcca472 Enable switching of colour palettes via RetroPad L2 + D-Pad Left/Right 2021-10-22 13:30:27 +01:00
jdgleaver
1a961ff6be Add support for emulated Game Genie add-on 2021-10-21 15:52:40 +01:00
jdgleaver
499f1c04de Replace direct file access with VFS routines 2021-10-20 16:58:35 +01:00
jdgleaver
0c82e4c73e Update core options to v2 format (add category support) 2021-10-19 17:39:00 +01:00
negativeExponent
4b9f65e27b Fix controller info index 2021-07-04 22:10:50 +08:00
twinaphex
2b187732ea Get rid of obsolete variable 2021-06-05 21:11:41 +02:00
twinaphex
3dbf430262 Wrap all fopen access - go through FCEUD_UTF8fopen isntead 2021-06-05 21:07:55 +02:00
twinaphex
e154706586 Some cleanups + we don't need a non-libretro codepath 2021-06-05 20:56:49 +02:00
Autechre
aa4615c417 Revert "some cleanups" 2021-06-05 15:05:07 +02:00
negativeExponent
6f8be4cedd Simplify palette core options
Fetch names from palette struct instead.
2021-06-05 08:26:45 +08:00
negativeExponent
e75d6be00b Remove ununsed, commented code 2021-06-03 13:30:16 +08:00
negativeExponent
f6cc87a8fa Move overclock-related variables to ppu instead
Just makes more sense since overclocking is ppu-based.
2021-06-03 10:50:30 +08:00
negativeExponent
46ca02a206 Move settings-related vars to FSettings struct
- Just some more cleanups
2021-06-02 04:18:53 +08:00
negativeExponent
403f682eb7 Cleanup: Remove a few extern 2021-05-31 16:55:09 +08:00
tim942
e14c20b02a Update Aspect Ratio
Updated aspect ratio selection from a boolean to a float with a Pixel Perfect option
2021-04-28 18:15:10 -05:00
negativeExponent
61c2d95dac Add support for Konami Hyper Shot
This is just a quick hook-up of the konami hyper shot controller.

-The Konami Hyper Shot is used (and required for gameplay) in the following games:

* Hyper Olympic (J) Konami (1985)
* Hyper Sports (J) Konami (1985)

Fix #439
2021-04-10 15:20:57 +08:00
negativeExponent
8fa62114d8 Apply region overrides when loading new rom (Fix#430) 2021-03-01 06:33:17 +08:00
Francisco Javier Trujillo Mata
c85ab05800 Fix wrong aligment in the buffer 2021-01-14 21:56:40 +01:00
Autechre
0e173120c3 Merge pull request #399 from negativeExponent/updates
misc updates
2020-10-27 16:48:04 +01:00
Alcaro
1258eb759f Don't set pixel_format in retro_init
libretro.h says "This function should be called inside retro_load_game() or retro_get_system_av_info().", let's do as it says.
2020-10-27 04:00:53 +01:00
negativeExponent
4e2c5468e4 Overclock: Remove this for region change
These variables, normal_scanlines and totalscanlines will get updated if
FCUI_SetVidSystem(), so no need to set it here.
2020-10-26 06:36:10 +08:00
negativeExponent
565f60c0f2 Fix some warnings 2020-10-25 08:31:41 +08:00
negativeExponent
7d232046a1 Remove unused functions 2020-10-19 09:31:16 +08:00
negativeExponent
085efc98a7 input: Fix warnings [-Wincompatible-pointer-types] 2020-10-05 10:38:44 +08:00
negativeExponent
6e1d873846 Rename overscan-related variables
- Rename overscan options to something more readable
- Fixes PSP overscan option logic where some places where the option is reversed
2020-10-02 19:33:26 +08:00
negativeExponent
47f84dea99 ntsc: Remove magic numbers and cleanup 2020-10-02 19:18:04 +08:00
negativeExponent
e566538c99 Fix warning 2020-09-09 11:51:04 +08:00
negativeExponent
f4ef507222 Cheats: Add check for valid game genie code format
- Partially reverts changes in 0b362afcc0
- Checks the codestring if its a valid game genie code before attempting
  to decode it. If code fails, then assume it to be a pro action replay
cheat.

Issue: Cheats where failing because a value of 0 in the decoder does not
mean an error.

Fix https://github.com/libretro/libretro-fceumm/issues/384
2020-09-09 11:33:36 +08:00
negativeExponent
11ebeed2ac Cheats: Fix RAW cheats that use zero-page address 2020-09-01 23:05:54 +08:00
negativeExponent
771822a2e0 Fix logs 2020-08-31 17:26:18 +08:00
negativeExponent
0ca1e69a9d Cheat: Add raw codes support in xxxx?yy:zz format 2020-08-31 13:42:17 +08:00
negativeExponent
3e50be9cb9 Cheat: Add raw format and multiline cheat support
- Add handling raw cheat formats
Fix https://github.com/libretro/libretro-fceumm/issues/378

- Add multiline cheat support
2020-08-31 10:50:19 +08:00
negativeExponent
a20dc87b43 Fix SIGSEGV error when using Famicom expansion devices (port 5) 2020-07-25 14:17:26 +08:00
Jean-André Santoni
aeaae26136 Add Micro Mages to fourscore_db_list 2020-07-12 21:04:09 +07:00
negativeExponent
48b80d3230 Fix input not working on big-endian systems (regression fix)
Fix https://github.com/libretro/libretro-fceumm/issues/372
2020-06-04 13:26:06 +08:00
Francisco Javier Trujillo Mata
c68bfd4c7f Adapt ps2 port to latest SDK Status 2020-05-19 22:12:38 +02:00
hizzlekizzle
b894f42f2b Merge pull request #356 from arpruss/master
user-adjustable Zapper tolerance
2020-05-16 19:35:50 -05:00
negativeExponent
542b8e64cb Use proper geometry when switching ntsc filter on or off
- Width changes previously was not respected when using ntsc filter. With full use of overscan, nes width
is 602 px when ntsc filter is used and 256 px on normal
2020-05-06 05:45:24 +08:00
negativeExponent
a81cd5fcb5 Fix build when compiling without NTSC filter support
- broke on last commit
- fixed 3ds build
2020-05-06 05:15:18 +08:00
arpruss
a125c1eec6 adjust Zapper tolerance; make Zapper input tolerance circular rather than rectangular by default 2020-05-05 15:42:26 -05:00
negativeExponent
048d9d9c82 libretro.c: Input updates
- some assorted libretro-related input updates and refactoring
2020-05-05 17:14:15 +08:00
negativeExponent
99347130c3 Fix timing when changing from PAL/Dendy to NTSC
- Happens when starting with PAL/Dendy region and changing to NTSC can cause frame to get stuck in 50 Hz
- using RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO should remedy this.
2020-05-05 10:00:26 +08:00
negativeExponent
122cc30a96 Ntsc: Remove height doubling/scanline effect
- We just use shaders for scanline if needed. ntsc + height doubling causes performance hit
for some slow devices. Any decent platform should be able to handle scanline effect shaders at least.
2020-05-05 09:07:55 +08:00
negativeExponent
9d90c0ca21 Fix https://github.com/libretro/libretro-fceumm/issues/346 2020-03-21 08:49:45 +08:00
negativeExponent
4ed6ed2443 libretro.c: Change indents from tabs to spaces 2020-02-29 09:48:09 +08:00
negativeExponent
a53e7ace23 Move overscan after rendering the NTSC frame, add ntsc scanlines
- do overscan cropping after the ntsc frame is generated. this allows
removing left and right screen artifacts when using horizontal crop like
what you would see happen in TV when adjusting horizontal size (HSIZE).

- add core option that implements NTSC scanline effects. This requires
framebuffer to double the height, so a define is added (NTSC_SCANLINES at
the top of libretro.c) to disable this on some low-memory platforms or just disable NTSC filters altogether.

- some minor cleanups
2020-02-29 09:35:18 +08:00
negativeExponent
fa74a364de Fix colour emphasis support for NTSC filter & raw palette + nes decoder shader
- this implementation is based on a more accurate colour emphasis from fceux.

- The raw palette + nes decoder shader was kinda incomplete since the implementation was based on
a per-frame basis which means that the emphasis bits were read once and applied to the whole frame. This
means that some games that uses a per pixel or per scanline emphasis would not appear correct. The more
accurate implementation reads emphasis bits from bits 5-7 of PPU[1] and saves this info in a separate frame.

- The same implementation is also used to fix emphasis for the ntsc filter.
2020-02-25 21:05:47 +08:00
negativeExponent
4f599a77f9 NtscFilter: Fix palette for VS. System games and cleanup
- fix palette for vs. system
- move most of the ntsc filter code to its own branch
- use fixed value for ntsc width and when its cropped
2020-02-25 09:39:37 +08:00