Commit Graph

506 Commits

Author SHA1 Message Date
negativeExponent
f4cb27d578 Add mapper 538 2020-01-28 11:42:04 +08:00
negativeExponent
371e949ba1 Add mapper 541 2020-01-28 11:06:43 +08:00
negativeExponent
dca5ff5a1a Add mapper 372 2020-01-28 09:52:21 +08:00
negativeExponent
b07000a10e Add mapper 357 2020-01-28 06:27:09 +08:00
twinaphex
762f6ebed2 C89 buildfix 2020-01-27 22:29:56 +01:00
negativeExponent
3f756dc7fc Cleanup FCEU_MakeFName
- silence warnings: replace strncpy with strcpy instead. this should be safe since buffer is strlen+1 which should be enough for a null terminator (from sprintf)
- minor cleanup
2020-01-27 21:40:51 +08:00
negativeExponent
e1e48294f0 Remove unused variables 2020-01-27 21:40:13 +08:00
negativeExponent
b56fd973e3 Sanitize UNIF boardnames
- removes whitespaces on boardnames - as stated, some names can have whitespaces
- ignore character case when comparing - similar to above, boardnames can also be
  uppercase or lowercase in some.
2020-01-26 07:41:44 +08:00
negativeExponent
602fe391d5 Update libretro api headers 2020-01-25 17:59:49 +08:00
Twinaphex
31cab728d4 Merge pull request #315 from negativeExponent/buildfix
Buildfix
2020-01-25 03:04:54 +01:00
negativeExponent
cd30d8cc40 (fds.c) backport new fds disk handling
backported from fceux, commit by dinkc64 (fbneo)
0b4be4b639

Fixes saving issue with some games (Bubble Bobble, Super Lode Runner II, ...)
2020-01-25 08:43:37 +08:00
negativeExponent
dc85a40951 Buildfix
- use shorter strings for state names
- make variables static
- turn C++ comments to C comments
- cleanup dead code in boards
2020-01-24 19:57:24 +08:00
twinaphex
fb516c853a Fix C89 build 2020-01-23 19:46:08 +01: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
negativeExponent
305d7a048d Add new mappers
Added iNES 1.0/2.0 mappers
134 - replaced Mapper134_init with Bs5652_Init
391 - NC7000M
402 - 831019C J-2282

Added UNIF boards:
AB-G1L
BS-110
WELL-NO-DG450
KG256
2020-01-23 08:29:09 +08:00
negativeExponent
b910e4ed92 Update vrc2and4.c
- support for big bank CHR (Contra 3) matched by hash
2020-01-23 08:16:40 +08:00
negativeExponent
9abfd80669 Update unif SUPER24IN1SC03 (179 variant) 2020-01-23 08:07:01 +08:00
negativeExponent
4fd5e3ac8e Update mapper 319 (BMC-HP898F)
- submapper support added
2020-01-23 08:02:49 +08:00
negativeExponent
583a44dfd8 Update mapper 213 2020-01-23 07:49:08 +08:00
twinaphex
58030a374d VLAs not supported in C89 2019-12-11 16:46:06 +01:00
Joseph C. Osborn
dbcfcc574a Put back some formatting 2019-11-06 16:06:09 -08:00
Joseph C. Osborn
112be4b57e Memory map some PPU buffers with 1 << 31 mask
Except 4 PPU register bytes starting at $2000
2019-11-06 16:02:50 -08:00
Twinaphex
0b0c76a3f2 Merge pull request #292 from retro-wertz/mappers
Update ines-correct.h
2019-08-01 18:54:34 +02:00
retro-wertz
bf08124293 Update vsuni.c
Change this to normal comparison check
2019-08-01 23:57:52 +08:00
retro-wertz
e724410ac4 Update ines-correct.h 2019-08-01 23:47:55 +08:00
retro-wertz
878b0937f5 Update libretro_dipswitch.c 2019-08-01 22:25:58 +08:00
retro-wertz
d807bac15b Remove unused variables 2019-08-01 20:31:42 +08:00
retro-wertz
313f69daaf Silence warning and fix missing NULL terminators on core option struct
- silence warning: missing braces around initializer [-Wmissing-braces]
2019-08-01 20:02:17 +08:00
Twinaphex
0a0fdb8c2b Update libretro_core_options.h 2019-07-31 03:38:05 +02:00
retro-wertz
de89c5bcfb Use sprintf() instead of snprintf()
- fix msvc2010 build
2019-07-21 16:16:05 +08:00
retro-wertz
8446a7ba58 dipswitch.c: Rename src and header file
- (non function-changing update) just for consistency, append "libretro_" to source file to be consistent with new core option file
2019-07-21 10:27:26 +08:00
retro-wertz
be1d0a3dac diswitch.c: Fix crash issues and and cleanup
- Partial rewrite to clean up dipswitch struct to prevent potential crashes
- Fix problems on vs games without dipswitch to cause core to crash
- Create dipswitch struct based on new core options layout
2019-07-21 09:57:03 +08:00
Twinaphex
191cdcc11c Merge pull request #285 from retro-wertz/fix_m274
BMC-80013B: Fix incorrect bank map
2019-07-19 19:46:53 +02:00
retro-wertz
3659603d19 Add core option sublabels 2019-07-20 01:24:08 +08:00
retro-wertz
1df85a7483 BMC-80013B: Fix incorrect bank map 2019-07-20 00:55:17 +08:00
retro-wertz
3a4556dec6 Update libretro-common 2019-07-19 16:12:38 +08:00
hizzlekizzle
c2a432f0f3 Merge pull request #282 from retro-wertz/patch-1
Try to fix PS3 save state issue.
2019-07-16 17:12:52 -05:00
retro-wertz
26f2dcafe2 Try to fix PS3 save state issue.
In the past while fixing state problems i Wii, this section was the last one i found to be a problem as well. Ignoring this state variable fixes the last Wii state loading problem. PS3 has recently been reported as having state problems and could be similar issue. So, lets just ignore this state variable for all big-endian platforms.
2019-07-17 05:55:37 +08:00
retro-wertz
ec19b07b4d Mapper 226: Updated and remove duplicate mapper
- Updated mapper 226 to support 1.5mb carts, which in turn makes Unif Ghostbusters63n1 a duplicate.
- Unif 42in1ResetSwitch switch to mapper 233
2019-07-12 23:35:11 +08:00
retro-wertz
748f27571d BMC-K-3088: Fix outer bank size 2019-07-12 06:40:18 +08:00
retro-wertz
429f6c4545 UNIF: Update boards based on last commit
- fixes (if necessary), update and cleanup the following boards that now dont need alternate mappings:
- this is part of migrating unif to be usuable in ines mappers
- boards affected in this commit are:
  SUPERVISION16IN1, GS-2004, GS-2013, UNL-SMB2J, MARIO1-MALEE2, UNL-SA-9602B, UNL-KS106C / RESETNROM-XIN1
  UNL-AC08, NES-NTBROM, BMC-K-3033, BMC-GN-26, BMC-GHOSTBUSTERS63IN1, BMC-830425C-4391T
  BMC-830134C, BMC-891227 / BMC-CTC-12IN1, BMC-JC-016-2, UNL-T4A54A, UNL-8157, BMC-T-262
  (might have forgotten to list some...)
2019-07-11 16:34:39 +08:00
retro-wertz
2a7bd37276 UNIF: Change how roms are loaded in multiple prg/chr file versions
- Part of migrating UNIF to NES 2.0 conversion, which should make
  each unif roms to be compatible with each other. Some roms have
  separate prg and chr banks, which mapper has to do separate banking
  for such file versions.
- This change would  also make the boards to be easily usuable iNes/Nes 2.0.
2019-07-10 11:11:01 +08:00
retro-wertz
8f19234f55 Start assigning NES 2.0 mapper numbers to UNIF boards (256+ boards) 2019-07-09 09:07:23 +08:00
retro-wertz
51199e59d7 NES 2.0: Add preliminary support for iNES 2.0 format
Currently reads and sets the following:
- mapper number up to 4095, prg rom size, chr rom size
- chr ram (volatile + non-volatile), region (ntsc, pal, dendy or multi-region)

todo: submapper handling, w-ram and prg nvram at least...
2019-07-08 09:25:00 +08:00
retro-wertz
7e9b3b146d UNIF: Initial implementation of game overrides (move exiting ones out of mapper code) 2019-07-02 19:34:55 +08:00
retro-wertz
06c99179be Add support for Mapper 237 (Teletubies Y2K multicart) 2019-07-02 09:37:00 +08:00
retro-wertz
dce349932c BMC-411120-C/K-3088: Update PRG banking. Combine both boards
- Both are functionally the same, only dipswitch is different.
- These boards are assigned as NES 2.0 287 mapper in wiki
2019-06-29 17:11:49 +08:00
retro-wertz
634eb688c1 UNIF: Fix potential crash when accessing non-existing rom banks
- As stated, prevent a potential crash on some certain roms using split rom banks. This is done by counting the number of prg/chr banks loaded and using this as limit count during mapper bank switching.
- Update related boards.
2019-06-29 17:11:49 +08:00
retro-wertz
83b2f99527 Mapper134: Update and add support for UNL-T4A54A unif board 2019-06-29 17:11:49 +08:00
retro-wertz
fa21e91ef5 UNL-EH8813A: Update based on latest wiki 2019-06-27 01:03:17 +08:00