15 Commits
Author SHA1 Message Date
NovaSquirrelandSour 325c78fcbd GB: Link cable support with two local consoles (#77)
* GB: Link cable support with two local consoles

* GB: Fix crash when color blending is enabled

* GB: Fix formatting

* GB: Link UI fixes, control fixes, audio fixes

Copied from Sour's branch. Also a separate change to use separate savefiles.

* GB: Try to avoid crashes from buffer overflows

* GB: Separate savefiles with linked multiplayer

* GB: Add support for faster link speed

* GB: Move enum to correct file

* GB: Refactor, move serial transfer to function

* -Fixed secondary console sometimes running far ahead of the main console when frame counters did not match (e.g because one console had their LCD disabled longer, etc.) This would cause buffer overflows in the audio buffer.
-Fixed screen tearing when both consoles are not perfectly in sync (because of the LCD being disabled for a different amount of time, etc.)
-Fixed main console not calling PlayQueuedAudio properly mid-frame
-Reuse VS Dualsystem code to merge audio/video when possible/simple and moved that to AvMergeUtilities

Some visual glitches can appear on the secondary screen (for GB) while rewinding, but this can't really be fixed.

* Fixed warning (unused local variable)

* Prevent loading single-console save states when in dual-console modes

* Disable debugger for VS DualSystem's subconsole. Fixes issues when debugging VS DualSystem games

* Code cleanup

* Rework solution to disable debugger on second console to improve performance
Added InternalRunFrame for nes & gb to avoid checking for the presence of the second console after each cpu instruction

* Don't enable the linked GB option by default

* Removed unused function

* Netplay: Force game to reload after updating emulation settings when connecting to the server (or when the host changes game)
This ensures that e.g the GB link cable setting is applied and that the game loads correctly, regardless of the client's link cable settings (otherwise the game could load without the link mode enabled, etc.)

---------

Co-authored-by: Sour <[email protected]>
2026-05-15 02:35:27 -07:00
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00
Sour f5a957abf0 GBC: Fixed HDMA behavior when CPU is halted and then resumes
Fixes regression caused by the fix done for the hblank_vram_dma test rom.
HDMA should run immediately after the CPU resumes - fixes the menu in Nascar 2000
2025-07-02 21:49:20 +09:00
Sour 36d23cc47d GB: Performance tweaks 2024-01-23 22:26:01 +09:00
Sour bc3b265e3e GB: Improve BGP mid-scanline writes behavior + tweak halt timing for CGB
ppu_scanline_bgp and m3_bgp_change tests display the correct result
2024-01-23 22:26:01 +09:00
Sour 7af69362e8 GB: Tweak halt IRQ detection timing, change ppu vs cpu order of operation 2024-01-23 22:26:01 +09:00
Sour 5ff7d29ffe GB: Added CGB speed change delay
Matches speed_switch_timing_stat (but not speed_switch_timing_ly) - probably not quite accurate but better than no delay at all
2023-03-10 20:32:09 -05:00
Sour b147bc67d3 GB: Implemented OAM corruption bug 2023-02-26 23:47:27 -05:00
Sour 135cab16d2 Debugger: Trace logger - Fixed missing cpu cycle counter for GB 2022-09-19 18:15:12 -04:00
Sour 152abf690b Rename stdafx.h to pch.h 2022-09-08 21:29:52 -04:00
Sour 8b142de54a Input: Gameboy input config (core & UI) 2022-01-29 14:43:41 -05:00
Sour 2a3a955dc3 Reorganize files (debugger + netplay) 2021-04-09 20:01:50 -04:00
Sour 62efa091a8 Gameboy 2021-04-05 00:05:06 -04:00
Sour 86eb84cce0 Step 2 - fix includes, etc. 2021-04-03 23:16:13 -04:00
Sour 6cee666602 Step 1 - Move files 2021-04-03 21:09:05 -04:00