Commit Graph

34 Commits

Author SHA1 Message Date
LibretroAdmin
45532d2c4a Cleanup driver.h 2022-09-05 01:33:27 +02:00
negativeExponent
75872dab63 Remove CopyFami stuff
unused in this implementation, not any other emu uses it. considering
its even UNIF based, probably has no use anymore.
2022-06-09 14:10:43 +08:00
twinaphex
a918869c18 Cut down on stdio.h includes 2021-11-02 17:25:04 +01: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
001e3a2428 Remove this (remnants of ppuview) 2021-06-05 08:39:47 +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
75165981fb Change c++ to c comments 2020-10-22 19:59:23 +08:00
negativeExponent
7d232046a1 Remove unused functions 2020-10-19 09:31:16 +08:00
twinaphex
6af7c82742 Revert "Simplify DoLine"
This reverts commit 5d8885b916.
2020-03-09 19:49:12 +01: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
fa7b15eb61 Update region overrides and overclocking
- ines.c - misc cleanups
- Fix Dendy not restored when changing overrides back to auto mode
- directly apply new scanlines and additional scanlines when changing overclock settings
- (readability) change variable name overlock_state to overclock_enabled
2020-02-07 20:50:25 +08:00
negativeExponent
575db021c6 Fix savestates
- prevent possible issue on big-endian by adding mask
- specify correct variable size to state struct
2020-01-23 10:30:16 +08:00
retro-wertz
52c8155dee Use C-comment style 2017-10-15 03:13:11 +08:00
retro-wertz
21e814774d Overclock cleanup 2017-10-07 08:09:26 +08:00
retro-wertz
959e289756 Make vblank overclock respect 7-bit sample state 2017-10-07 07:48:35 +08:00
retro-wertz
feed492569 [overclock] allow choosing between postrender and vblank extra scanlines 2017-08-24 20:58:04 +08:00
retro-wertz
ef5f75a8d5 [overclock] remove duplicate, defined in x6502.c 2017-08-24 17:21:18 +08:00
twinaphex
8f2d28e4e5 C89 buildfixes 2017-07-01 11:01:46 +02:00
retro-wertz
1cb591d6ef add core option dendy and region override 2017-03-11 14:18:00 +08:00
retro-wertz
e9682625dc fix overclock buffer overflow 2017-03-09 18:01:33 +08:00
retro-wertz
1ec32bd8bc fix overclock audio issues 2017-03-09 17:49:28 +08:00
meepingsnesroms
f7c779eb7d Try to fix sound with overclock
The overclock would not disable because DMC_7bit was always being set
to 0.
2017-03-08 09:47:23 -08:00
twinaphex
417b8c6022 Add overclocking - backported from FCEUX with mods 2016-02-22 18:36:09 +01:00
twinaphex
5cfa9e8ac9 Don't rely on LSB_FIRST 2015-07-23 22:18:46 +02:00
Jose Ernesto Ramirez Ramirez
d4fa032402 mmc5 fix
mmc5 fix taken from fceux source code to handle correctly the register
$5130 in fceumm. Now we can play games like Legend of Link nes hack that
need this fix.
2015-06-27 18:04:58 -05:00
twinaphex
48b22acc96 Simplify big-endian CopySprites codepath 2014-12-09 14:12:31 +01:00
twinaphex
0604e89644 CopySprites - turn into do-while loop getting rid of the goto at
the end
2014-12-09 14:08:12 +01:00
twinaphex
5d8885b916 Simplify DoLine 2014-12-09 14:02:54 +01:00
twinaphex
30b4c60b21 Rename files endian.c and memory.c 2014-03-30 22:29:30 +02:00
twinaphex
7e6caac57d Initial commit - http://sourceforge.net/p/fceumm/code/160/ 2014-03-30 22:15:17 +02:00