Commit Graph

115 Commits

Author SHA1 Message Date
BearOso e92b93ca9c libretro: Clear SRAM after loading ROM. 2024-07-29 15:57:03 -05:00
ds22x 000aa6fa78
Fix Libretro netplay immediately disconnecting 2023-05-09 22:53:34 +02:00
OV2 33d84d31b8 libretro: remove unused S9xGetFilename, pass original rom filename when
loading (#836)
2023-03-28 18:10:18 +02:00
BearOso 16a45f7b92 libretro: Get rid of EndScreenRefreshCallback.
Just use S9xSyncSpeed, which was there all along.
2023-03-20 16:16:43 -05:00
BearOso 18b5a09a16 Fix libretro compilation. 2023-03-07 13:58:22 -06:00
BearOso 9ed560de2f Make SNES memory allocations static. 2023-03-07 13:58:21 -06:00
BearOso f3fafab8b3 Remove unused logger.cpp and logger.h. 2022-04-25 15:45:39 -05:00
BearOso 1085ed6fad Remove Settings.SupportHires
There's no point in disabling it at this point, so it's always supported.
2022-04-13 15:06:13 -05:00
Nikos Chantziaras 1ea6ef5061
libretro: Fix audio when video rendering is disabled
In commit 6628042fe3, audio upload was
moved from retro_run() to S9xDeinitUpdate(). This breaks audio when
runahead is enabled in RetroArch.

With second-instance runahead, S9xDeinitUpdate() is not called when
video rendering is disabled and thus the core instance responsible for
audio is not uploading the audio. With single-instance runahead, audio
is uploaded twice because video rendering is always enabled and thus
S9xDeinitUpdate() gets called twice per frame.

Fix this by introducing a callback that gets called at the end of every
screen refresh, regardless of whether or not rendering is active for
this frame. We can then decide in the callback whether or not audio
should be uploaded.
2022-04-12 16:08:54 +03:00
BearOso 6628042fe3 libretro: Get audio samples during frame callback. 2022-04-11 16:04:29 -05:00
BearOso aa6abace40 Create output buffer in core.
TODO: Fix Windows.
2022-04-10 16:41:16 -05:00
BearOso 0a20681778 libretro: Send all samples at frame end. 2022-03-21 18:31:28 -05:00
BearOso 2262544c4e libretro: Sound buffering change. 2022-03-21 14:53:21 -05:00
ds22x eb7ddae407 Create a separate aspect ratio option for '4:3 Preserved' 2022-02-14 13:44:49 +01:00
Nikos Chantziaras 1d1140db1c
libretro: Fix 4:3 aspect ratio to actually be 4:3 regardless of cropping 2022-02-02 20:13:17 +02:00
BearOso a4efafbd2e libretro: Fix interaction with Blargg filter and hires. 2022-01-30 20:03:34 -06:00
BearOso e705e71a97 Remove S9xChooseMovieFilename
This is integration of the frontend with the core. Disable
the button mappings that use it. The frontend should implement on
its own.
2020-08-07 14:08:51 -05:00
BearOso f04f1bbe44 Remove S9xChooseFilename
This is integration of the frontend with the core. Disable
the snapshot button mappings that use it. Any frontend should
implement those port commands its own.
2020-08-07 14:08:51 -05:00
BearOso 063b3a959c Move _splitpath and _makepath into core. 2020-08-07 14:08:51 -05:00
BearOso e322bbf109 Remove S9xSetPalette 2020-08-07 14:08:51 -05:00
jdgleaver ae5af44e60 Further sanitise core options 2019-10-11 22:00:26 -05:00
jdgleaver c0205338d8 Add core option sublabels 2019-10-11 22:00:26 -05:00
Yoshi Sugawara 44401058a1 Lightgun support
move touchscreen lightgun input handling to its own method; support touch sensitivity

support reversing super scope trigger/cursor buttons for games like Operation Thunderbolt and T2: The Arcade Game where cursor is used for primary fire

removed debugging statements
2019-10-11 22:00:26 -05:00
Brandon Wright 1b7cd843e1 libretro: Use burst phase with NTSC blitter. 2019-09-14 19:59:09 -05:00
Brandon Wright 52f521160a libretro: Ensure RetroArch's texture width is multiple of 4. 2019-05-11 16:18:38 -05:00
Brandon Wright 38105c85c2 libretro: Expose echo buffer hack. 2019-04-16 16:00:41 -05:00
Brandon Wright f70e072bd9 Revert to higher APU clock. 2019-04-12 12:10:51 -05:00
stellarporter 2d960df03e blargg filter 2019-03-30 19:20:48 -05:00
Brandon Wright 28a62e9bf2 libretro: Pass ROM directory for any unknown. 2019-03-08 18:43:50 -06:00
Brandon Wright 76b6342ca1 Remove most of GFX_MULTI_FORMAT. 2019-03-07 17:14:51 -06:00
OV2 d751e9916c libretro: only call RETRO_ENVIRONMENT_SET_GEOMETRY from retro_run
(fixes #509)
2019-02-28 15:17:41 +01:00
Brandon Wright f2069e8af9 Remove extra parameter from S9xInitSound
Explain disabling USE_SLANG in how2compile.txt
2019-02-27 11:02:22 -06:00
OV2 ef6e170a15 libretro: fix compile 2019-02-24 00:58:22 +01:00
OV2 51e7da6751 Get rid of some more warnings 2019-02-23 15:01:59 +01:00
Brandon Wright aa867abcd3 Use nominal frequency ratio for APU. 2019-02-19 17:50:25 -06:00
Brandon Wright 2164c86158 Remove S9xFinalizeSamples. 2019-02-12 18:27:33 -06:00
Brandon Wright 99c70cdfd6 libretro: Fix double-height mode with overscan crop. 2018-11-27 19:24:45 -06:00
Brandon Wright b590115594 GTK+, libretro: Don't clip between fields. 2018-11-01 17:14:38 -05:00
Brandon Wright 15930a4d79 libretro: Center 224 lines when crop overscan off 2018-10-24 17:26:50 -05:00
Brandon Wright 748e4aa40d libretro: use > instead of >= to compare heights. 2018-10-24 16:54:55 -05:00
Brandon Wright 51601c523c Merge remote-tracking branch 'libretro/master' 2018-10-24 15:36:15 -05:00
Brandon Wright 781704ac50 Center overscan crop in libretro. 2018-10-24 15:35:11 -05:00
finalpatch d7ebfaa83b Add core option "Block Invalid VRAM Access" (#184)
* Add core option "Block Invalid VRAM Access"
2018-10-17 07:49:27 -05:00
Brandon Wright c6ade49c5b libretro: Change 8:7 aspect ratio to uncorrected. 2018-10-03 17:32:50 -05:00
David Walters 40afbf32c5 lightgun overhaul 2018-09-27 16:23:16 +01:00
retrotalker 2b5f61661c
connect rifle controller 2018-08-26 12:07:14 -05:00
Brandon Wright 3c761968c7 libretro: Allow more granular SFX underclocks. 2018-08-22 15:21:26 -05:00
bearoso 72c25f8578
Merge pull request #406 from retrotalker/cursor
lightgun cursor grey typo
2018-08-21 10:57:59 -05:00
retrotalker d3cbb96c8d
lightgun cursor grey typo 2018-08-21 09:25:50 -05:00
bearoso 8f16e56826
Merge pull request #403 from retrotalker/cursor
change crosshairs
2018-08-20 10:33:08 -05:00