Commit Graph

523 Commits

Author SHA1 Message Date
Autechre
8ee716676c
Revert "added per-sound channel individual volume core options (#166)" 2020-12-24 16:11:09 +01:00
Autechre
1b92e92ae9
Revert "fix sound on platforms where 'unsigned long' is only 32 bits wide" 2020-12-24 16:10:17 +01:00
Stefan Sperling
60e3a04e81 fix sound on platforms where 'unsigned long' is only 32 bits wide
Commit 1d5f921d18 introduced a bit shift
that is too wide on 32 bit platforms. This results in the volume of
all channels being set to zero in the internal mixer.

Problem observed on a Raspberry Pi Zero W, where the compiler also
complains:

libgambatte/src/sound.cpp:106:63:
  warning: right shift count >= width of type [-Wshift-count-overflow]
  ch1_.update(buf, (soChVol_[0] * soVol_ * 0x1999999A) >> 32, cycles);
                                                          ^~

Fix this problem by expanding the constant 0x1999999A to unsigned long long
via the 'ULL' suffix. This results in all values in the expression being
promoted to 'unsigned long long', which is 64 bit wide everywhere.
2020-12-22 20:08:41 +00:00
twinaphex
4747311762 Update 2020-12-19 23:00:33 +01:00
Stefan Sperling
0e3c32f2b9 fix inverted src/dest arguments to memmove which broke GameLink client mode
Problem introduced by commit dca7f55d4f
2020-12-13 23:47:49 +00:00
eadmaster
a0a0f84238 added per-channel volume core options (#166)
fixes for max and 0 volumes

reworked accumulateChannels to preserve volume effects

minor fixes

reverted soChVol_ to long
2020-11-29 20:45:35 +01:00
jdgleaver
ba86c0288d Add rumble support 2020-11-18 11:19:34 +00:00
jdgleaver
ef82b5b2fb Optimise 'simple' frame mixing 2020-11-09 12:27:34 +00:00
jdgleaver
77075043fa Interframe Blending: Improve accuracy of 'Simple (Fast)' method, remove 'Simple (Accurate)' method 2020-09-22 10:49:44 +01:00
jdgleaver
8911bba67b Fix 'GB - Pocket' internal palette 2020-08-18 12:22:19 +01:00
jdgleaver
ac8f183f6b Update GBC colour correction parameters 2020-08-11 16:55:20 +01:00
twinaphex
2d1fbace46 Buildfix for MSVC 2003 2020-06-30 01:49:49 +02:00
twinaphex
33e38a28a7 Fix build for MSVC 2020-06-30 01:47:05 +02:00
twinaphex
3be8e34f82 Update libretro-common 2020-06-30 00:08:55 +02:00
twinaphex
084757e314 Update 2020-06-30 00:02:29 +02:00
twinaphex
dd36b1deb3 Update 2020-06-30 00:02:09 +02:00
twinaphex
62150d63c5 Update 2020-06-30 00:01:32 +02:00
twinaphex
8aa95cebbb Update libretro-common 2020-06-30 00:00:35 +02:00
Rokkuman X (corrupted)
b181f8b71d
Game Boy palette corrected
A terrible mistake made the Game Boy Palette look entirely wrong
2020-06-26 04:30:36 +02:00
Rokkuman X (corrupted)
8bfe76bb80
Authentic palettes derived from original hardware screens (pt. 2)
There, only relevant commits and nothing else.
2020-06-25 21:26:09 +02:00
jdgleaver
2bcd8287aa Add optional LCD ghosting effect 2020-02-07 16:24:53 +00:00
negativeExponent
37122e03c4 Do not add pointers to memory map if they are not available
- skips sram when no sram is available
- skips extra RAM banks if not running in GBC mode

Reference: https://github.com/libretro/gambatte-libretro/issues/146
2020-02-07 20:10:54 +08:00
jdgleaver
d4b6fb2021 Add internal colour palettes from TheWolfBunny (https://www.deviantart.com/thewolfbunny/gallery/69987002/game-boy-palettes) + update libretro_core_options to v1.3 2019-10-10 16:40:27 +01:00
jdgleaver
2a474b39b0 Add core option sublabels 2019-07-23 16:04:01 +01:00
retro-wertz
a6205ee0bc Fix GBC memory map and add IO port range for cheevos 2019-07-16 20:33:52 +08:00
Colin Kinloch
bffd245a08 Correct bitmask button mapping 2019-06-27 23:45:03 +01:00
Aaron Kling
7b28ca8b40 libretro: jni: Switch stl to c++ in preparation for ndk r20
Also disable narrowing errors. This needs properly fixed later.
2019-06-22 21:26:02 -05:00
twinaphex
9fa18a0472 Update -add new RETRO_ENVIRONMENT_GET_INPUT_BITMASKS 2019-06-21 13:56:43 +02:00
Twinaphex
3fb9e9592e
Merge pull request #128 from rzumer/map-ram-banks
Update GBC memory map
2019-06-21 13:07:23 +02:00
hugoarpin
db1cd8666d Fix cheats for libretro
The cheats were not integrated properly, as a result, only the last
cheat was applied. This is because gamebatte expects all cheats to be
set in one go and separated by a semi-colon. But the libretro api wants
to apply cheats one at a time. Therefore every time a cheat is applied
it disables the previous one.

Also clearCheats was not properly implemented at all, it did not take
into account gameshark codes and it was simply not working for gamegenie,
therefore it was impossible to disable a cheat without reloading the core.
2019-05-22 16:21:33 -04:00
Raphaël Zumer
dca35e5831 Update GBC memory map 2019-04-15 16:51:03 -04:00
Raphaël Zumer
8d38122a41
Do not drop memory descriptor when SRAM is absent
If SRAM is missing, a length of 0 will be returned, which should not cause a problem when mapped.
2019-04-12 15:28:47 -04:00
Raphaël Zumer
0c4083a17b Map static GBC RAM bank descriptors 2019-04-06 16:57:48 -04:00
Raphaël Zumer
2bad4ec330 Map banked RAM, not bank 1 RAM, for libretro 2019-04-06 03:36:29 -04:00
Raphaël Zumer
be8e179587
Revert banked RAM size to a fixed 0x1000 2019-04-05 22:33:16 -04:00
jdgleaver
838630dc07 Update GBC colour correction using results from Pokefan531's latest research
(https://forums.libretro.com/t/real-gba-and-ds-phat-colors/1540/174)
2019-03-28 16:17:54 +00:00
jdgleaver
a064328b5b Add optional 'accurate' frame mixing mode 2018-12-03 16:12:01 +00:00
jdgleaver
0700f80ffe Add optional frame mixing 2018-12-01 12:48:14 +00:00
jdgleaver
42722608a2 Backport HuC3 mapper support from https://github.com/Dabomstew/gambatte-speedrun 2018-11-28 11:18:46 +00:00
jdgleaver
a93b163d98 Fix save states 2018-11-21 12:48:13 +00:00
jdgleaver
0495df62a6 Add optional 'dark filter' (a.k.a. eye saver, for use with games with white backgrounds) 2018-10-22 15:42:42 +01:00
jdgleaver
27160eb2ac Add the option to only apply colour correction when running a GBC game or using a GBC colour palette 2018-10-17 15:13:04 +01:00
jdgleaver
3270e361aa Add 'accurate' colour correction method derived from Pokefan531's gbc-colour shader 2018-10-17 13:22:40 +01:00
jdgleaver
738bca5044 Add palettes for original Game Boy, Game Boy Pocket and Game Boy Light 2018-10-16 12:36:05 +01:00
jdgleaver
4687abba52 Add SGB palettes 2018-10-16 11:21:48 +01:00
Sven
d6fd4f2a6f alter memory descriptors to accommodate bankswitched RAM size 2018-10-14 14:30:07 -04:00
ensra
60552679a6 Convert bzero to memset and bcopy to memmove. 2018-10-13 02:03:10 +01:00
Emery Hemingway
1a037ec8fc Disable retro_get_memory_* before ROM is loaded
If a frontend calls retro_get_memory_data or retro_get_memory_size
before a ROM is loaded the uninitialized cartridge memory is accessed.
2018-07-08 14:18:10 +02:00
SapphireTactician
c618630e31
Label Rename Redux Act 2
Changes from the FCEUX wording of the option to @fr500 's suggestion
2018-04-17 23:06:11 -04:00
SapphireTactician
b8fad1a51c
Edit Up/Down core option title to include left/right
Done as per @twinaphex
2018-04-14 19:03:35 -04:00