Flyinghead
0414a90500
dcnet: don't use timer for modem. better error reporting. race condition
...
Use io_context::post() instead of a timer to read from modem.
Notify user if connection to DCNet fails.
Fix race condition/crash with BBA.
Use lambdas instead of std::bind.
2025-02-16 17:33:56 +01:00
scribam
387e2427b4
deps: update sdl to version 2.32.0
2025-02-10 18:13:12 +01:00
Flyinghead
5187258f4b
dcnet: BBA support
...
Stop network service when bba is reset. Start it on first frame out.
dcnet: close connection on dhcp release
picoppp: close all sockets and acceptors when stopping.
2025-02-10 18:12:24 +01:00
Flyinghead
c7499df3a8
cheats for Aero Dancing i & i2 in BBA mode
2025-02-08 16:17:15 +01:00
Flyinghead
f3c838d19d
dricas auth cheat for Aero Dancing i - Jikai Saku Made Matemasen
2025-02-05 18:29:56 +01:00
Flyinghead
b9df7d3469
network digital outputs: check config option when game starts
...
Avoid the need to restart when enabling or disabling this option
Send game name to newly connected sockets
ignore SIGPIPE (telnet)
Log network errors
2025-02-04 17:46:02 +01:00
Flyinghead
bf1d4a56ae
gdrom: fix savestate compatibility issue
...
consequence of c860807fef
2025-02-04 17:27:47 +01:00
Flyinghead
a682e20bbd
modem: modem must hang up as soon as reg20 is written
...
some games don't do a full reset and the modem would stay connected.
Remove debug file dumps.
2025-02-04 17:20:15 +01:00
Flyinghead
5b9dd96064
option to set the ISP username in flash rom
2025-02-04 17:17:38 +01:00
Flyinghead
a99a72589b
better cheats for dricas auth
2025-02-04 17:14:01 +01:00
James
77ed9c20de
Connect to DreamConn only once registered ( #1828 )
2025-02-03 18:19:22 +01:00
Flyinghead
7cb0fe53d7
add cheats to bypass dricas authentication
...
Aero Dancing i
Daytona USA (JP)
Sega Tetris
Golf Shiyou Yo 2
Hundred Swords
2025-02-03 18:18:28 +01:00
Flyinghead
3db0fce9b6
bypass dricas auth in aero dancing i
2025-02-02 17:12:54 +01:00
Flyinghead
6a15e7a3aa
rend: LoD0 of VQ YUV textures is invalid. Use LoD1 instead.
...
Fixes background magenta textures in WSB2K2. Issue #1038
2025-02-02 17:11:22 +01:00
Flyinghead
914fa29d31
gdrom: increase dma delay for small DMA transfers
...
Fixes WSB 2K2 freezes.
Issue #1038
2025-01-31 18:09:33 +01:00
Flyinghead
c143cae09b
disable Daytona USA (US) widescreen cheat
...
breaks online features
2025-01-31 15:32:18 +01:00
James
a35e8214df
Serial comm update ( #1820 )
...
* Broke apart DreamConn and DreamcastControllerUsb implementations; added serial timeouts; process serial in thread; removed crc from DreamcastControllerUsb sdl definition
* Added missing include statements
* Changed INFO_LOG to NOTICE_LOG on a couple of lines
* Clear the read queue once string is pulled off of it
2025-01-28 17:27:26 +01:00
Flyinghead
d84108de32
maple: yet another maple timing change
...
Use 2 Mb/s for console and 740 Kb/s for devices.
Fixes Silent Scope vmu load issue at boot. Issue #1796
D+Vine has issues detecting A and B presses with one controller
connected but it does work eventually. No issue with more than 1
controller. Issue #1279
Power Drift only boots with one controller connected. Crashes with 2 or
more.
2025-01-28 17:26:22 +01:00
Flyinghead
1513c6cab8
msvc build fix
2025-01-27 17:47:22 +01:00
Mike Kosek
34104724a6
Added config file override for DreamcastControllerUsb Serial Device
2025-01-27 17:30:46 +01:00
Flyinghead
b70c2791b2
dynarec: proper ftrc implem. (arm32/64) Use double for fipr/ftrv
...
Use double for canonical FIPR and FTRV on all platforms.
Fix interpreter implementation of FTRC.
Fix canonical implementation of cvt_f2i (FTRC).
arm32: use Vfma instead of Vmla for FMAC. Vfma does not a fused
muliply-add, Vmla doesn't.
arm32: Use canonical implementations of FIPR and FTRV.
arm32,arm64: Correct implemetation of cvt_f2i (FTRC)
Fixes desync with NBA 2k1/2k2 online games.
2025-01-27 17:30:06 +01:00
scribam
ccdd53ee0e
deps: update sdl to version 2.30.11
2025-01-25 17:02:56 +01:00
Mike Kosek
26d386f833
Fixed handling of asio::io_context
2025-01-25 17:02:18 +01:00
Mike Kosek
ce0060126e
Now adding mappings for Dreamcast Controller USB during input_sdl_init()
2025-01-25 17:02:18 +01:00
Mike Kosek
4389a3ffa6
Reverted Dreamcast Controller USB mapping workaround
2025-01-25 17:02:18 +01:00
Flyinghead
b3fa453d75
dreamconn: asio::serial_port isn't defined on all platforms
2025-01-25 17:02:18 +01:00
Mike Kosek
32c274f407
Updated serial device search on Windows to select only matching VID/PID
2025-01-25 17:02:18 +01:00
Mike Kosek
cb2d3e3776
Maple Message to Dreamcast Controller USB now prefixed for compatibility with newest version
2025-01-25 17:02:18 +01:00
Mike Kosek
28f5dd983e
Now properly setting and checking left/right Trigger
2025-01-25 17:02:18 +01:00
Mike Kosek
160828a4c7
Overrode default mapping for DreamcastControllerUsb on MacOS/Windows
2025-01-25 17:02:18 +01:00
Mike Kosek
aee932808e
Removed unused function getDreamcastControllerType()
2025-01-25 17:02:18 +01:00
Mike Kosek
77636391fc
Enabled the usage of VMUs and Rumble Packs with Original DC Controllers
2025-01-25 17:02:18 +01:00
Flyinghead
944af44c7f
naomi: some digital outputs still missing for f355
...
Lamps use 14 bits of output in f355.
2025-01-25 17:00:48 +01:00
Flyinghead
1b6bf25e7a
naomi: broadcast digital outputs even when using FFB drive
...
The first byte is for lamps, the next two are for FFB.
Fixes missing lamp notifications when broadcasting digital outputs
(F355).
2025-01-23 18:40:24 +01:00
Flyinghead
aa65b81f89
switch build fix
2025-01-23 18:34:58 +01:00
Wunkolo
da9f030a0e
vk: Refactor swapchain format selection
...
Use a series of stable-partitions to sort the list of available formats
to find the best candidate surface-format/color-space that is a non-sRGB
format being presented in an sRGB color-space. Vulkan mandates that all
surface formats that have SRGB forms must also support a UNORM form.
This is basically just RGBA8/BGRA8 on all platforms still, but in a way
that is still capable of falling back to secondary formats in a stable
way in the case that the primary choice is not available. Mobile
devices especially have a LOT of secondary HDR surface formats and other
weird formats that can be used to present such as RGBA16 or RGBA565.
With stable partitions, if we can't get our best option then there is
always a "next best thing" to fall back on rather than relying on the
driver-order.
2025-01-22 18:28:55 +01:00
Wunkolo
a0e1eb0005
vulkan: Allow native `RGB8` screenshot framebuffers when available
...
Some notable devices support native RGB8 color-attachments:
https://vulkan.gpuinfo.org/listdevicescoverage.php?optimaltilingformat=R8G8B8_UNORM&featureflagbit=COLOR_ATTACHMENT
This removes the need to do a manual RGBA->RGB format conversion on the CPU in favor of a direct memcpy from the downloaded texture, when available.
2025-01-22 18:27:20 +01:00
Flyinghead
5cc15429cd
Force Native Depth Interpolation on UWP/Xbox. UWP build fix
2025-01-22 18:26:29 +01:00
Flyinghead
18656f5986
picoppp: terminate MiniUPnP in a background thread
2025-01-21 18:21:47 +01:00
Flyinghead
536be34853
dcnet: update emu network state when connected
2025-01-21 18:19:39 +01:00
Flyinghead
5b513cac5b
gl: use textureProj for palette texture sampling when possible/available
...
Fixes UV precision issue when doing the Z-divide manually.
Issue #1804
2025-01-21 18:18:05 +01:00
Flyinghead
5efdf58e85
custom texture: skip updating a texture if its hash hasn't changed
...
Some textures are frequently updated because of their location in vram,
close to a hotspot. This causes the custom texture to never be loaded.
This change will skip the unneeded texture update, allowing the custom
tex to replace it when available.
Issue #1812
2025-01-21 18:12:10 +01:00
Flyinghead
a5a338d408
experimental DCNet cloud service
2025-01-09 18:48:29 +01:00
Edward Li
3114344414
[macOS] Fix booting game stuck at "Starting..." when Video Routing is enabled with OpenGL
2025-01-09 13:59:54 +01:00
oltolm
20ba79668f
fix compiler warnings
2025-01-09 13:59:21 +01:00
Wunkolo
9344856c7e
ggpo: Fix malformed template constructor
...
This form is not needed for a template-class's constructor.
Fix for C++20 builds
2025-01-05 22:06:37 +01:00
Wunkolo
b2c1d134e1
deps: Update luabridge to 2.8
...
From 2.6 to 2.8. Includes some C++20 fixes.
2025-01-05 22:06:37 +01:00
Flyinghead
3cf4808033
fix perf regression on macOS and iOS. Add Silent Scope (JP) identifier.
...
Regression introduced in f3a3364
CopyToVRAM wasn't enabled for Silent Scope (JP). Issue #1796
2025-01-05 22:06:37 +01:00
Flyinghead
1bd894f941
rend: reset scissoring before drawing final modvol quad
...
See d618abc320
Issue #1797
2025-01-05 22:06:37 +01:00
Edward Li
8dc55721d0
Generate Xcode project which can support both iOS and iOS Simulator
2025-01-05 22:06:37 +01:00
scribam
c94deaee9d
build: drop unsupported architectures
2025-01-05 22:06:37 +01:00
Flyinghead
42752acef5
Fix crash when reading 2448-byte sectors
...
Fixes MINIDUMP-5J0, MINIDUMP-5M7, MINIDUMP-5M8, MINIDUMP-5MA,
MINIDUMP-5MF
2025-01-05 22:06:37 +01:00
Flyinghead
a3902fc278
sdl: disable rumble when rumble power is set to 0
...
Issue #1766
Issue #1783
2025-01-05 22:06:37 +01:00
Flyinghead
5add29cbed
fix perf regression on macOS and iOS. Add Silent Scope (JP) identifier.
...
Regression introduced in f3a3364
CopyToVRAM wasn't enabled for Silent Scope (JP). Issue #1796
2025-01-05 10:21:54 +01:00
Flyinghead
5a1c3f80f5
msvc32 build fix
2025-01-02 13:55:39 +01:00
Flyinghead
a0e8e9a9df
libretro: windows build fix
2025-01-02 12:11:45 +01:00
Flyinghead
45f4378184
network: use asio for modem/bba. DirectPlay4 support
...
DirectPlay4 support: StarLancer, PBA Bowling
miniupnp: remove unused stuff
2025-01-02 11:27:11 +01:00
Flyinghead
c7d030c2e6
uwp: enable vmem. fix dynarec crash. windows: dll loading utility
...
uwp: Fix crash in x64 dynarec when rewriting due to wrong unprotect
range.
uwp: load MapViewOfFileEx dynamically to map regions at a given address.
dll load and function lookup utility.
2025-01-02 11:13:25 +01:00
Flyinghead
2bee6b1ce4
picotcp: fix msvc build. reduce logging
2025-01-02 11:01:58 +01:00
Flyinghead
522505273e
miniupnpc: minissdpc.c: fix memory allocation error
...
backport
9698973600
2025-01-02 10:57:38 +01:00
Flyinghead
0481f5464d
misc non-functional changes
2025-01-02 10:54:19 +01:00
Flyinghead
7478476f9c
multithreading utilities (periodic, worker thread)
2025-01-02 10:50:46 +01:00
Flyinghead
76c3695f6e
log: support udp log server
2025-01-02 10:35:27 +01:00
Flyinghead
e18ada7225
rend: reset scissoring before drawing final modvol quad
...
See d618abc320
Issue #1797
2024-12-31 18:22:07 +01:00
Edward Li
f3a33642f8
Generate Xcode project which can support both iOS and iOS Simulator
2024-12-30 12:23:27 +01:00
scribam
2f03c1b147
build: drop unsupported architectures
2024-12-30 12:22:59 +01:00
Flyinghead
d01cbde41c
Fix crash when reading 2448-byte sectors
...
Fixes MINIDUMP-5J0, MINIDUMP-5M7, MINIDUMP-5M8, MINIDUMP-5MA,
MINIDUMP-5MF
2024-12-30 12:20:29 +01:00
Flyinghead
11068012fe
picotcp: support threads with msvc. Fix msvc pragma push issue
...
Enable threading support with msvc, similar to posix.
Fix missing pragma pop after picotcp include files
2024-12-30 12:15:36 +01:00
Flyinghead
a06791780d
Merge remote-tracking branch 'origin/dev'
2024-12-29 10:59:49 +01:00
Flyinghead
ee1a7167f6
dreamconn: open pause menu when LT+RT+Start is pressed
...
Issue #1305
2024-12-28 15:39:11 +01:00
Flyinghead
10aaec1619
dreamconn: send data with socket to avoid fragmentation. Build fix
...
Issue #1305
2024-12-28 12:21:26 +01:00
Flyinghead
553f77c675
dreamconn: send buzzer messages. Rename controller. Use asio iostream
...
Issue #1305
2024-12-27 18:47:12 +01:00
Flyinghead
9402981b43
net: add asio. use it for the gdb agent
2024-12-27 18:39:13 +01:00
Flyinghead
9038ef6d8a
sdl: disable rumble when rumble power is set to 0
...
Issue #1766
Issue #1783
2024-12-26 16:31:23 +01:00
Flyinghead
1d290560e0
picotcp: accept PSH flag in SYN+ACK packets
...
Windows CE adds the PSH flag to SYN+ACK packets, which isn't normally
valid, so just ignore the flag. See dcgamespy filter in dreampi.
2024-12-26 13:04:07 +01:00
Flyinghead
59e844db15
picotcp: Integer Overflow in pico icmp4
...
upstream
cc923d2a12
2024-12-26 12:38:26 +01:00
Flyinghead
6853238c8b
picotcp: Discard incoming TCP segments with zero-len options
...
upstream
7aa288510a
2024-12-26 12:12:48 +01:00
Flyinghead
f0aa1abf89
picotcp: Fixed bug in tcpopt_len_check (rolling back index).
...
upstream
f569ed8fb6
2024-12-26 12:03:09 +01:00
Flyinghead
cfd3677746
picotcp: add socket event before socket is deleted
...
Socket callback is called with PICO_SOCK_EV_DEL just before the socket
is deleted. After returning from the callback, the socket pointer is no
longer valid.
2024-12-26 11:45:58 +01:00
Flyinghead
50a10598e4
picotcp: Resolved memory leak
...
upstream
83527c69d3
2024-12-26 11:33:26 +01:00
Flyinghead
b9fdd5070b
dreamconn: detect dreamconn+ with VID/PID. Send maple data as text.
...
Create DreamConn gamepad when detected.
Send/receive maple data in ascii dump form.
Simplify maple device creation.
Issue #1305
2024-12-20 20:02:58 +01:00
Flyinghead
6c3d77b012
more windows build fix
2024-12-16 18:14:21 +01:00
Flyinghead
7fee0d2d29
cheat to work around fur fighters hanging
...
Root issue seems to be TCNT0 returning the same value twice, which
breaks the game calculation of the game speed/frame rate.
Issue #145
2024-12-16 17:54:02 +01:00
Flyinghead
dfd4dbebc4
fix windows build
2024-12-16 17:34:38 +01:00
Flyinghead
34a5e7f47d
input: dreamconn+ support prototype
...
Issue #1305
2024-12-16 17:17:45 +01:00
Flyinghead
3f8d645c42
rend: last frame was sometimes presented after the game is stopped
...
When the clearLastFrame flag is set, renderers should return false from
Present() and RenderLastFrame() until a new frame is rendered.
2024-12-15 15:55:28 +01:00
Flyinghead
ecd0305a60
fix build without dynarec
2024-12-14 19:43:32 +01:00
Flyinghead
667e3906d8
sh4: work around previous SCIF issues when loading a state
...
Force SCIF_SCBRR2 to 8 bits when loading a state.
See e03e11b8a9
and
6115a918b2
.
2024-12-14 19:13:05 +01:00
Flyinghead
e5b1d56a7c
rend: split texture conversion routines into their own file
2024-12-14 19:07:18 +01:00
Flyinghead
d789b57412
rend: get rid of globals for fog/palette updates & tex cache flush
...
Add state vars to Renderer
Use events to detect loading a state and terminating the game.
Don't present last rendered frame after game terminated.
2024-12-14 17:00:51 +01:00
Flyinghead
825778445a
ui: show boxart cover when starting a game
2024-12-14 16:54:18 +01:00
Flyinghead
20517cf0da
vgamepad: enable touch mouse when lightgun used
...
Use unique touch mouse class for iOS and Android.
Enable touch mouse for arcade lightgun games or when maple device A is a
lg. Disable it otherwise.
android: only display controllers that actually send events, including
system mouse and keyboard. Use separate Touch Mouse and System Mouse.
iOS: fix missing button input for touch mouse. Don't bubble up touch
events that hit vgampad buttons or controls.
2024-12-14 16:18:35 +01:00
Flyinghead
421245aeba
lightgun xhair: centralize logic in crosshairNeeded()
2024-12-13 17:21:32 +01:00
Flyinghead
686f08e7dd
vgamepad: hide btn0 and map reload to btn1 for lightgun games
2024-12-13 16:49:57 +01:00
Flyinghead
4af1d096de
audio: reset buffer on loadstate/term. Fix null audio driver on windows
...
Eliminate audio clicks when loading a state or starting the next game.
Fix overflow in null audio driver on windows. Detect fast forward and
reset time counter.
2024-12-13 15:58:32 +01:00
Flyinghead
27a0497dd5
win32: fix opening CD drive on command line. libretro build fix
2024-12-12 15:52:07 +01:00
Flyinghead
9ea0563a7a
gdrom: stop cdda playback when reaching session lead out
...
Issue #1654
2024-12-12 14:27:23 +01:00
Flyinghead
a46677e64e
ui: add cancel button when inserting a disk
...
Issue #1566
2024-12-12 10:17:45 +01:00
Flyinghead
a7f2008763
rend: support planar VQ textures
...
Fixes gens4all emu in teenage mutant ninja turtle collection.
Issue #868
2024-12-12 10:14:30 +01:00
Flyinghead
34961daaec
gdrom: add support for hardware CD-ROM devices
...
Use libcdio to read CD/DVD/BD drives (linux, windows, bsd)
Get rid of old ioctl win32 driver.
Add detected CDROM devices to game list.
Issue #1654
2024-12-11 11:25:50 +01:00