32 Commits
Author SHA1 Message Date
Craig Carnell 160460214b libretro: add VFS support 2026-08-12 14:49:04 +01:00
Rupert Carmichael c42ab459d5 libretro: Handle horizontal/vertical multipliers separately in video output code 2024-08-03 21:59:34 -04:00
Rupert Carmichael e285c5842e libretro: Complete overhaul of video output code
- Vertical overscan masking is now adjustable. 0, 8, 12, or 16 pixels
  may be masked from both the top and bottom of the video output.

- Aspect ratios are now calculated correctly, and the proper pixel
  aspect ratio will now be applied regardless of overscan settings.
  The 4:3 option will just use a 4:3 display aspect ratio regardless
  of overscan settings.

- Base sizes have been adjusted to reflect the ideal base sizes rather
  than the doubled sizes used internally. This makes the initial window
  size what one would reasonably expect instead of being doubled.

- Masking off the Super Game Boy border now works as it should. The
  aspect ratios chosen for general usage will apply to the masked SGB
  video output. The NTSC filter will now also work properly with this
  mode active. Additionally, this setting is now independent from the
  general overscan masking setting.
2024-08-03 20:06:51 -04:00
Rupert Carmichael 87ca842eb9 libretro: Add colour adjustment core options 2024-06-15 11:09:50 -04:00
Rupert Carmichael df246532d8 program: Add support for loading firmware and saving RTC, BS-X download data 2024-06-14 19:54:15 -04:00
Rupert Carmichael b5e8cbf87f libretro: Support blargg's NTSC filter 2023-08-06 01:03:24 -04:00
bslenul e17f941cba Add basic support for .bml 2022-09-27 01:22:57 +02:00
M4xw d308fe5507 PoC 2022-06-13 16:16:16 +02:00
ds22x b30bbe57c1 Fixed cheat codes not working when in uppercase 2021-09-06 20:17:22 +02:00
ds22x 7468ca11c4 Added an option to hide the SGB border when playing GameBoy games, as well as using the GameBoy's 10:9 aspect ratio for the 'Auto' and 'Pixel Perfect' (previously '8:9') core aspect ratio option when the border option is enabled 2021-09-02 19:58:59 +02:00
ds22x af7abac948 Merge changes of https://github.com/libretro/bsnes into repository based on https://github.com/bsnes-emu/bsnes 2021-03-07 16:52:10 +01:00
ds22x b747a52b4b Remove flashing bottom line when playing SGB games 2021-02-08 16:40:11 +01:00
ds22x e568913840 Backport https://github.com/bsnes-emu/bsnes/commit/d0efbfbcd937142969b47d65a04ffe4f5a77b50d
Also added a direct way of loading .bs games by using BS-X.bin in the system directory as a firmware file.
2021-01-30 15:23:37 +01:00
Yoshi Sugawara 2d5b69bfb9 removed todo comment 2020-12-27 16:28:05 -10:00
Yoshi Sugawara 66fdfbf135 fix touchscreen sensitivity fix when retro_pointer_superscope_reverse_buttons enabled 2020-12-27 16:27:01 -10:00
Yoshi Sugawara 1e02f2c47a fix case condition for super scope to return 0 if not supported 2020-12-27 16:17:49 -10:00
Yoshi Sugawara db94af8c04 support core option of reversing super scope trigger and cursor buttons for touchscreen lightgun 2020-12-27 16:03:30 -10:00
Yoshi Sugawara c00db1d65a support for core option for touchscreen lightgun 2020-12-27 15:56:12 -10:00
Yoshi Sugawara cd8ec6524b fixed turbo and pause button handling; refactored to touchscreen input handling methods 2020-12-27 08:51:15 -10:00
Yoshi Sugawara 884b06ec31 first cut at semi-working touchscreen superscope implementation 2020-12-27 08:11:57 -10:00
asuramaru 39c37ec2d1 Fix SNES auto-joypad polling
anomie's notes indicate that polling begins between cycles 32.5-95.5, but his
notes were slightly off. 32.5-95.5 is referring to the PPU dot clock. If you
multiply by 4 you get the cycle count, 130-382. It's pretty clear that in
256-cycle units, that would need to be 130-384 or you'd have no event when it
lands on cycle 384. Jonas Quinn confirmed that with his testing in any case.

I chose to split the cycle range in half and run things every 128 clocks. So
that reduces us to 32.5-64.0, or 130 to 256 + 258-384. The reason I chose 128
over 256 was so I could emulate the time it takes to perform the joypad
latching. I don't believe you can set the controller latch to 1 and then 0
immediately. It needs time to let the controllers see this happening and then
release the latch, and time to let that take effect. Polling the controllers is
only one operation so it makes sense that happens once every 256 cycles, which
is why I have the (counter&1) test for that.

Think about it this way: we know the polling sequence takes 4224 cycles, and
4224/256 is 16.5. Isn't that a little strange to have half a cycle? But if we
consider the latching is actually twice as fast, then it's 2x128 + 16x256. If we
run on a 128-clock counter, it becomes 2x128 + 16x2x128, or 34 total states. But
now since we don't actually poll on the second half of each 16x2x256 states, we
don't need to bother running the event there, so we can stop at 33 instead of 34
and it's the same thing. And by doing that, it turns our polling duration into
4224 cycles, just like we've observed.

Fixes #61.
2020-10-29 15:24:40 +11:00
Ruslan Tretiakov d0efbfbcd9 libretro: Add support for BS-X Satellaview 2020-10-02 23:57:23 +10:00
byuu 358a3ceed7 libretro: added cheat support [rtretiakov]
libretro: aspect ratio correction [rtretiakov]
libretro: MSU1 lookup fix [rtretiakov]
libretro: merged latest resources and overrides from upstream
libretro: changed audioFrame() from float to double [byuu]
2020-01-16 05:45:35 +09:00
byuu 2b9a22e1d8 Merge IOKit hotplug support patch [Sintendo]
Merge libretro Super Game Boy support improvement patch [fr500]
2019-10-31 09:19:27 +09:00
byuu 6b7e6e01bb v111.8
Serialize SDD1 decompressor
Major speedup to nall/serializer [Alcaro]
Removed fast PPU tile cache (major speedup for run-ahead mode)
2019-10-16 16:12:28 +09:00
byuu 95addddc46 v111.6
Added support for multiple serialization methods.
Revert to the fast method for games by default.
Default Tales of Phantasia and Star Ocean to the new strict method.
Added new Synchronization/Method settings file override.
Added new pseudo-fullscreen hotkey toggle by request.
Added new preset settings buttons to the driver settings panel.
Merged Super Game Boy support for the libretro target [rtretiakov]
2019-10-13 23:44:53 +09:00
byuu 0aea7fd5c5 NHL '94 (Japan) scanline override for fast PPU 2019-10-12 14:38:09 +09:00
byuu e598e81ab9 Add compatibility fixes to libretro target. 2019-10-05 13:48:35 +09:00
byuu 1ef227f482 v110.2
Added CRT-Royale [hunterk]
Improved libretro target [rtretiakov]
2019-09-25 15:13:12 +09:00
byuu 29caf77751 v109.2
Fixed alt-key menu activation on Windows.
Removed 2160p HD mode 7 due to Direct3D limit of 2048x2048 textures.
Reverted to safe ruby drivers when no configuration file is present.
Removed ASIO driver because nobody is interested in improving it.
Added macOS libretro target [rtretiakov]
2019-09-10 22:32:33 +09:00
byuu 29b13083d5 . 2019-09-07 18:22:55 +09:00
byuu 23467b5b1f Merged libretro target [Themaister and rtretiakov] 2019-09-02 10:19:18 +09:00