Commit Graph

273 Commits

Author SHA1 Message Date
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
Lior Halphon aaf9a76b67 The vblank callback now reports the vblank type 2022-06-25 01:59:51 +03:00
Lior Halphon 16913f925b Oops 2022-06-24 14:24:24 +03:00
Lior Halphon 9a765820cc Runtime audio driver fallback 2022-06-24 14:18:53 +03:00
Lior Halphon fd6b734fd0 Add XAudio2.7 as an compile-time audio driver for vanilla Windows 7 2022-06-24 14:18:30 +03:00
Lior Halphon 9ae2c9fd54 Replace SDL2 audio with XAudio2 on Windows 2022-06-23 01:13:59 +03:00
Lior Halphon 24796acccf MBC7 mouse control in SDL 2022-06-10 23:51:06 +03:00
Lior Halphon 979d32faed Group keyboard and joypad controls into a submenu 2022-06-10 14:55:13 +03:00
Lior Halphon 197a475fab SDL Joypad controls for MBC7 games 2022-06-10 14:37:28 +03:00
Lior Halphon 95f5eeb40b Add audio recording to SDL 2022-05-21 18:18:34 +03:00
Lior Halphon 851d44869f
No reason for this to be a do...while 2022-04-29 01:11:11 +03:00
offtkp dc16104cfd fixes #442 2022-03-25 02:19:46 +02:00
Lior Halphon 8073e3d39e Visual refresh, update copyright year, crush PNGs 2022-02-24 00:38:27 +02:00
Lior Halphon a4209b47d0 Be consistent with hex casing 2022-02-13 16:58:44 +02:00
Anders cead58471d
Don't determine if there is a real console with AllocConsole 2022-02-02 22:22:31 +01:00
Lior Halphon a7f7530eed Preparation for future AGB-0 and B support 2022-01-30 18:11:35 +02:00
Maximilian Mader 13e0b90b47
[SDL] Fix loading of the configured DMG palette
There are four options for the DMG color palette:
- Greyscale
- Lime (Game Boy)
- Olive (Pocket)
- Teal (Light)

When loading the configuration from the `prefs.bin`
the configured `dmg_palette` gets normalized by applying
`mod 3` to it, limiting the possible values to [ 0, 1, 2 ],
thus selecting the “Teal” color palette will be saved as such,
but the next time the config gets loaded it gets reset to Greyscale.
2022-01-20 19:15:08 +01:00
Lior Halphon f237b1e9b9 CGB-0 support 2021-11-04 00:35:44 +02:00
Lior Halphon fd8c9bba5d Detect missing ANSI support on Windows 2021-10-30 16:03:33 +03:00
Lior Halphon 1f7b20251b Improved sanitation for save states for better security and stability 2021-10-30 16:03:13 +03:00
Lior Halphon 18007f0e53 MGB support 2021-10-23 23:28:54 +03:00
Lior Halphon 2f2e469790
Merge pull request #407 from SnowyMouse/master
Handle missing background.bmp
2021-10-20 20:34:13 +03:00
Lior Halphon 004b004f98 Fix inverted key buttons in the SDL menu, fixes #401 2021-10-09 15:27:18 +03:00
Snowy 20d580881a Handle missing background.bmp 2021-09-26 23:08:13 -05:00
Lior Halphon c25c94d142 Minor improvements to console behavior on startup 2021-09-10 14:17:07 +03:00
Lior Halphon c5d91fc448 New console readline-like interface for the SDL port 2021-09-09 00:13:09 +03:00
Lior Halphon d8a9f12a4f Smooth scrolling in the SDL port on macOS 2021-09-06 15:21:02 +03:00
Lior Halphon 94add1d172 Add "Harsh Reality" color correction mode 2021-06-25 19:57:56 +03:00
Lior Halphon a2d34c9bd9 Add -s/--stop-debugger flag to SDL, closes #392 2021-06-25 17:12:05 +03:00
Lior Halphon ebb0cb5e81 Added optional OSD (SDL) 2021-05-30 23:39:59 +03:00
Lior Halphon 3ed18a76da Added optional OSD (Cocoa) 2021-05-30 20:55:04 +03:00
Lior Halphon 75d3470d55 That code made very little sense 2021-05-19 00:15:02 +03:00
Lior Halphon fcbbecea17 Fix #386 2021-05-18 20:21:21 +03:00
Lior Halphon c944142b36 Fall back to .snX if no .sX save state found 2021-05-07 00:33:04 +03:00
Lior Halphon a4a8ad00d5 Display usage on invalid options 2021-05-06 00:26:45 +03:00
Lior Halphon 0dff3ef144 A flag to disable OpenGL, better and more stable handling of no-OpenGL mode 2021-05-06 00:23:46 +03:00
Lior Halphon 9fcdc082d2 Fix an SDL crash, minor tweak to BESS SGB 2021-04-17 16:37:55 +03:00
Lior Halphon 2078c2a8fb Use semantic popup icons instead of always using error 2021-04-15 02:42:31 +03:00
Lior Halphon 8a84a5897e Allow drag&drop of state files 2021-04-14 15:20:01 +03:00
Lior Halphon 2b263937da Allow make install under FreeDesktop 2021-02-27 14:32:07 +02:00
Lior Halphon bae91cdb1d Add RTC option to the SDL port, fix a bug where rewind setting didn't update 2021-02-26 01:04:24 +02:00
Johan Kotlinski 1a87c452b7 exit with error message instead of crash when a window cannot be opened 2021-02-14 01:31:49 +01:00
Lior Halphon 301c0f41c2 Merge branch 'master' of https://github.com/LIJI32/SameBoy 2021-01-31 19:17:56 +02:00
Lior Halphon 6798b1f11a Use a slider for temperature in the SDL GUI 2021-01-31 19:17:48 +02:00
phobos2390 bbfd16f63d Fix for tolower extension signed char issue 2021-01-25 23:37:46 -07:00
Lior Halphon 5c854dbdca Interference emulation 2020-12-31 00:07:04 +02:00
Lior Halphon 9e808b255c Escape now returns to the previous menu if used from a submenu in the SDL port 2020-12-27 00:03:40 +02:00
Lior Halphon 7fc59b5cf4 Let the SDL port choose a boot ROMs folder 2020-12-26 15:10:11 +02:00
Lior Halphon e1f797c212 Improved scrolling 2020-12-26 13:13:43 +02:00
Lior Halphon c471696fbb Scrollbar and mouse wheel support 2020-12-26 03:20:53 +02:00
Lior Halphon 6d5ce6c54d Better scrolling a spacing in the SDL UI 2020-12-26 01:45:03 +02:00
Lior Halphon 159d9d0348 Color temperature control 2020-12-25 14:17:57 +02:00
Lior Halphon aa2bdf2a1c Better support for non-QWERTY Latin layouts 2020-12-23 23:50:19 +02:00
Lior Halphon abce93640c Set a default value in the struct (instead of just during sanitation) 2020-08-22 14:20:44 +03:00
Lior Halphon e307de8064
Style fixes 2020-08-22 14:16:07 +03:00
Nadia Holmquist Pedersen cc37632714 Remove printf 2020-08-19 06:15:36 +02:00