Commit Graph

6153 Commits

Author SHA1 Message Date
harry 6e698433aa Added netplay debug mode for interface debug logging. 2024-04-08 07:07:08 -04:00
harry 9036dd07bd Added logic to allow netplay host to control pause state of clients. 2024-04-07 21:21:18 -04:00
harry e7d234136c Netplay sync state fixes. 2024-04-07 20:22:32 -04:00
harry 9f8310bbe1 Minor cleanup of netplay main menu. 2024-04-07 15:11:27 -04:00
harry e032d65811 For Qt netplay, changed client message dialogs to be non-blocking. This prevents re-entrant event loops. 2024-04-07 14:53:06 -04:00
thor2016 e751431099
Merge pull request #726 from negativeExponent/patch-1
unrom512.cpp: Expand support for PRG ROM size upto 4M
2024-04-06 10:07:36 -04:00
thor2016 3e1a8ec486
Merge pull request #728 from liyansong2018/master
Fix Path Traversal #727 in Netplay server
2024-04-06 10:05:08 -04:00
liyansong2018 48b48e7c13 Fix Path Traversal in Netplay server 2024-04-06 10:40:29 +08:00
harry f71b912afb Qt netplay fixes for processing input packet data. Don't attempt spawn dialog windows when in read loop, it will cause event loop re-entrancy issues. 2024-04-04 06:43:10 -04:00
harry 10418f551a Added framework for Qt netplay client status dialog. 2024-04-03 04:55:07 -04:00
harry 2fe563181e Added ROM unload handling logic for netplay. 2024-03-26 20:58:21 -04:00
harry 25cab8195f Bug fix for Qt win64 netplay, make sure rom files are opened in binary mode. 2024-03-26 20:20:01 -04:00
harry f50b70b87e Reduce netplay max tcp transmission size to 8k for ROM transfers. 2024-03-24 22:08:15 -04:00
harry 84654b1c06 Set low delay tcp option for netplay. 2024-03-24 21:34:07 -04:00
harry 6e22998336 Increased netplay tcp OS level send/receive buffer sizes. 2024-03-24 21:29:41 -04:00
harry a63f5e6051 Netplay modified data read code to allow smaller buffered data to arrive in pieces rather than waiting for full data set. 2024-03-24 20:49:17 -04:00
harry 450870ef77 Build fix for constexpr vars that conflicted with some win macros. 2024-03-24 16:29:13 -04:00
harry bed9b10380 Added netplay ROM comparison logic. 2024-03-24 15:42:10 -04:00
negativeExponent 79c533ffdc
unrom512.cpp: Expand support for PRG ROM size upto 4M
at least 1 cart in Mapper30 has 2MB. current implementation only allows carts of upto 512K
2024-03-24 10:27:52 +08:00
harry cc61b7b5ab Added app version check between netplay host and clients to ensure interface compatibility. 2024-03-23 19:01:33 -04:00
harry cc234ae04b Added on state loaded callback function to core so that driver code can be notified of a new state being loaded. In Qt driver, emit a signal on state loads that objects can connect to. For a resync of all netplay clients when server detects a new state load. 2024-03-23 07:32:25 -04:00
harry 2ff6084935 Qt netplay host game UI dialog improvements. 2024-03-21 22:29:15 -04:00
harry 5a0898ccbe For Qt GUI, added netplay client state load request functionality. 2024-03-21 22:06:40 -04:00
harry 55654f7191 For Qt GUI, changed instruction tracing to be enabled/disabled by registering callback functions. This increases efficiency when tracing is disabled. 2024-03-18 06:02:30 -04:00
thor2016 5eeeb2219f
Merge pull request #721 from vampirecat35/master
Update StringBuilder.h
2024-03-05 08:36:48 -05:00
Andy Vandijck 1926729680
Update StringBuilder.h
Fix nullptr_t to std::nullptr_t
2024-03-05 11:12:34 +01:00
harry 72d1a8edf2 Added netplay client frame throttling functionality to keep it in step with server. 2024-03-04 06:47:09 -05:00
harry 798c5a1d9c For NetPlay, added ability for client to request a ROM to load. 2024-03-03 20:30:35 -05:00
harry ee814f99e5 Added NetPlay server force resync and drop player UI functionality. 2024-03-03 13:09:28 -05:00
harry 75e9627aa8 Added framework for a net play host status dialog window. 2024-02-28 07:18:19 -05:00
harry d212b894a7 Added ROM loaded and NES reset signals to allow for net play to reconfigure accordingly during those events. 2024-02-26 07:02:59 -05:00
harry 145fc1614f Added a simple ping message to Qt netplay in an effort to measure round trip message delay. 2024-02-26 06:05:01 -05:00
harry 015f6a0acd Added client pause flag to status message for net play. 2024-02-25 16:22:18 -05:00
harry 6832eaa964 Added custom string class that mirrors the C++ std::string API but also allows for fixed size buffers on the stack. This new class also has various C style functions (like sprintf) built into it. 2024-02-25 16:08:35 -05:00
harry 0123e1fbf8 Added sync checking and network byte ordering code for Qt net play. 2024-02-25 08:40:36 -05:00
harry 8d93015a56 Put win64 auto build back to Qt5 until the Qt6 build issue can be solved. 2024-02-24 18:19:34 -05:00
harry 245a8701e0 More attempted to fix Qt6 win build. 2024-02-24 17:37:00 -05:00
harry 9d08ff453a Another win64 Qt6 build fix 2024-02-24 17:01:43 -05:00
harry ce0dd16abd QHelp build for Mac OSX 2024-02-24 14:03:14 -05:00
harry c14dd99efc Build fix for Qt win platforms when UNICODE defaults to wide chars. 2024-02-24 14:00:31 -05:00
harry f63ac15aa2 Help pages build fixes for Qt6. 2024-02-24 13:56:06 -05:00
harry de549f0eb9 Build fix for const qualifier not being respected. 2024-02-24 13:28:36 -05:00
harry 5f3ce5896a Compile fix for <QtPlatformHeaders/QWindowsWindowFunctions> header not existing in Windows Qt 6. Set Qt win64 auto build to build against Qt 6. 2024-02-24 10:35:09 -05:00
harry e2ac013cbb Run cppcheck static analyzer against code base. Fixed a few warnings. 2024-02-24 08:46:06 -05:00
harry c324a82526 More cleanup of sprintf usage in favor of snprintf. This is to resolve deprecation warnings on Mac OSX 2024-02-24 07:27:20 -05:00
thor2016 db8fd407ab
Merge pull request #718 from TheRealQuantam/tracefix4
Non-SDL/Qt Windows Trace Logging Optimizations
2024-02-24 07:10:36 -05:00
TheRealQuantam 0605967820 Non-SDL/Qt Windows optimizations 2024-02-24 00:11:56 -08:00
harry 548635a2f2 Resolved vsprintf deprecation compiler warning, swap out for vsnprintf 2024-02-23 22:56:27 -05:00
harry 37574f9bef More cleanup of sprintf usage in favor of snprintf. This is to resolve deprecation warnings on Mac OSX 2024-02-23 22:38:40 -05:00
harry 7b79d9db4c Partial cleanup of sprintf usage in favor of snprintf. This is to resolve deprecation warnings on Mac OSX 2024-02-23 20:53:01 -05:00