Commit Graph

227 Commits

Author SHA1 Message Date
Lior Halphon 57b50cab63 Work around bad Clang and GCC optimizations of inline compile-time consts (They can't be static before C23, which isn't supported by Clang) 2023-06-21 21:47:30 +03:00
Lior Halphon fef175dcc6 Use #pragma once for include guards, use #import exclusively on Obj-C files 2023-06-09 14:44:57 +03:00
Lior Halphon 5b37d3c402 Add a debugger reset command, with a frontend-handled reload option. Closes #537 2023-04-11 12:02:32 +03:00
Lior Halphon 147341a1d4 Add model/revision selection CLI option to the SDL frontend, closes #533 2023-04-05 18:22:28 +03:00
Lior Halphon 947687ac0d Use standard function 2023-02-09 20:56:08 +02:00
Lior Halphon 4f8b081f82 SDL cheats 2023-02-09 20:49:01 +02:00
Lior Halphon 38a130714f Make the SDL menus left aligned 2023-02-09 19:49:07 +02:00
Lior Halphon a040b1b395 Fixing a wrong default 2023-02-05 12:58:50 +02:00
Lior Halphon 65a646f050 Expose an API to reset the rewind buffer, explicitly reset on ROM changes 2023-02-02 00:18:01 +02:00
Lior Halphon d9bf739f52 Remove auto-generated comments 2023-01-12 23:19:24 +02:00
Lior Halphon f1e912b64f Map the B button to back on SDL menus 2022-11-06 13:52:30 +02:00
Lior Halphon 51aa09517d SDL cart swap 2022-09-17 13:57:38 +03:00
Lior Halphon 93eb32c40f Group all options into a menu 2022-09-17 13:33:17 +03:00
Lior Halphon 0ebfdb840a Channel toggling in SDL 2022-09-16 12:20:23 +03:00
Lior Halphon 7efd26c548 Allow building with older SDL versions 2022-08-24 23:59:38 +03:00
Lior Halphon 2c7343a6ad Automatically update the copyright year 2022-08-14 19:10:00 +03:00
Lior Halphon 6ecc2f15b5 Link to debugger help and sponsor pages 2022-08-14 18:44:40 +03:00
Lior Halphon 52ab200544 Accurately emulate CGB first frame behavior. Fixes #432, fixes #482 2022-08-09 00:54:31 +03:00
Lior Halphon 1bdd58d051 Auto-skip D-Pad configuration if hats are used, closes #480 2022-07-31 01:17:04 +03:00
Lior Halphon 7b5846fbaf Build break 2022-07-31 01:16:03 +03:00
Lior Halphon 3f7bcb9af2 Rename several color correction modes, add a new accurate mode 2022-07-30 13:32:40 +03:00
Lior Halphon 12655cb50c Fix Windows build 2022-07-25 22:21:44 +03:00
Lior Halphon ae14fcfbd7 Fix allow background controllers not working correctly on start up 2022-07-25 19:08:55 +03:00
Lior Halphon c5362023c8 Fix false positives when detecting unwritable save paths 2022-07-25 00:26:42 +03:00
Lior Halphon 10df4d7a13 Missing static 2022-07-24 14:54:14 +03:00
Lior Halphon 45bd5342e7 GBP support in SDL 2022-07-24 14:51:22 +03:00
Lior Halphon 5cd65f845d Warn when progress can't be saved 2022-07-24 13:23:50 +03:00
Lior Halphon 0e1d6545e9 Various improvements and fixes 2022-07-23 14:38:55 +03:00
Lior Halphon 04afa64597 Can't be NULL 2022-07-23 14:24:28 +03:00
Lior Halphon 8e125b31f6 macOS compatibility, stability 2022-07-23 14:21:31 +03:00
Lior Halphon 2a29570f17 Merge remote-tracking branch 'origin/master' into openal 2022-07-23 13:41:35 +03:00
Lior Halphon 349114097b Add joypad hotkeys to SDL 2022-07-19 23:55:34 +03:00
Maximilian Mader de10338962
Change `_audio_get_queue_length()` accoring to a856566b
This also reduces the internal audio buffer size down to 5 ms,
similar to the SDL backend at 96 kHz.
2022-07-18 22:24:00 +02:00
Maximilian Mader 8760cc5517
Mark `check_al_error()` as `static` 2022-07-18 22:16:34 +02:00
Maximilian Mader 91a2b459f9
Initialize the SDL audio system in the driver 2022-07-18 22:16:32 +02:00
Maximilian Mader d48037beec
Remove `__FILE__` usage in the OpenAL driver 2022-07-18 22:15:35 +02:00
Maximilian Mader 8fa02e0ea2
Make sure that audio resumes playing after clearing the queue 2022-07-18 22:15:35 +02:00
Maximilian Mader 7a24073f6d
Make sure that `AL_BUFFERS_PROCESSED` returns a valid value in `_audio_deinit()` 2022-07-18 22:15:35 +02:00
Maximilian Mader 64db300f24
Add an optional OpenAL audio driver for the SDL frontend
To compile the OpenAL driver specify `ENABLE_OPENAL=1` when
invoking `make`.
2022-07-18 22:15:35 +02:00
Lior Halphon a856566b54 Fixed GB_audio_get_queue_length to actually be the length rather than size, fixed XAudio2.7 audio overflow crash, changed the maximum lag limit to 1/8s rather than 1/4s. Closes #473 2022-07-18 21:56:47 +03:00
Lior Halphon d31f34cab4 Allow the user-configured keys to be used in the SDL menu 2022-07-17 20:30:09 +03:00
Lior Halphon 96b5306ff3 Make the scrollbar draggable in SDL 2022-07-17 19:57:29 +03:00
Lior Halphon cbf1a5481f Allow the SDL port to use custom palettes imported from Cocoa 2022-07-17 15:48:41 +03:00
Lior Halphon 9a966a5581 SDL GUI follows the DMG palette 2022-07-17 01:19:43 +03:00
Lior Halphon f9401300b5 SDL – Add setting to allow background joypad control 2022-07-16 18:23:08 +03:00
Lior Halphon 0dbfaef4cf Query the system sample rate on Windows and use it, rather than hardcode 96KHz 2022-07-08 19:51:10 +03:00
Lior Halphon 88f5b22bf6 Allow setting a non-default audio driver, fixes #466 2022-07-08 17:51:42 +03:00
Lior Halphon d9b8e829a5 Fix crash on Windows 8.x 2022-07-08 14:17:28 +03:00
Lior Halphon e466c3c5b1 Ehh oops 2022-07-02 22:40:37 +03:00
Lior Halphon a773297b3a Add CGB revision selection to the SDL frontend 2022-07-02 18:11:55 +03:00