Commit Graph

2677 Commits

Author SHA1 Message Date
Noah Sweilem dad9e4b704 Formatting fixes 2023-06-20 10:28:01 -07:00
Noah Sweilem 9148b26bd8 Move `edge_triggered` variables into `gb->apu_output` 2023-06-20 10:25:25 -07:00
Noah Sweilem 4213524286 Fix swapped wave channel volume 2023-06-16 19:04:12 -07:00
Noah Sweilem ae855d470d Use different sample index for square channel edge trigger depending on duty cycle 2023-06-11 16:23:26 -07:00
Noah Sweilem ec9536eede Try a modified edge trigger detection for pulse and wave channels 2023-06-11 15:44:28 -07:00
Noah Sweilem 7bdf8dbe47 Add initial edge trigger detection method
- GB_get_channel_edge_triggered()
2023-06-11 15:27:31 -07:00
Noah Sweilem 5c7b1f01a3 Add som APU query methods for libsameboy
- GB_get_channel_volume()
- GB_get_channel_amplitude()
- GB_get_channel_period()
- GB_get_apu_wave_table()
2023-06-10 14:23:15 -07:00
Lior Halphon 951d0b07f0 Give sliders the same treatment 2023-06-10 13:35:21 +03:00
Lior Halphon de9fc76a2c Make most preferences controls codeless 2023-06-10 01:10:06 +03:00
Lior Halphon d61e5f248d Drop the direct use of NSNotificationCenter for most preferences 2023-06-09 17:42:31 +03:00
Lior Halphon daf713132b ivar naming in Document.m 2023-06-09 16:28:58 +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 bed26daf73 Allow disabling SameBoy features when compiling as a library. Probably introduces some speed improvements to the Libretro core, as well as bsnes and BizHawk 2023-06-03 22:37:42 +03:00
Lior Halphon d62132be38 These should be in defs.h 2023-06-03 21:54:01 +03:00
Lior Halphon ee9b6c1444 Maybe this will fix it 2023-06-03 14:58:19 +03:00
Lior Halphon 406189b79e I don't know yaml 2023-06-03 14:54:24 +03:00
Lior Halphon 6eb42ab283 Also upload lib/ and include/ 2023-06-03 14:49:32 +03:00
Lior Halphon be171cfe66 Add a library target, complete with headers that strip implementation details out. 2023-06-03 14:39:21 +03:00
Lior Halphon 4254dcdb2c Fix incorrect initial value of register IE when playing GBS files. Fixes #544 2023-05-12 17:57:20 +03:00
Lior Halphon b8d6bb7fd2 Automatic detection of -Oz support 2023-05-11 01:42:46 +03:00
Lior Halphon c234111024 GCC doesn't support Oz, only Os 2023-05-11 00:31:59 +03:00
Lior Halphon 996ebaafa3 Use Oz for the frontend files, reduce some aggressive loop unrolling 2023-05-11 00:08:54 +03:00
Lior Halphon 96e337edac Automatic key mappings for wired Switch controllers 2023-05-10 20:55:13 +03:00
Lior Halphon 40b7e25126 Accurate emulation of SVBK, fixes audio in Flyeyes (unlicensed game) 2023-05-10 00:55:04 +03:00
Lior Halphon 06621d1dfe Fix GB_debugger_break on builds without the debugger 2023-05-10 00:54:34 +03:00
Lior Halphon 3e3ac23432 More likely/unlikely fun 2023-04-25 13:35:25 +03:00
Lior Halphon c6e187a80b Enable fast math 2023-04-25 13:08:34 +03:00
Lior Halphon 32a419ad2e Do not inline the slow path of frequently called functions 2023-04-25 13:08:19 +03:00
Lior Halphon 237e127b36 Add a comment 2023-04-11 12:37:13 +03:00
Lior Halphon 4421dedbb9 One last attempt 2023-04-11 12:33:10 +03:00
Lior Halphon 479c16e698 Try a better hint 2023-04-11 12:30:05 +03:00
Lior Halphon aaba172c02 This might hint GCC 9 and make it suck less 2023-04-11 12:23:50 +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 9a5aa6b5c8 Replace Ubuntu 18.04 with 20.04 (while keeping ubuntu-latest) 2023-04-11 11:14:53 +03:00
Lior Halphon a6de76eb2b Specify the deployment target when compiling NIB files, fixes #531 2023-04-09 21:23:07 +03:00
Lior Halphon 47ce95afb5 Fixed typo that caused the libretro core to crash during link mode. Fixes #534 2023-04-06 10:30:04 +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 7ac920d2be Double speed STAT conflicts 2023-03-05 00:32:24 +02:00
Lior Halphon 502f64e6d7 Remove some old TODOs 2023-03-04 20:34:41 +02:00
Lior Halphon e48eb3515d More double speed write conflict updates 2023-02-28 01:00:57 +02:00
Lior Halphon cc4baa1d28 LCDC write conflict emulation in double speed mode 2023-02-25 17:28:48 +02:00
Lior Halphon 1c8397e8f3 Prevent the console window from remaining open and orphaned in rare edge conditions 2023-02-24 19:13:11 +02:00
Lior Halphon f145f05f15 Timing adjustments to object line address calculation 2023-02-19 00:32:16 +02:00
Lior Halphon 29e920697a Object aborts are DMG only, commit 34cf0f5 accidentally made them happen on CGB 2023-02-18 22:31:29 +02:00
Lior Halphon 22afa576c2 Fix incorrect timing adjustment on LCDC object abort 2023-02-18 20:42:23 +02:00
Lior Halphon 42ce9c410b Dynamic rewind/forward speed in iOS 2023-02-12 18:25:33 +02:00
Lior Halphon ef8f3aff66 A bit more correct 2023-02-11 21:56:03 +02:00
Lior Halphon 8dd5e6d9b8 Improved emulation of joypad switching delay 2023-02-11 20:21:24 +02:00
Lior Halphon 59ecd4b9bc Explicitly set register A to 0 in the DMG, SGB, MGB, and SGB2 bootroms 2023-02-11 19:31:19 +02:00
Lior Halphon 947687ac0d Use standard function 2023-02-09 20:56:08 +02:00