Commit Graph

906 Commits

Author SHA1 Message Date
Autechre
1ff8bde6fe Merge pull request #340 from negativeExponent/master
Fix incompatible pointer type warning
2020-03-14 17:46:02 +01:00
negativeExponent
374677ae28 Fix incompatible pointer type warning 2020-03-14 20:27:44 +08:00
hizzlekizzle
68b8f0e120 Merge pull request #339 from negativeExponent/updates_and_fixes
Cleanup mapper struct, move stuff around in iNESLoad()
2020-03-12 10:27:50 -05:00
negativeExponent
f2c3d35d25 Add 168-in-1 New Contra Function 16 to ines-correct.h 2020-03-12 20:47:41 +08:00
negativeExponent
e3c35c6eff unif.c: Align board map struct 2020-03-12 20:24:19 +08:00
negativeExponent
33ae3916b2 ines.c: Cleanup mapper struct and iNESLoad()
- cleaned and sorted the nes mapper index struct
- move items around in iNESLoad() and use CartInfo struct where applicable
- other minor cleanups
2020-03-12 17:29:07 +08:00
Twinaphex
4f68f50b64 Merge pull request #337 from negativeExponent/updates_and_fixes
Updates and fixes
2020-03-09 23:07:00 +01:00
negativeExponent
c92996128b Fix unterminated savestate struct 2020-03-10 03:58:30 +08:00
negativeExponent
9827248938 Update mapper 79 2020-03-10 03:58:30 +08:00
negativeExponent
82107ba321 vrc2and4: Fix mapper 22 games not working (regression) and refactoring
- fix mapper 22 games not working
- refactoring
- Fix implementation used for various Contra rom hacks
2020-03-10 03:58:30 +08:00
negativeExponent
9f520931b8 Update ines-correct.h 2020-03-10 03:58:30 +08:00
negativeExponent
edea0a8899 m369: Update and reworked 2020-03-10 03:58:29 +08:00
twinaphex
6af7c82742 Revert "Simplify DoLine"
This reverts commit 5d8885b916.
2020-03-09 19:49:12 +01:00
hizzlekizzle
9ed22e5a9a Merge pull request #336 from negativeExponent/updates_and_fixes
mapper updates and fixes
2020-03-06 17:34:43 -06:00
negativeExponent
a69354c1c2 Add mapper 369 (BMC-N49C-300) 2020-03-07 01:55:59 +08:00
negativeExponent
6a805ea424 mapper201: Add support for 21-in-1 (CF-043) (2006-V) (Unl) [p1] 2020-03-07 01:55:36 +08:00
negativeExponent
b00b8031fc Fix mirroring on KS7030 board 2020-03-07 01:52:35 +08:00
negativeExponent
b2e6d27f9a Update chr banking in mapper 217 2020-03-07 01:51:16 +08:00
negativeExponent
c4e230ecb4 Update ines-correct.h 2020-03-07 01:51:10 +08:00
negativeExponent
27a8cbb016 Fix mirroring in mapper 200 2020-03-07 01:51:10 +08:00
hizzlekizzle
49985f4ca9 Merge pull request #335 from negativeExponent/updates_and_fixes
allow fds conversion mappers to access fds apu and other fixes
2020-03-05 14:57:12 -06:00
negativeExponent
722154b93f Allow FDS conversion mappers to use FDS APU 2020-03-06 02:58:27 +08:00
negativeExponent
80b002a04e Mapper42: Support for 256K prg rom fds conversion of Green Beret 2020-03-06 02:58:22 +08:00
negativeExponent
e9eb314311 Fix size inconsistency for prg and chr
- Unif shows ROM_size and VROM_size in bytes, while codebase expects these to be
in chunks of 16K for prg and 8K for chr. Update Unif to represent size as its
expected to be.

- Change PRGRomSize and CHRRomSize to represent sizes in bytes to make it consistent
with the rest of the size-related variables in struct CartInfo.
2020-03-06 02:57:16 +08:00
negativeExponent
a0458bbf98 iNes: Prevent invalidating rom when size does not match header 2020-03-06 02:53:21 +08:00
negativeExponent
debe380190 Update .gitignore 2020-03-06 02:53:20 +08:00
hizzlekizzle
28acf075c9 Merge pull request #332 from negativeExponent/mmc1_nes2_battery_fix
MMC1: Fix some NES 2.0 games not saving or loading battery backup files
2020-03-01 11:36:00 -06:00
hizzlekizzle
fd25b2dd5d Merge pull request #334 from negativeExponent/updates_and_fixes
Updates and fixes
2020-03-01 11:35:20 -06:00
negativeExponent
aee4669b8d Better detection of mapper numbers based on NES header version 2020-03-01 23:21:59 +08:00
negativeExponent
f9cc11c565 Update ines-correct.h
- override some mapper 27 roms to use mapper 23
2020-03-01 20:18:26 +08:00
negativeExponent
342d51c365 MMC1: Fix some NES 2.0 games not saving or loading battery backup files 2020-03-01 19:03:44 +08:00
Twinaphex
4368cedaa4 Merge pull request #329 from negativeExponent/updates_and_fixes
mapper updates and fixes
2020-02-29 19:06:15 +01:00
Twinaphex
aac87ab091 Merge pull request #328 from negativeExponent/nes_ntsc
Move overscan after rendering the NTSC frame, add ntsc scanlines
2020-02-29 19:06:08 +01:00
negativeExponent
46fe43a4f2 Use FCEU_free instead of free for mappers 2020-02-29 09:52:05 +08:00
negativeExponent
4ed6ed2443 libretro.c: Change indents from tabs to spaces 2020-02-29 09:48:09 +08:00
negativeExponent
dc402f473b C89 buildfix 2020-02-29 09:38:19 +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
0979e66e1c Mapper 235 update support for 1MB/2MB carts and cart with unrom block 2020-02-25 23:09:02 +08:00
negativeExponent
fef34bda90 cnrom: Minor database cleanup
- use existing crc32 database for Bingo 75 (Asia) (Unl), this moves checksum check on mapper side instead of unif overrides.
- minor cleanup
2020-02-25 23:09:02 +08:00
negativeExponent
74bd49bfd8 mappers: Change indents from spaces to tabs
- makes this consistent with the rest of the mapper files and codebase in general
- this affects new and edited files in recent commits
2020-02-25 23:09:02 +08:00
negativeExponent
1f322e0b16 m269: Deallocate memory on exit 2020-02-25 23:09:02 +08:00
negativeExponent
473ec3a8aa Cleanup unused code and variables 2020-02-25 23:09:02 +08:00
negativeExponent
1b01730dda Update mapper 15 based on latest notes
- bit 7 acts as A13 only on mode 2
- prg mask now 0x3F of data latche etc.
- unrolled loops
2020-02-25 23:09:02 +08:00
negativeExponent
872acac367 Merge mapper 225 and 255, re-implement extra RAM
- merges mappers 225 and 255 since they are basically the same
- re-implement extra RAM as its required for some multicarts
2020-02-25 23:09:02 +08:00
hizzlekizzle
aba448a574 Merge pull request #327 from negativeExponent/colour_emphasis_fix
fix and use a more accurate colour emphasis
2020-02-25 08:36:26 -06: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
negativeExponent
695405ce56 Fix colour emphasis when using palette presets
This is an issue i found when implementing the NTSC filters. Currently when using palette presets,
no clour emphasis is seen on games that supports it. This is cause because the palette table is
fille with the same 64*3 colour info.

Using custom palette (palette file) and default both creates the emphasis as expected. So internally,
fceumm is able to support such feature.

The fix is to generate the base palette (64 * 3 with each triplet representing rgb colour), and then
send this internally using FCEUI_SetPaletteArray() to fill the colour table with emphasis instead.
2020-02-25 07:13:42 +08:00
Twinaphex
7a5feb5281 Merge pull request #326 from jdgleaver/3ds-fix
(3DS) Disable NTSC filter
2020-02-24 12:33:33 +01:00
jdgleaver
d148d57053 (3DS) Disable NTSC filter 2020-02-24 11:21:58 +00:00