Flyinghead
8fdd1dde3d
RetroAchievements support
...
MVP
Issue #761
2024-04-29 14:59:47 +02:00
Flyinghead
d46b181084
ui: fix cosmetic issues
...
Limit Filter fields width to what's available. Issue #1488
Avoid bouncing loop when scrollbar appearance and responsive boxart size
work against each other. Issue #1489
2024-04-25 12:57:34 +02:00
Flyinghead
de6a43bd21
savestate: drop support for legacy libretro and <v16 savestates
2024-04-16 09:40:55 +02:00
Flyinghead
336706e728
move most os_* funcs to oslib
...
add os_DestroyWindow and os_UpdateInputState
2024-04-12 17:37:45 +02:00
C.W. Betts
8f486e71cb
Update types.h
...
Use angle brackets for including pthread.h
2024-04-12 09:24:10 +02:00
Flyinghead
a136583189
drop dispmanx support. move switch main() to its own file
...
Dispmanx support is provided by SDL
Enable omx audio and set TARGET_VIDEOCORE when building for RPi3
2024-04-11 16:27:28 +02:00
Flyinghead
06a6e26588
get rid of os_GetSeconds()
...
replace it with std::chrono-based getTimeMs()
2024-04-11 15:25:25 +02:00
Flyinghead
108c8a4b5d
vk: move macOS video routing code from context to renderer
2024-04-10 17:31:23 +02:00
Flyinghead
9e916ca1c9
minor input and lua fixes
...
Make macOS keyboard class with haptic code
Call SDL_JoystickSetPlayerIndex using maple port
Add Network event for LUA
Set proper controller unique id on iOS
rumblePower wasn't copied over new mappings.
2024-04-10 17:24:47 +02:00
Flyinghead
42e98e86d0
set thread names
...
Name all threads to help debugging and improve crash reports (windows
only)
Add ^C handler for clean exit on linux
2024-04-10 17:08:24 +02:00
Flyinghead
010fba15a8
macOS build fix
2024-04-08 21:26:18 +02:00
Flyinghead
bf249061cf
thegamedb: ignore common disk ids T0000 and T0000M
...
These are default disk ids and shouldn't be used to identify media
2024-04-08 19:09:14 +02:00
Flyinghead
24db1422b8
ui: rearrange Settings > Video screen
...
Issue #665
2024-04-08 19:07:44 +02:00
Flyinghead
a6c4530e22
vulkan: allow custom GPU driver loading with libadrenotools
...
Issue #1471
2024-04-07 12:27:54 +02:00
Flyinghead
e8340bfa5e
maple: implement AllStatusReq for controller and VMU
2024-04-07 11:47:42 +02:00
Flyinghead
eaa22a49d1
msvc build fix
2024-04-06 19:07:27 +02:00
Flyinghead
4f87a3556e
Fix vmu beep frequency
2024-04-06 17:43:19 +02:00
Flyinghead
41d418ed25
bump libchdr to match master
2024-04-06 17:21:27 +02:00
scribam
a0c81d2f2a
deps: update sdl to version 2.30.2
2024-04-03 10:50:17 +02:00
flyinghead
d6efbc513c
win: fix dump textures and box art saves when path contains non-ascii
...
Texture dumping and local boxart scraper were failing on windows if
image path contains non-ascii chars. nonwide::fopen must be used.
2024-04-03 10:49:40 +02:00
Flyinghead
236b747db8
gl: fix GLES2 build
...
Issue #1470
2024-03-28 17:48:39 +01:00
Flyinghead
c9fafa0ed1
widescreen cheats for Surf Rocket Racers (US) and Love & Berry 1 and 3
...
Courtesy of Goddamn Superhero
2024-03-26 18:43:38 +01:00
Flyinghead
f346bcd68b
elf: only load PT_LOAD sections
2024-03-24 10:16:02 +01:00
Alexandre Bouvier
40cdef6c1c
cmake: allow system glslang library
2024-03-19 14:16:10 +01:00
Bobby Smith
8252a28e48
[Libretro] Check for per-pixel compatibility and hide the option if not supported
2024-03-17 17:55:23 +01:00
Flyinghead
c7ee42f0ba
ios: don't use glad
...
Fixes crash at start up on iOS.
Issue #1461
2024-03-17 17:54:37 +01:00
Flyinghead
e27b5dc1aa
Merge remote-tracking branch 'origin/master' into dev
2024-03-16 19:40:48 +01:00
Flyinghead
056a02357d
Cardcaptor Sakura widescreen cheat
2024-03-14 13:22:44 +01:00
Flyinghead
6115a918b2
arm dynarec: apply mask to mem write8 and write16 value operand
...
Compilers do not cast the operand, which results in u8 handlers being
called with an u32 value.
2024-03-14 13:21:10 +01:00
Flyinghead
3ffb09ec72
gl: fully recreate opengl texture when loading a custom one
...
Regenerate texID and call glTexStorage2D when loading a custom texture
(GL 4.2+, GLES3).
rend: missing old_vqtexture_hash in move constructor.
2024-03-14 12:56:11 +01:00
Flyinghead
de89d8cfed
rend: fix Space Harrier arcade in Shenmue
...
Use the original tex dimensions and make sure they never change between
updates.
2024-03-12 14:56:13 +01:00
Flyinghead
c7d6525c51
force PAL for MTV Sports - Skateboarding (EU)
2024-03-12 14:37:38 +01:00
Flyinghead
5ce1f92e5c
naomi: allow mapping of left & right trigger 2
...
Makes rear brake usable in wild riders
Issue #1450
2024-03-12 14:36:38 +01:00
Flyinghead
464defe0d7
don't force Native Depth Interpolation for AMD GPUs
...
Some AMD GPUs have issues with this option enabled so let the user
decide.
partial revert of 9f9b29b833
and
cab19ad54b
.
Issue #1445
Add BSD CI badge to README
2024-03-10 14:17:21 +01:00
scribam
d8c15de030
deps: update sdl to version 2.30.1
2024-03-07 15:01:59 +01:00
Flyinghead
b55054249f
ui: file dropping can start multiple games at once
...
Happens on macOS, linux and likely others.
Fixes MINIDUMP-2N4
2024-03-07 15:01:28 +01:00
Flyinghead
0aa8910742
ui: update gamepad settings for both console and arcade profiles
2024-03-06 16:53:43 +01:00
Flyinghead
43bb7c83f7
hide P3 and P4 light gun crosshairs for arcade games
2024-03-06 16:42:43 +01:00
Flyinghead
391da7023f
sh4: fix SCIF serialization
...
Fixes MINIDUMP-2M0
Add some diag logging to win_vmem
2024-03-04 17:02:42 +01:00
Flyinghead
b0a268b89e
richer discord presence using boxart from thegamesdb
2024-03-03 16:03:22 +01:00
Flyinghead
62d00578af
fix compile warnings
2024-03-01 12:58:53 +01:00
Flyinghead
dac5c008ab
Discord Presence support
...
Issue #1289
2024-03-01 12:34:49 +01:00
Flyinghead
588035d9eb
set currently played game name in the window title
...
Issue #28
2024-03-01 12:00:24 +01:00
Bobby Smith
f63a82afc4
Update libchdr
2024-02-29 19:58:39 +01:00
Flyinghead
c052822fd4
jojo's bizarre adventure (US) requires NTSC
2024-02-29 16:45:14 +01:00
Flyinghead
2846b3002b
rawinput: append device id to device name
...
Append device id to friendly name to distinguish between generic
HID-compliant devices.
Issue #664
Issue #835
Better UI for device tables using new imgui table API.
2024-02-29 16:43:53 +01:00
Flyinghead
19a240503d
minor clean up
2024-02-29 16:26:49 +01:00
Flyinghead
d6ae47d0f7
fix FreeBSD x64 segfault context
...
Issue #1401
2024-02-27 17:39:51 +01:00
Flyinghead
40a7c08d14
isofs: fix long directory listing
...
Directory entries can't cross a sector boundary, so reading must
continue on the next one.
Add list() method
2024-02-27 17:39:51 +01:00
Flyinghead
6f8a588794
bump depth scale for NHL 2K2
...
Fixes helmet rendering in team selection menu
Issue #1416
2024-02-27 17:39:51 +01:00
Flyinghead
156aafe95b
sh4: fix P4 region mapping and on chip ram addressing
...
P4 region is normally mapped outside of the sq and system registers
areas (E4-EF, F8-FE).
Fixes NHL 2K2 missing helmet and jersey textures. Issue #1416
Fixes invalid geometry in worldkicks series (using interpreter or 4 GB
vmem space)
Fix On Chip RAM addressing: bit 13 or 25 is used to select the bank.
2024-02-27 17:39:51 +01:00
scribam
1017d3eb95
deps: sync imgui_impl_vulkan.cpp with upstream
2024-02-27 17:39:51 +01:00
scribam
3059b43121
deps: update imgui to version 1.90.4
2024-02-27 17:39:51 +01:00
Flyinghead
93789e2a63
sdl: support multiple mice when allowed by the platform
2024-02-27 17:39:51 +01:00
Flyinghead
6639d6b167
naomi: fix shaktam inputs
...
Issue #1420
2024-02-27 17:39:51 +01:00
scribam
9a119e7646
bsd: update segfault context for arm64
2024-02-27 17:39:51 +01:00
scribam
c8462e1f78
deps: update imgui to version 1.90.3
2024-02-27 17:39:51 +01:00
scribam
50944772b7
linux: use egl with x11 instead of glx
2024-02-27 17:39:51 +01:00
scribam
952a785bf0
deps: update libchdr
2024-02-27 17:39:51 +01:00
scribam
f9eed1ed3f
deps: update libzip to version 1.10.1
2024-02-27 17:39:51 +01:00
Flyinghead
13edf858e3
init drive when running .elf. Skip special settings for BIOS and .elf.
2024-02-27 17:39:51 +01:00
Flyinghead
d45de9e8a9
gladLoader: check return code and log. cheats: light refactoring
2024-02-27 17:39:51 +01:00
Flyinghead
81cbf45bdb
samsptk: use cheat instead of extra depth scale
...
Use a cheat to fix the game bug instead of dealing with ginormous depth
values.
2024-02-27 17:39:51 +01:00
Flyinghead
d340b620c3
gdrom: delay "no disk" reporting to let the BIOS play the boot animation
...
Thanks to kihato for the prototype code.
Issue #587
2024-02-27 17:39:51 +01:00
Flyinghead
443d5a2ba6
pvr: apply a negative bias to background plane depth
...
Fixes skybox in Xtreme Sports. Issue #1381
Fixes background clipping in Blue Stinger (JP) intro. Issue #721
Fixes Windows CE yuv FMV black screen (4x4 EVO, Armada, Carsear's
Palace, Giant Killers, PBA bowling, Starlancer, Tomr Raider, Wild Metal,
Who wants to beat up...)
Get rid of ForceWindowsCE option
Force PAL for Super Runabout (EU)
2024-02-27 17:39:51 +01:00
Flyinghead
894a38fb71
ui: replace Exit by Close Game. Better format for some UI values.
...
Issue #1383
2024-02-27 17:39:51 +01:00
Flyinghead
aea37b3bd8
gdrom: set correct lead-out FAD of single-density area
...
Use end FAD +1 of track 2 as start of lead-out for single density area.
gdi: set track end FAD based on track size, not start of next track
chd: ignore pad frames when calculating end FAD
cdi: end FAD was one off
Issue #1386
2024-02-27 17:39:51 +01:00
Flyinghead
f629c352e1
fix FreeBSD x64 segfault context
...
Issue #1401
2024-02-26 11:27:03 +01:00
Flyinghead
ff91d1101a
isofs: fix long directory listing
...
Directory entries can't cross a sector boundary, so reading must
continue on the next one.
Add list() method
2024-02-25 15:59:22 +01:00
Flyinghead
4f1512d369
bump depth scale for NHL 2K2
...
Fixes helmet rendering in team selection menu
Issue #1416
2024-02-25 14:40:37 +01:00
Flyinghead
2dde1d5e7b
sh4: fix P4 region mapping and on chip ram addressing
...
P4 region is normally mapped outside of the sq and system registers
areas (E4-EF, F8-FE).
Fixes NHL 2K2 missing helmet and jersey textures. Issue #1416
Fixes invalid geometry in worldkicks series (using interpreter or 4 GB
vmem space)
Fix On Chip RAM addressing: bit 13 or 25 is used to select the bank.
2024-02-25 14:37:27 +01:00
scribam
3c8769cb5c
deps: sync imgui_impl_vulkan.cpp with upstream
2024-02-24 22:08:40 +01:00
scribam
ba12c01ab8
deps: update imgui to version 1.90.4
2024-02-24 22:08:40 +01:00
Flyinghead
713739bbc7
sdl: support multiple mice when allowed by the platform
2024-02-24 21:33:40 +01:00
Flyinghead
4667d17d78
naomi: fix shaktam inputs
...
Issue #1420
2024-02-24 19:42:41 +01:00
Immersion95
67c4e62c51
Adds option to enable/disable "Fix Upscale Bleeding Edge"
...
Helps with texture bleeding case when upscaling. Disabling it can help if pixels are warping when upscaling in 2D games (MVC2, CVS, KOF, etc.)
2024-02-22 11:30:26 +01:00
scribam
1b0781c680
bsd: update segfault context for arm64
2024-02-21 08:46:27 +01:00
scribam
0c5e79d618
deps: update imgui to version 1.90.3
2024-02-17 17:40:22 +01:00
scribam
5c8d7021f6
linux: use egl with x11 instead of glx
2024-02-17 17:38:39 +01:00
scribam
8d2bcdf35e
deps: update libchdr
2024-02-17 17:37:32 +01:00
scribam
eb2826f6d3
deps: update libzip to version 1.10.1
2024-02-15 10:00:56 +01:00
Flyinghead
232924d88a
init drive when running .elf. Skip special settings for BIOS and .elf.
2024-02-10 12:41:17 +01:00
Flyinghead
90b13a40ab
gladLoader: check return code and log. cheats: light refactoring
2024-02-10 12:06:48 +01:00
Flyinghead
a50f5765da
Merge remote-tracking branch 'origin/master' into dev
2024-02-10 11:58:39 +01:00
Flyinghead
7029e1615a
systemsp: lovebery needs Copy to VRAM. Allow space in card codes.
...
Enable Copy to VRAM for lovebery and lovebero.
Allow space characters in card codes.
Issue #1388
Force HLE BIOS for Suika.
Issue #1278
2024-02-09 13:05:38 +01:00
Flyinghead
3469b7fca7
gl: use red for single channel textures instead of alpha on GLES3
...
Only GLES2 needs to use the alpha channel. glTexStorage2D only supports
red.
Issue #1391
2024-02-09 12:59:50 +01:00
Flyinghead
434083c716
samsptk: use cheat instead of extra depth scale
...
Use a cheat to fix the game bug instead of dealing with ginormous depth
values.
2024-02-07 19:41:03 +01:00
Flyinghead
d9d91381b5
gdrom: delay "no disk" reporting to let the BIOS play the boot animation
...
Thanks to kihato for the prototype code.
Issue #587
2024-02-07 16:11:25 +01:00
Flyinghead
531c6f94d5
pvr: apply a negative bias to background plane depth
...
Fixes skybox in Xtreme Sports. Issue #1381
Fixes background clipping in Blue Stinger (JP) intro. Issue #721
Fixes Windows CE yuv FMV black screen (4x4 EVO, Armada, Carsear's
Palace, Giant Killers, PBA bowling, Starlancer, Tomr Raider, Wild Metal,
Who wants to beat up...)
Get rid of ForceWindowsCE option
Force PAL for Super Runabout (EU)
2024-02-07 16:02:55 +01:00
Flyinghead
9aa9b5bebc
ui: replace Exit by Close Game. Better format for some UI values.
...
Issue #1383
2024-02-07 11:05:09 +01:00
Flyinghead
e592650afc
gdrom: set correct lead-out FAD of single-density area
...
Use end FAD +1 of track 2 as start of lead-out for single density area.
gdi: set track end FAD based on track size, not start of next track
chd: ignore pad frames when calculating end FAD
cdi: end FAD was one off
Issue #1386
2024-02-06 11:07:20 +01:00
flyinghead
c146a92f83
Merge pull request #1379 from flyinghead/dev
...
merge dev branch
2024-02-03 18:25:15 +01:00
dakrk
d4fa3c441e
cheats: fix parsing cheat codes on some platforms
...
using strtol here instead of strtoul when cheat code values are expected to be unsigned and are above 7fffffff breaks on platforms like Windows where long is 32-bit even on 64-bit platforms, capping out at 2147483647 and causing some cheat codes to break.
2024-02-03 18:19:40 +01:00
scribam
be8c559b2f
deps: update sdl to version 2.30.0
...
vcpkg is no longer required to build sdl for uwp
2024-02-03 16:28:57 +01:00
Flyinghead
36684bf82c
vk: share shader code between regular and oit renderers
2024-02-01 18:19:03 +01:00
Flyinghead
cdaaeb5b27
naomi: printer fixes
...
Fix create bitmap DC2 sequence: 4 bytes then data.
Record msb mode at time of image definition as it might change before
the image is printed.
ntvmys uses 64-pixel wide custom characters.
Custom chars must use current bitmap msb setting.
Implement rule line dot fill and pattern fill.
Fixes most ntvmys print out issues.
Issue #1378
2024-02-01 18:15:34 +01:00
Flyinghead
4220c0d64f
naomi: reset destination ram if dma xfer from invalid rom offset
...
Reset destination area to 0 if attempting a dma xfer from an invalid rom
offset. Also update SB_GDSTARD and SB_GDLEND in this case.
Fixes texture corruption in ntvmys.
Issue #1378
2024-02-01 17:51:25 +01:00
Flyinghead
e286f98f72
naomi: new rom ntvmys
2024-01-31 16:52:34 +01:00
Flyinghead
e714e94510
rend: do bilinear filtering of palette textures on the GPU
...
All renderers updated.
2024-01-31 16:46:25 +01:00
Flyinghead
8715e5a5e9
gl: use glTexStorage/glTexSubImage to update textures when available
2024-01-31 16:03:07 +01:00
Flyinghead
1153238e2c
sdl: (linux) fix window position at startup/recreation
...
Window decorations dimensions aren't taken into account on linux when
creating a window. So reposition it after it's shown.
2024-01-29 17:08:10 +01:00
Flyinghead
471e0a7786
sdl: add timeout for barcode scanner to recover from incomplete reads
...
Reset barcode buffer after 0.5 s. Allows to recover from a failed read
or the user pressing '*'.
2024-01-29 11:25:55 +01:00
Flyinghead
887e616f76
dx9: load d3d9.dll and d3dx9_??.dll dynamically
2024-01-29 11:15:30 +01:00
Flyinghead
aa2fa1f611
ui: rename Purupuru to Vibration Pack
2024-01-29 11:08:17 +01:00
Flyinghead
57c88e07c4
gl: even better test to detect the nouveau driver
...
Issue #1373
2024-01-29 10:51:48 +01:00
Flyinghead
593b3205bd
reios: fix GETSCD and GET_DRV_STAT status during disk swapping
...
GET_DRV_STAT returns BUSY when disk is being recognized.
GETSCD returns asc and ascq in result 1 on error, does not return unit
attention if drive is busy.
Fixes disk swapping for Shenmue II, Dancing Blade II and Kaen Seibo.
Fixes wrong drive visual in Golf Shiyouyo Course Data Syuu
Issue #1046
2024-01-28 16:00:46 +01:00
Flyinghead
ecce9157bd
maple: raise interrupt on vblank when maple bus is occupied
...
Raise a maple interrupt at the next vblank when the host occupies the
maple bus to read the lightgun position. Fixes RevolveR single shot
issue since the game is waiting for the interrupt.
Issue #1369
2024-01-28 15:21:40 +01:00
Flyinghead
b2d96d77d7
naomi: support hid barcode scanner. sdl: detect keyboard layout
...
sdl: Support for HID barcode scanners such as unitech MS146.
Automatically detect keyboard layout at start up.
2024-01-27 16:01:57 +01:00
Flyinghead
4c7e57ebd6
gdrom: revert SPI_TEST_UNIT change
...
Fixes disk swapping for Alone in the Dark and Resident Evil: Code
Veronica (real BIOS)
Issue #1046
2024-01-26 19:49:01 +01:00
Flyinghead
116dc0e1ed
gdrom: don't rely on Status in libGDR_GetDiscType
...
Status is Busy when disk swapping is in progress so libGDR_GetDiscType
always returns NoDisk/Open. Rely on the scheduler instead so that the
correct type is returned when disk swapping is finished.
Issue #1046
Issue #189
2024-01-25 12:36:04 +01:00
Flyinghead
10d3ffdf09
jvs: fix crackin'dj inputs. serialize coin count
...
crackin'dj: map vertical mouse axis to right turntable. Invert fader.
Simulate turntable motor. Embed eeproms with calibration done.
Fix coin being inserted after loading a savestate.
2024-01-24 19:39:20 +01:00
Flyinghead
cbd01fba38
gdrom: fix disk swapping for some games
...
Add a 1 s delay when inserting a disk before the drive is ready.
Fixes disk swapping for Skies of Arcadia, Shenmue II (except HLE), Alone
in the Dark, Dancing Blade, First Kiss Story II and Kaen Seibo.
Issue #1046
Issue #189
Fixes BIOS menu disk swapping.
2024-01-24 18:35:23 +01:00
Flyinghead
88fd2641d9
pvr: allow blending for opaque polys of list continuations
...
Fixes Crackin'DJ invisible background animation and Monkey Ball grey map
background.
2024-01-23 19:20:40 +01:00
Flyinghead
70a69cf48d
switch: fastmem/vmem implementation
...
Only map first writable mirror due to switch limitation.
2024-01-22 15:18:49 +01:00
Flyinghead
f8d5517b8e
Disable overclocking for ggpo and online games. Always release vmem.
...
Disable over/underclocking when GGPO is enabled and when online
(modem/bba).
Always release the address space, which releases virtmem.
2024-01-22 09:46:51 +01:00
Flyinghead
16b2f59a47
ui: use flattened navigation where possible. fix sdl on-screen keyboard
...
Use flattened nav on file select, add cheat and controller mapping
windows and list boxes.
Don't show the SDL on-screen keyboard twice.
Use ImGuiChildFlags_Border instead of the legacy border parameter
(BeginChild)
2024-01-22 09:36:17 +01:00
Flyinghead
07d6ca6c84
gl: better test to detect the nouveau driver
...
GL_VENDOR=nouveau or GL_RENDERER=NVE4 (case insensitive)
Issue #1373
2024-01-22 09:18:17 +01:00
scribam
e26302ef03
deps: update glad
2024-01-20 19:24:07 +01:00
Flyinghead
19bb4a6e5d
switch: implement rumble with native API
2024-01-20 19:23:09 +01:00
Flyinghead
bc70d9118d
ui: restore drag scrolling on controller mapping popup
...
regression introduced by 105ab95efa
2024-01-20 16:20:09 +01:00
Flyinghead
a620a432c9
boxart: save database regularly when scraping
...
Issue #1117
2024-01-17 17:54:28 +01:00
Flyinghead
9e37d1e726
switch: restore x15 register when returning from the fault handler
...
Also restore NZCV and FPU registers.
Fixes crash/glitch with YUV converter.
Fixes SoA crash when rendering to a texture.
Issue #1312
2024-01-17 17:52:26 +01:00
Flyinghead
c1b087df83
arm64: notify compiler that x10 is used in setHostRoundingMode
...
Fixes a crash on switch in single-threaded mode in
setDefaultRoundingMode.
2024-01-17 10:08:44 +01:00
Flyinghead
cfb7ff3054
switch: use latest devkitpro. touchscreen support. cleaner abort
...
Use latest devkitpro image.
Call diagAbortWithResult on fatal errors instead of freezing/infinite
loop.
Add Exit button on main content screen.
Touchscreen support.
2024-01-16 11:21:32 +01:00
scribam
e03c37b013
deps: update imgui to version v1.90.1
2024-01-13 14:58:33 +01:00
Flyinghead
0b0904cdc5
systemsp: hopper and medal game fixes
...
hopper: Limit coin sensors to 100 ms to avoid coin chute jam errors.
hopper: Use periodic sensor for hopper to avoid hopper jam errors.
Issue #1365
medal: wire inputs and emulator required sensors. Embed medal games
nvmem to disable comm and all errors.
magicpop, unomedal, puyomedal, ochaken and westdmrg now playable.
kingyoch rom parent is kingyo
2024-01-13 14:52:29 +01:00
flyinghead
552e5b7d7a
dx9,dx11: only draw lightgun crosshair when necessary
...
missing check for arcade games
Issue #1363
2024-01-11 22:20:21 +01:00
Flyinghead
2a48049216
systemsp: cart network hle. hopper emulation.
...
WIP emulation of cart network features.
Hopper emulation.
WIP medal emulation.
Playable games: kingyo, manpuku and shateki
2024-01-10 15:56:21 +01:00
Flyinghead
c001240797
move audio drivers to their own folder
2024-01-10 11:45:54 +01:00
Flyinghead
032cc17659
video routing fixes
...
dx11: terminate video routing in DX11Renderer::Term. Don't use
DX11Context.
dx11: avoid using local static vars
gl: don't send rendered frame when full FB is on
gl: send rendered framebuffer
gl: terminate video routing in termGLCommon. Don't use GLGraphicsContext
gl: avoid crash on quick exit during test automation
2024-01-05 12:46:39 +01:00
Flyinghead
c0c6f206bf
f355: fix win32 condition variable implementation
...
A race condition can happen on condition variables due to
unlock/wait/lock not being atomic. This results in the wrong process
being notified, causing a deadlock.
Happens more frequently in twin mode.
Issue #1361
2024-01-05 12:36:20 +01:00
scribam
6aa59c54a5
Minor misc changes ( #1360 )
...
* core: cleanup include headers
* dx11: remove unimplemented function
* core: annotate destructors with override
* aica: use range-based for loop
* bm: use const reference/structured bindings with blkmap
2024-01-02 14:38:16 +01:00
Flyinghead
9c964ac955
refactor embedded resource loading. Use for imgui font and android OSD
...
Generic embedded resource loading function
Zip bios and printer fonts
Add buttons.png and Roboto-Medium.ttf as embedded resources
2024-01-02 14:37:29 +01:00
Flyinghead
5734556440
naomi: crc32 for asndynmt[o]. Use vfnet.flyca.st domain for netdimm
2024-01-01 16:16:55 +01:00
Flyinghead
e76b76dcc4
vk: allow any size for buttons.png on android
2024-01-01 16:07:59 +01:00
Flyinghead
cab19ad54b
libretro: crash at boot when checking for GPU vendor
2024-01-01 16:06:25 +01:00
Flyinghead
a7702c622a
aica: don't disable channel when reaching full attenuation
...
Some games rely on the channel still being processed and CA/LP being
updated. Courtesy of @kihato
Issues #472 , #483 , #1180 , #1249 , #1030 (partial)
2023-12-31 12:02:42 +01:00
Flyinghead
9f9b29b833
rend: force Native Depth Interpolation for AMD gpus
2023-12-28 17:48:33 +01:00
Flyinghead
06529b63f7
gl: don't invert y when saving a test screenshot
2023-12-28 17:36:50 +01:00
Flyinghead
0d36154618
hle bios: wince games hang after IP.BIN
...
regression introduced by 41723a831f
2023-12-28 17:17:11 +01:00
Flyinghead
c7b6f22e10
naomi: limit rom dma delay to 1 sec
...
Fixes crash at boot with jambo safari.
Fix for MINIDUMP-293
2023-12-25 19:07:08 +01:00
Bobby Smith
57c2dcd961
[Libretro] Fix VMU scaling for dynamic res games
2023-12-21 14:20:34 +01:00
vkedwardli
790f5b1ad2
Video Routing Revamp ( #1323 )
...
* Update Spout2 dep
* Remove all `initVideoRouting` call from `GraphicContext`
* Fix MinGW build error
2023-12-21 14:19:57 +01:00
Flyinghead
54ac9c6361
naomi: lower rom dma transfer speed
...
Decrease from 20 to 7 MB/s. Fixes various freezes with Force Five aw
conversion.
Issue #141
Don't expose atomiswave A0_006 registers to naomi and other arcade
platforms.
2023-12-21 14:18:53 +01:00
Flyinghead
449b871e0c
vk: crash when loading custom texture
...
Regression due to 939e2bc68f
Issue #1351
2023-12-21 10:04:35 +01:00
scribam
e057370e97
core: add missing pragma once to header files
2023-12-17 11:12:20 +01:00
Bobby Smith
99dc278ad2
Broadcast override for South Park Rally
2023-12-17 11:11:23 +01:00
Flyinghead
ba1a68a69f
vk: fix setObjectName on 32-bit platforms
2023-12-17 11:10:19 +01:00
Flyinghead
363c2c4c3f
modem: register flags documentation
2023-12-17 11:07:13 +01:00
Flyinghead
fe429ec01e
move holly interrupts out of types.h
2023-12-16 23:04:39 +01:00
Flyinghead
192838b9c1
maple: lightgun must return 0 for trigger axes
...
Fixes Death Crimson 2 fast forwarding in story mode when using a
lightgun.
Issue #646
2023-12-16 16:47:48 +01:00
scribam
00954f1b60
egl: make sure display is valid before cleanup
2023-12-13 17:32:40 +01:00
scribam
99031e23d3
windows: cleanup non-sdl code paths
2023-12-13 17:30:29 +01:00
Flyinghead
0433fd824c
naomi: fix handling of dma abort
...
Fixes hang in f355 twin and twin2
2023-12-08 18:30:12 +01:00
Bobby Smith
9137ff998f
Add a hotkey to bypass emulated keyboard
2023-12-07 16:48:31 +01:00
Flyinghead
7cc77b10ed
naomi: schedule end of cart dma
...
Set to 20 MB/s to fix meltyb satsuki vs kouma hang when starting fight
Issue #1255
2023-12-07 16:14:10 +01:00
Flyinghead
07f208d2a2
elan: set dma completion delay to fixed min value
...
Fixes initdexp hang at race start
Issue #1337
2023-12-07 13:43:52 +01:00
Flyinghead
05cd7ee8d3
naomi2: fix initdv3j boot. avoid end of area crash with initdv2/v3jb
...
Abort processing and set elan error when invalid draw/dma commands are
executed.
Issue #981
Fixes MINIDUMP-K5 MINIDUMP-JS MINIDUMP-S0 MINIDUMP-98 MINIDUMP-125
MINIDUMP-12D MINIDUMP-22Q
Delay completion of elan dma transfers. Fixes initdv3j boot.
Issue #647
gdrom: some data was serialized twice
2023-12-05 18:25:40 +01:00
scribam
d8e61520af
windows: map arm/arm64 to host_context_t
2023-12-04 12:00:38 +01:00
Flyinghead
e9beea484d
Merge remote-tracking branch 'origin/master' into dev
2023-12-04 11:58:12 +01:00
Flyinghead
4aecdbbb25
input: new saturation setting for full analog axes. Gamepad settings UI
...
Saturation reduces or increases the range of analog axes.
Issue #675
Axes values are re-scaled with dead zone to allow small values.
New Gamepad Settings dialog box to set up dead zone, saturation and
rumble/haptic power.
2023-12-04 11:57:49 +01:00
Flyinghead
d7c28a4805
aica: recommpile dsp when loading a state
...
Fixes bad noise when loading a menu state on tetris from in game.
2023-12-03 20:51:09 +01:00
Flyinghead
939e2bc68f
vk: better deferred deletion. fix validation layer issues
...
Use raii-like mechanism to delete resources when not in use.
Fix several issues reported by validation layers (vtennis rtt, main
buffer size resizing, ...)
2023-12-03 19:18:16 +01:00
Flyinghead
ce4a3a7147
scif: always schedule timer when updating baud rate
...
Old savestates don't have any callback set, and read only devices
(barcode readers) won't schedule any either
UI message when r/w card is ejected
2023-12-03 18:22:52 +01:00
Flyinghead
5fde889d7c
builtin cheat for f355 network race. enable builtin cheats when online
...
Increase the datapump timeout from 500 to 1000 to avoid an error when
posting network race results.
Enable built in cheats when online
2023-12-03 16:44:43 +01:00
scribam
db7895cea5
Some ifdefs to improve builds ( #1325 )
...
* mmu: hide some jit and fast mmu functions behind ifdef
* linux: move log to the correct place
2023-12-01 15:03:59 +01:00
scribam
f3a774ab4e
imgui: use fonts upload code from v1.90
2023-12-01 15:02:43 +01:00
Flyinghead
bd25c14cfd
libretro: fix manic panic touchscreen buttons
2023-11-29 12:31:30 +01:00
Flyinghead
035ea0b0c0
Force HLE bios for stupid invaders. Don't autosave state if networking
...
Force HLE bios for stupid invaders
Issue #354
Don't autosave state if GPPO or naomi networking is on
2023-11-29 12:30:16 +01:00
Flyinghead
d6593b9c6e
maple: race controller has only 3 axes
...
Reporting 5 axes (with the optional pedals unit) breaks some games:
daytona usa, super speed racing, F1 world grand prix, ...
2023-11-29 12:26:04 +01:00
scribam
105ab95efa
deps: update imgui and implot
2023-11-25 17:08:01 +01:00
Flyinghead
cb518b5481
serial: fix RDF and TDFE status bits
...
RDF and TDFE can't be reset if tx/rx fifo is below/above trigger
Remove rx overrun check
Proper reset of scif state
Fixes maxspeed, vonot and hell gate battle cable.
Tetris connects but still has input responsiveness issues.
sh4 mmr: use unnamed bitfields
2023-11-25 17:06:45 +01:00
Flyinghead
a18e3701c6
Merge remote-tracking branch 'origin/master' into dev
2023-11-25 16:58:59 +01:00
Flyinghead
f11a5981fe
dynarec: increase code cache free space limit from 16 to 32 KB
...
Windows CE games have huge code blocks. (Tomb Raider - Last Revelation)
Fixes MINIDUMP-21R
2023-11-25 15:53:52 +01:00
Flyinghead
8f3124d14e
gdrom: increase gdrom ticks by 10%
...
Fixes Sakura Taisen 3 broken music
Issue #692
2023-11-23 16:49:05 +01:00
Flyinghead
14f3507b86
naomi: initd card reader fix. card reader refactoring
...
cardInserted was shadowed by initd card reader
use deque and vector instead of array+indexes
2023-11-23 16:44:03 +01:00
Flyinghead
4efacd7d71
Battle cable support
...
work in progress
f355 and aero dancing seem to work
vonot and tetris don't
maxspeed is broken
2023-11-23 16:40:20 +01:00
Flyinghead
a9d5b77053
Merge remote-tracking branch 'origin/master' into dev
2023-11-20 17:13:51 +01:00
Flyinghead
bc28c7ccb3
lr: enabke Insert Card button for all card reader games
...
Hide naomi f355 series and sgdrvsim on non-desktop platforms
2023-11-20 17:11:27 +01:00
Flyinghead
c4c4c2fde0
naomi: club kart card reader support
2023-11-18 18:20:41 +01:00
Bobby Smith
78a874d20e
Add slider to change crosshair size and a core option for the Libretro core ( #1304 )
2023-11-18 13:44:57 +01:00
Flyinghead
ef321d81a4
ui: customizable UI scale factor. rescan content button
2023-11-15 20:48:00 +01:00
Flyinghead
df83ca436c
input: use 16 bits of precision for analog axes/triggers
2023-11-15 18:24:30 +01:00
Bobby Smith
665ef86cf0
[Libretro] Change VMUs scaling for GL/D3D11
2023-11-15 11:55:25 +01:00
Flyinghead
b9601d26e3
disable per-game settings for video routing options
...
Enabling video routing in a per-game config causes a crash.
Fixes MINIDUMP-22K
2023-11-15 11:54:33 +01:00
Flyinghead
038df0d923
dx9: half-pixel fix for rtt. disable separate alpha/color blend funcs
...
The dx9 half-pixel translation fix must use the rtt texture pixel size.
Issue #1299
ImGui enables separate alpha and color blending funcs so it needs to be
disabled in the renderer.
Issue #1301
2023-11-15 11:50:45 +01:00
Flyinghead
73cbd7a183
libretro: crosshair/vmu invisible with gl per-triangle/per-strip
...
libretro needs ofbo.aspectRatio to be set when drawing crosshairs and
vmus
2023-11-15 11:47:34 +01:00
Flyinghead
ab25cc73a9
libretro: fix lightgun crosshair blend func and size
...
Use upscale factor for lightgun crosshair (opengl, dx11)
Fix crosshair blend function (opengl)
2023-11-14 15:46:44 +01:00
Flyinghead
a0014bc810
naomi: allow printing for f355/1 screen. Fix print template
...
f355 vanilla can print even when running with a single screen.
Fix print template by Ciopy Burns
Repeat print template vertically as needed for longer prints
No networking for f355 vanilla
2023-11-14 15:42:20 +01:00
Flyinghead
32ecb141df
libretro: macos build fix
...
Some OpenGL functions are missing on macOS
2023-11-13 14:39:20 +01:00
Flyinghead
4cd90d8ebb
rend: yet another hash fix of vq textures
...
The calculated size for vq textures was half the correct value, which
affects the texture hash. Calculate the old hash and use it as fallback
for backward-compatibility.
Issue #1291
Make the texture data start address really point to max mipmap data, no
more codebook skipping.
2023-11-13 14:37:38 +01:00
Flyinghead
46eab502e4
libretro: don't link with OpenGL libs on android, windows and linux
...
Issue #1221
2023-11-12 13:05:13 +01:00
Flyinghead
535fbe29f8
rend: fix hash of vq textures
...
Do correct hashing of VQ textures to avoid hash conflicts. Keep previous
hash for backward-compatibility.
Issue #1291
2023-11-11 18:57:16 +01:00
Flyinghead
41723a831f
use static init when possible. use unnamed bit-fields. refactor vmuBeep
...
no functional changes
2023-11-11 18:54:10 +01:00
scribam
abe1d4fd27
deps: replace glew with glad ( #1290 )
2023-11-11 18:29:36 +01:00
Flyinghead
e60f30b357
naomi: use background template for f355 printing
...
template courtesy of Ciopy Burns
2023-11-10 17:58:46 +01:00
Flyinghead
f0f27558af
initd: network config was overriding difficulty level
...
same for initd, initdv2 and initdv3
disable networking for club kart prize
2023-11-10 17:54:28 +01:00
Flyinghead
0f6a92caad
linux: retrieve page size at build time
...
Fixes RPi 5 16 KB page size. Will not work if cross-compiling however
Issue #1288
2023-11-09 19:29:00 +01:00
Flyinghead
9a60cd7ded
kingrt66: network config was overriding other settings
...
Auto accel, CB Mic and Motor Power settings share the same config byte
in eeprom, so don't change them when configuring network settings.
2023-11-09 19:25:10 +01:00
Flyinghead
926877397c
Merge remote-tracking branch 'origin/master' into dev
2023-11-07 16:32:12 +01:00
vkedwardli
b92277ac58
macOS: Register file extensions for `openFile` (Drag ROM to App Icon), update `setupWorkingDirectory`, rename `SDLMain` to `SDLApplicationDelegate` to avoid confusion with the function `SDL_main()` ( #1287 )
...
Register file extensions for openFile, and supports the following actions
Drag ROM to Application icon to launch the app
Drag ROM to the running app's dock icon
Drag ROM to the running app's window (applicable to all SDL platform by SDL_DROPFILE)
Update setupWorkingDirectory
macOS default cwd is a nonsense "/" for non-terminal application
Rename SDLMain to SDLApplicationDelegate to avoid confusion with the function SDL_main()
some code cleanup
2023-11-07 16:29:08 +01:00
scribam
9a7bf75e4e
deps: update sdl to version 2.28.5
...
Set minimum version required to 2.0.9 because of SDL_JoystickRumble
2023-11-07 16:27:23 +01:00
Edward Li
f6b3577de5
Save race result image to writable data folder
2023-11-05 18:39:37 +01:00
Edward Li
a4ec706c79
Init `ThermalPrinter` only when cabinet type is Deluxe.
...
nvmem: Enable printer by default for `f355twin` and `f355twn2`
2023-11-05 18:39:37 +01:00
Flyinghead
cb890c7b6f
windows: fix run instance with path containing spaces or non ascii
2023-11-05 18:39:04 +01:00
Flyinghead
fd3f207e45
maple: move arcade input settings into maple init
...
Get rid of settings.input.JammaSetup
2023-11-02 19:00:29 +01:00
Flyinghead
594b403997
naomi: add some (mostly not working) roms
...
mazanj
dygolfp
shors2k2m
shors2k2s
shors2k2l
shors2k2
wccf116
wccf1dup
wccf212e
wccf234j
wccf310j
wccf331e
wccf322e
wccf331j
wccf341j
wccf400j
wccf420e
galilfac (systemsp)
Fix hotd2p, virnbap, huhimage
2023-11-02 18:44:52 +01:00
Flyinghead
bafe07de85
aica: better sounding LPF
...
Use 4 bits of exponent instead of 5 for the cut off frequency
Force sample to 0 if cut off freq is 0
Improve BIOS menu sounds
Issue #108
2023-11-02 18:33:14 +01:00
Bobby Smith
3e047a6e03
Create expansion device for "Racing Controller"
2023-11-01 15:43:08 +01:00
Flyinghead
29c0dca0ce
naomi: enable printer for all f355 editions
...
only usable in deluxe mode (f355twin, f355twn2)
2023-11-01 15:41:41 +01:00
flyinghead
5cfd3f0ba3
Merge pull request #1274 from bslenul/lr-invalid-values
...
[Libretro] Remove some "Invalid value" errors
2023-10-31 13:55:23 +01:00
Flyinghead
7b71bd319c
Android and iOS support. Change dead zone to integer % value in UI
...
UI: dead zone changes from 0 to 100%. Add % for Rumble too.
Support Android and iOS gamepads.
Assume legacy gamepads have an analog stick (evdev, xinput)
2023-10-30 18:28:29 +01:00
Flyinghead
51089c5e0a
aica: always avoid race condition when sh4 interrupt is raised
...
... even if an SH4 interrupt is already asserted.
Regression introduced by c7d214e55a
Fixes audio freeze in Test Drive Le Mans
Issue #1267
2023-10-30 17:47:19 +01:00
Flyinghead
24944e00a7
force Full Framebuffer Emulation for some games
...
Eisei Meijin III
Marionette Company
World Neverland Plus
Issue #1266
2023-10-30 17:43:33 +01:00
Bobby Smith
66faf0d330
[Libretro] Remove some "Invalid value" errors
2023-10-30 16:21:26 +01:00
Bowen Cui
c0de126b2b
Add option to set deadzone for analog sticks
2023-10-30 05:21:36 -04:00
Flyinghead
f640b32cc9
enable Copy to VRAM for a bunch of games
...
Worms World Party (US)
Hundred Swords
Musapey's Choco Marker (dreamcast)
Choco Marker (naomi)
Sister Princess Premium Edition
Sentimental Graffiti 1 & 2
Kanon
Aikagi
AIR
Issue #1265
2023-10-27 14:56:28 +02:00
Flyinghead
93e47dd410
aica: don't change LEA for non-looping sounds
...
Non-looping sounds with LSA=0 and LEA=0 shouldn't be played at all.
Regression introduced by dac5b991e0
.
Fixes white noise in Sonic Adventure Emerald Coast action stage.
Issue #1264
2023-10-27 14:52:07 +02:00
Flyinghead
8fb3def2d5
gl oit: fix several issues
...
Disable blending when rendering a-buffers. Fixes ECW Anarchy Rulz black
title screen and Demolition Racer glitchy end of race screen.
Use palette in the depth pass for punch-through polygons using palette
texture. Fixes shadow issue in Alone in the Dark.
Copy ouput fbo to geom_fbo before drawing. Fixes missing transparent
polygons in subsequent partial renders. Fixes Test Drive Le Mans missing
labels in loading screen.
Issue #1262
2023-10-25 16:59:01 +02:00
Flyinghead
98a0f2b821
gl: frame upside down with GLES 2.0 if video shift is on
...
drawQuad ignores the swapY param if vertices are provided so swap Y
coords of vertices.
2023-10-25 16:53:25 +02:00
Flyinghead
4fafa91506
gl: disable dithering with GLES 2.0
...
GLES 2.0 doesn't allow initialization of const arrays.
Fixes MINIDUMP-1YP MINIDUMP-1YQ
2023-10-25 16:51:44 +02:00
Flyinghead
09a1fea40f
arm32: fix host rounding mode on android
...
It looks like setting host rounding stopped working on armv7 android a
while ago (v1.0 already has the issue). Directly setting the host FPSCR
register doesn't work so use the C99 standard functions fegetenv and
fesetenv instead.
Fixes flickering yoshimitsu legs in Soul Calibur.
Fixes rotating objects in Sword of the Berserk.
Issue #556
Issue #1259
2023-10-25 16:48:58 +02:00
Flyinghead
e55d70c0e6
dx9,dx11: depth surface and temp render target resize issue with RTT
...
dx9: resize depth surface to max width and height when RTT
dx11 oit: resize all depth and temp render targets when RTT but keep
current framebuffer.
Fixes Flag to Flag not updating the screen when RTT'ing rear view
mirrors.
Issue #1257
2023-10-23 10:36:41 +02:00
Flyinghead
ca45ff3834
default to Vulkan renderer if OpenGL not compiled in
...
Issue #1258
2023-10-23 10:10:49 +02:00
Flyinghead
35c71ebcfd
rend: add hcount and vcount used by meltyb for video shift calc
...
meltyb (and possibly others) uses hcount=850 (instead of 851) and
vcount=528 (instead of 529)
2023-10-22 12:08:19 +02:00
Flyinghead
33edcca348
texture: expand color data of planar textures
...
Partial revert of f4835a89d3
Fixes color differences between planar and !planar textures in Sakura
Taisen 2.
Issue #1256
2023-10-22 10:17:01 +02:00
Flyinghead
dac5b991e0
aica: ignore LEA if <= LSA
...
Fixes Legacy of Kain Ash Village music
Issue #1104
2023-10-22 10:12:30 +02:00
Flyinghead
b7d923e02b
maple: clear mapleDmaOut on reset. Other reset issues
...
mapleDmaOut wasn't reset, causing crashes or freezes in subsequent runs
Issue #1253
reset YUV state, pvr tile clip, MMU sq_remap, sh4 sq_buffer and more
2023-10-20 16:15:42 +02:00
Flyinghead
eaf2c0064c
enable copy to vram for sakura taisen 1
...
Issue #1252
2023-10-19 19:58:05 +02:00
Flyinghead
a65cd9e5f9
savestate: fix retroarch savestate compatibility
...
A new RA header must be skipped in standalone
2023-10-19 19:56:43 +02:00
Flyinghead
e94b26f1df
gdrom: return blank sector if FAD miss
...
Fixes NBA Hoopz (US) voice samples
Issue #1247
2023-10-17 14:29:05 +02:00
Flyinghead
e96b38ff5c
rend: support vscalefactor > 1 for RTT
...
SCALER_CTL.vscalefactor also applies to RTT and values > 1 will increase
the texture height.
dx11: initialize abufferPointers to avoid issues with first frame
rendered.
Fixes pause menu/battle animation with Skies of Arcadia (PAL)
Issue #1127
2023-10-16 14:51:27 +02:00
Flyinghead
e894d4df5c
sh4: limit penalty cycles to first 3 mem ops
...
Fixes choppy video in Dynamite Cop! and Resident Evil 2 intros.
Fixes desync between character and background in UFC championship intro.
Fixes Dino Crisis (JP) desync between video and subtitles.
Fixes South Park Rally boot freeze with one controller and 2 vmus.
Add cheats for Dave Mirra BMX to fix main loop timing.
Issue #1034
2023-10-16 14:39:15 +02:00
Flyinghead
c58ae4daac
vulkan: terminate context if init fails
...
Avoids crash on exit
2023-10-16 14:19:47 +02:00
Flyinghead
2a364dee67
dynarec: check null codeBuffer in rewrite() if called before init
...
Fixes MINIDUMP-1VN, MINIDUMP-1X1, MINIDUMP-1XD
2023-10-13 11:41:18 +02:00
Flyinghead
56107b3667
dx11 oit: missing depth pass for transparent polys when autosort=0
...
The depth pass with transparent polys must also be done when autosort=0.
Fixes The Grinch pause menu
Issue #1244
2023-10-13 11:00:19 +02:00
Flyinghead
31aab32d95
dx9: unreleased resources make device reset fail
...
dcfbSurface and vmu texture were leaked when updated, causing the device
reset to fail when maximizing or restoring the app window.
Issue #1243
2023-10-13 10:55:45 +02:00
Flyinghead
0b66409ed2
naomi: default eeprom for pokasuka ghosts
...
Fixes coin assignments error at boot
Issue #1237
2023-10-13 10:51:07 +02:00
Flyinghead
8ae288d2ca
gdb: revert swapping of words
...
Partial revert of b0a520fe18
Short and ints shouldn't be swapped.
gdb can handle both little and big endian SH4 (set endian big/little).
2023-10-12 09:49:55 +02:00
Flyinghead
4419ff310a
naomi: default eeprom for manic panic
...
Fixes coin assignments error at boot
Issue #1237
2023-10-12 09:36:09 +02:00
Flyinghead
2f524923da
set extra depth scale back to 0.1 for Caesars Palace 2000
...
Fixes pause menu background transparency in video keno game.
Regression introduced by cc1b45b7cc
Issue #1236
2023-10-11 14:42:35 +02:00
Flyinghead
07d761a880
rec x64: move jit_set_exec out of exception scope in rewrite
2023-10-11 14:28:39 +02:00
Flyinghead
f6f6637973
naomi: mushikep compatibility
2023-10-11 14:25:11 +02:00
Flyinghead
2cd3ffb33f
Revert "vk oit: add sync event between renderer and vk context on Mali
...
gpu"
This reverts commit abd9219347
.
Issue #1234
2023-10-11 14:13:34 +02:00
Flyinghead
abd9219347
vk oit: add sync event between renderer and vk context on Mali gpu
...
Use vk event to wait for renderer pipeline to finish before rendering
the final frame in vk context. This seems to help Mali gpus.
Issue #1234
2023-10-11 09:35:18 +02:00
Flyinghead
417a42ae10
boxart: image mix up due to broken rand() on windows
...
srand() wasn't called and rand() returns the same number twice on
windows (RAND_MAX is only 32767).
Use c++11 random instead.
Issue #1231
2023-10-10 11:47:50 +02:00
Flyinghead
0e12153c45
libretro: frame is flipped vertically with GLES 2
...
drawQuad ignores the swapY parameter if vertices are provided.
Reverse the shiftY direction for pvr2 filter.
Issue #1233
2023-10-10 11:37:00 +02:00
Flyinghead
cb33387ed6
gdrom: clear DRQ on ATA_NOP
...
Fixes Sentimental Graffiti 2 hang when switching disk
Issue #1232
2023-10-09 22:39:54 +02:00
Flyinghead
38d4689b63
gl,vk,dx: use nearest filtering for mipmap with PT polys
...
Interpolating between LoDs produces unexpected alpha values.
dx,vk: add negative LoD bias
Fixes "Press Start" text in Trizeal title screen
dx11: get rid of bogus nearest wrap hack
Can't reproduce original issue with daytona
Fixes Virtua Tennis title screen
Issue #1230
2023-10-09 21:09:03 +02:00
Flyinghead
23d1db9c75
nvmem: add email address to flash ISP config
...
Issue #1227
2023-10-09 20:44:15 +02:00
Flyinghead
4e079b5d0b
missing override keyword
2023-10-08 19:14:33 +02:00
Flyinghead
3fcbdd3fc5
gl: missing precision qualifier for dithering table
...
Fixes MINIDUMP-1VR MINIDUMP-1W0 MINIDUMP-1W1 MINIDUMP-1WE MINIDUMP-1WF
2023-10-08 19:13:07 +02:00
Flyinghead
78b44919c5
vk, gl: ignore fb_enable and blank_video during normal render
...
Fixes some screen missing. Already handled in renderFB. Should be
handled at Present time.
gl4: first frame after renderFB was missing
Issue #1217
2023-10-07 15:46:28 +02:00
flyinghead
7308f9a704
sh4: dont change host rounding mode in Sh4_int_Reset()
...
Don't change host rounding mode in Sh4_int_Reset(), which is typically
called from the UI thread.
Set rounding mode to default before calling renderer (single-thread
mode), restore it before returning.
Fixes issues with dx11 shaders compilation: rounding mode affects
inexact literal float values.
Issue #1224
Issue #1207
2023-10-06 18:17:14 +02:00
Flyinghead
18f9b84af6
elf: memory corruption if .elf file is invalid
2023-10-05 11:45:14 +02:00
Flyinghead
56517b027a
naomi: fix gdrom searching in rom parent path
...
OpenDisc() now throws so exceptions must be caught
Never return null from OpenDisc
2023-10-05 11:43:22 +02:00
scribam
d9b5f27311
deps: update sdl to version 2.28.4
2023-10-02 21:42:47 +02:00
Flyinghead
cb91ad3ae0
reset platform to dreamcast after unloading game
...
so that Language, Broadcast, Cable, etc. are enabled in the UI
2023-10-01 20:07:59 +02:00
Flyinghead
60f3d718ac
arm64 rec: fix crash with some naomi games (regression)
...
Fixes crash with doa2a and doa2m and some atomiswave conversions.
Regression due to b47f4f56ef
Fixes MINIDUMP-1TY, MINIDUMP-1TD, MINIDUMP-16Q, MINIDUMP-1AC
2023-10-01 19:31:18 +02:00
Flyinghead
09857008bd
rend: guard against NaN depth if z is negative
...
Fixes prison white background effect in RayMan 2
Issue #1209
2023-09-27 14:55:31 +02:00
Flyinghead
5eddc26850
dx11: work around some float literal precision issue with the compiler
...
For some reason the directx compiler doesn't convert float literal in a
deterministic way (!). A difference of one ulp can be seen between
different compilation of the same code.
This causes an issue with the rounding of the alpha value for PT polys.
Issue #1207
2023-09-26 17:05:21 +02:00
Flyinghead
a915f185f8
Merge remote-tracking branch 'origin/master' into dev
2023-09-25 22:17:29 +02:00
Flyinghead
0f6e1752e3
rend: clear framebuffer when vram address changes
...
Fixes top and bottom leftovers from BIOS boot in San Francisco Rush
2049.
Issue #1197
2023-09-25 18:23:26 +02:00
Flyinghead
e57ccde532
systemsp: pluggable input manager. fix lr. disable isshoni P1 button 1
...
Delegate input management to game-specific class
Default, card reader/dispenser and isshoni input managers
isshoni: Use button 1 for touchscreen press
libretro: systemsp input mapping
2023-09-25 17:38:41 +02:00
vkedwardli
f75a16f40c
Ignore Mouse Capture when Left Ctrl or Left ALT is mapped to a Dreamcast Key ( #1203 )
2023-09-24 16:02:18 +02:00
Flyinghead
a869e183db
gl: video shift y needs to be inverted too
...
follow up to 5ffcdb5f1e
Fix crash in pvr2 post processor when rendering the dc framebuffer
2023-09-24 13:09:00 +02:00
Flyinghead
c60edb0090
gl: get rid of async copy to vram
...
Fix issues when games access texture data directly in vram.
Jet Set Radio custom graffiti copy to vmu. Issue #232
Cardcaptor Sakura best shots. Issue #1089
Grandia II battle start effect.
Force Copy to VRAM for Cardcaptor Sakura, Grandia II, Canvas, Sakura
Taisen 3 and more
2023-09-24 11:29:22 +02:00
Flyinghead
84d82f360b
dx11: black screen with full fb emu when scaling. dx9: fb render fix
...
dx11: black screen when full framebuffer emulation is enabled if scaling
is on (480 -> 240p)
Fixes Mr.Driller. Issue #1067
dx9: wrong stretching when rendering the dc framebuffer if aspect ratio
different from 4:3
2023-09-24 11:04:24 +02:00
Flyinghead
b002bdff39
ui: color chooser for crosshair was changing on its own
...
Only change color when needed and use rounding when converting back to
integer.
Issue #1074
2023-09-24 10:57:50 +02:00
Flyinghead
5ffcdb5f1e
gl: flip Y coord when drawing framebuffer to avoid rounding issues
...
Flip Y again when drawing to final framebuffer
Fixes HUD characters truncated vertically in Test Drive V-Rally
Issue #1088
2023-09-23 14:57:19 +02:00
Flyinghead
79bbd86c2f
rend: Fix PT polygons alpha test
...
Alpha test for PT polys is done after mixing texture and vertex colors
and clamping. Revert db0534d5dd
. See
86235bb4a3
.
Fixes visible triangle arrows after selecting a character in Langrisser
Millenium.
Issue #1201
vk oit: OP polygons don't support blending
2023-09-23 14:01:26 +02:00
Flyinghead
39a212140a
vk: add bumpmap flag to pipeline hash
...
Fixes disappearing pause menu text and green wooden boxes in Mat
Hoffmann's Pro BMX
Issue #878
2023-09-23 11:13:14 +02:00
Colton Pawielski
a7dbbbe578
Add Dreamcast 32MB RAM Mod ( #1198 )
2023-09-22 11:10:44 +02:00
Flyinghead
2445739c0e
arm,arm64 rec: check fault location before attempting to rewrite
...
Ignore fault if pc isn't in the dynarec code buffer.
Fix for MINIDUMP-1S0, MINIDUMP-1RS
2023-09-20 17:25:09 +02:00
Flyinghead
403f1f635b
systemsp: load rom boot id from compact flash volume
...
Open and decrypt 1STREAD.BIN then the image file to extract the rom boot
id.
Fix boot id for non-encrypted roms (bingogals)
Reset naomi default eeprom when forcing different region and before
reloading the bios.
2023-09-20 17:22:28 +02:00
Flyinghead
879372cb79
rec-x64: use FMA when available
...
x64 vfmadd is a better implementation of the sh4 FMAC op, so use it if
available. Fall back to mul+add if GGPO is enabled to avoid desyncs
between different cpu models.
Issue #1201
2023-09-20 17:14:50 +02:00
Flyinghead
6b05c0ab01
tex conv: extend alpha channel of planar 4444 textures
...
The alpha channel needs to be extended for PT polygons to work. Fixes
Langrisser Millenium black title screen and missing textures on
character selection screen.
Issue #1201
2023-09-20 17:06:05 +02:00
Flyinghead
289f264371
systemsp: set correct region for rom games
...
Override the region when not supported by the game. Only works for rom
games.
2023-09-19 17:59:20 +02:00
Flyinghead
869ddb643d
systemsp: initialize media name and default eeprom
...
Fix failure to load a systemsp rom game after running a compactflash
game.
Fix error 05 if selecting the wrong region then switching to Japan.
2023-09-19 16:13:27 +02:00
Flyinghead
c63f1a9997
pvr: background poly vertex order fix
...
Fix background poly vertices coordinates to form a valid triangle strip
Fixes lovebery bogus background poly on character selection screen.
Issue #1200
2023-09-19 16:08:22 +02:00
Flyinghead
0fc0dc5101
systemsp: rfid management chip emulation
...
fixes dinoking, dinokior, dinoki25, lovebery, lovebero and loveber3
2023-09-18 11:00:08 +02:00
Flyinghead
c839bc89eb
naomi: crash when loading a legacy .bin rom
...
More fix for MINIDUMP-1DA, MINIDUMP-1D8, MINIDUMP-1EM
2023-09-15 18:50:55 +02:00
Flyinghead
84f2871650
renderer: set render timeout to 20 ms to reduce input lag at 30 FPS
...
Fixes mouse not responding in 30 fps (Quake 3) or variable fps games
(Unreal)
Issue #949
2023-09-14 15:18:56 +02:00
Flyinghead
e1b4d4d703
naomi: crash when loading a legacy .bin rom
...
Fixes MINIDUMP-1DA, MINIDUMP-1D8, MINIDUMP-1EM
2023-09-14 15:08:56 +02:00
vkedwardli
b564b0bf91
Increase L2+ / R2+ trigger sensitivity for digital buttons ( #1190 )
2023-09-14 09:08:58 +02:00
Flyinghead
7e1dcf9003
maple: move test, coin and trigger buttons into the upper 16-bit range
...
avoid interfering with regular jvs/maple buttons
2023-09-12 19:13:40 +02:00
Flyinghead
0f4c903fed
ios build fix
2023-09-12 19:06:59 +02:00
Flyinghead
0ac483acfc
sh4 dynarec refactoring
...
sh4 code buffer class
dynarec interface and implementations
2023-09-12 16:52:25 +02:00
Flyinghead
f4835a89d3
implement dithering in full FB mode
...
gl, vk, dx11, dx9: implement ordered dithering in GLSL/HLSL
refactor framebuffer and texture writes to vram
don't expand color data when reading planar textures
2023-09-10 16:25:19 +02:00
flyinghead
b23d37f76f
lr dx11: set all shaders in Quad to avoid conflicts with RA
...
RA uses geometry and/or compute shaders, which must be disabled when the
core is drawing.
Issue #1192
2023-09-09 16:22:50 +02:00
Edward Li
1377e61d03
DX11: Use high performance GPU on Windows 10 (1803 or later)
2023-09-07 09:51:45 +02:00
Flyinghead
8eae6b97fc
ui: keyboard input was ignored when resuming game if no render
...
When resuming a game, keyboard is ignored until the next frame is
rendered. This is due to ImGUI not updating its WantCaptureKeyboard flag
until the next frame, which is an issue if the game isn't actively
rendering frames (Zombie Revenge pause screen, Giant Killers)
2023-09-02 20:00:07 +02:00
Flyinghead
d29645cc49
naomi: derbyoc JP card reader support. security pic for doa, tduno
...
Derby owner's club (JP) uses a Sanwa CRP-1231LR card reader. World
edition uses a Sanwa CRP-1231BR.
Set x76f100 security pic content for doa2, doa2a, doa2m, tduno
2023-08-27 17:20:43 +02:00
Flyinghead
129fff1c2a
naomi: x76f100 and at93cxx implementation. naomi2 elan fix
...
proper emulation of x76f100 security eeprom and at93cxx serial eeprom
elan: don't reset projection matrix at end of frame. Issue #1177
2023-08-25 17:01:40 +02:00
scribam
10b13dfe9c
deps: update to match Vulkan SDK 1.3.261.0
2023-08-24 17:33:47 +02:00
scribam
358a54152b
deps: update imgui to version 1.89.8 and implot
2023-08-24 17:33:47 +02:00
scribam
06e2c455e8
deps: update sdl to version 2.28.2
2023-08-24 17:33:47 +02:00
scribam
a1838eee30
deps: update libchdr
2023-08-24 17:33:47 +02:00
scribam
56b082def7
uwp: add support for arm
2023-08-02 09:32:55 +02:00
Shingo INADA
92a10ba0f0
[input] fix LT2/RT2 mapping save
2023-07-31 16:12:13 +02:00
Flyinghead
c637ae8281
Merge remote-tracking branch 'origin/master' into dev
2023-07-30 18:05:38 +02:00
scribam
40953b17c4
uwp: add support for arm64
2023-07-30 18:03:32 +02:00
Flyinghead
7061c043d9
naomi: derbyocw card support. serial pipes refactoring. systemsp fixes
...
common interface for most serial pipes
jvs: MIE RS422 port support
card reader: allow reading/writing of individual tracks
systemsp: fix interrupt handling. refactor serial ports. isshoni wanwan
puppy touchscreen support
2023-07-26 21:34:03 +02:00
Flyinghead
92a19e9250
hopper fixes. fix kick4cash input
...
kick4cash encoders are rotated 45° and polling is done twice per frame.
add bet button to shootout pool and club kart (prize)
hopper: load/save config. fix pay out and bet values. proper defaults
based on selected currency.
2023-07-23 17:16:08 +02:00
scribam
4f5fd31d81
archive: replace zip_get_num_files (deprecated) by zip_get_num_entries
2023-07-22 19:04:52 +02:00
scribam
1b565f9879
clang-tidy: run modernize-concat-nested-namespaces
2023-07-22 19:04:52 +02:00
scribam
d2b475ae41
boxart: remove redundant call to c_str()
2023-07-22 19:04:52 +02:00
Lucas Azevedo
9c61006941
Fix GUI SDL mouse buttons
...
Clicks were swapped in GUI as SDL uses 2 for middle and 3 for right and
the GUI expects the opposite (minus 1).
2023-07-18 11:00:58 +02:00
scribam
4db26bc092
spg: fix warning 'vblk_cnt' defined but not used
2023-07-16 19:57:51 +02:00
Flyinghead
8c0f543bc8
naomi: hopper support for kick'4'cash, shootout pool and club kart prize
...
high level emulation of 837-14438 and naomi SWP hopper boards
2023-07-16 19:57:16 +02:00
Flyinghead
8e3a48eb6f
naomi: fix shootout pool inputs
...
Use button 1 to switch between cue aim and cue roller rotary encoders.
Remap start/mode to start
2023-07-16 19:10:39 +02:00
Flyinghead
7a22318b0f
sdl: don't send button up events based on mouse button state
...
as doing so cancels other inputs bound to the same target
2023-07-16 19:03:07 +02:00
Flyinghead
3c6eaa4d34
aica arm: use scratch reg for call/jump if offset if too big (armv7)
...
Issue #1148
2023-07-14 21:32:49 +02:00
Flyinghead
3bf817aea1
vk: reset semaphore index to 0 when recreating the swap chain
...
When frame dupe is enabled and switching to fast forward, the current
semaphore index might end up pointing past the end of the semaphore
array, causing a crash.
Issue #1138
2023-07-10 12:41:13 +02:00
scribam
a3ebe02f85
vk: modernize device properties retrieval
2023-07-09 18:51:44 +02:00
Edward Li
278f26aadd
macOS: Enable clipboard functions and corresponding menu items
2023-07-06 18:42:31 +02:00
Flyinghead
30e66d1c17
reios: ignore high order bits for FAD
...
Mask FAD with ffffff. Apparently the regular BIOS does the same. Fixes
bogus FAD issued by Guilty Gear X when playing CD audio.
Issue #1124
2023-07-05 10:23:54 +02:00
Edward Li
2089015221
Fix Spout2 MinGW error
2023-07-03 11:38:35 +02:00
scribam
42d003597e
deps: update sdl to version 2.28.1
2023-07-03 11:38:06 +02:00
scribam
f9da57d87f
deps: reapply patches to vixl
2023-07-03 11:37:42 +02:00
scribam
daf8230cca
deps: update vixl
2023-07-03 11:37:42 +02:00
Flyinghead
f02265b662
systemsp: fix sram addressing
...
translate dinoki4 rom name
2023-07-03 11:36:59 +02:00
Flyinghead
5eb893a995
Sega SystemSP support
...
add naomi roms: anpanman2, anpanman2a, drbyocwt and clubkpzbp
2023-07-01 16:24:51 +02:00
Flyinghead
b47f4f56ef
user-defined literals: _KB, _MB, _GB
2023-07-01 14:31:25 +02:00
vkedwardli
7cd308fcae
Realtime Video Routing ( #1126 )
...
* Syphon video routing with OpenGL and Vulkan (MacOS)
* Spout video routing with DX11 and OpenGL (Windows)
* Fix Xcode detection
2023-06-26 11:56:56 +02:00
scribam
6e6f75386b
deps: update sdl to version 2.28.0
2023-06-26 11:53:22 +02:00
Flyinghead
aad4921e09
picotcp: fix kos ppp nego. modem,bba: fix kos detection
...
picotcp: ignore conf ack received when lcp layer is up (kos ppp)
picotcp: ignore icmp ping seq and id #
scheduler: add void * arg to callback function. Get rid of static instances when possible
bba: use scheduler to delay link changes (fixes kos bba detection)
modem: fix soft reset. don't reset TDBE during reset (fixes kos modem detection)
2023-06-23 11:40:22 +02:00
Flyinghead
0070f9abad
network: fix known UDP ports bind regression
...
introduced by b4e5af6346
Add driving strikers netdemo known port
Issue #1112
2023-06-21 16:31:01 +02:00
Flyinghead
dca048981f
network: process both inbound and outbound packets for 2k games
...
DreamPi processes inbound packets on tcp port 5011 (dc2k2) so let's do
both.
Issue #1112
2023-06-18 11:20:40 +02:00
Eric Warmenhoven
74b98d85ed
libretro: another apple platforms build fix
2023-06-16 17:27:14 +02:00
Flyinghead
67a7637b9f
network: tentative fix for 2k sport games
...
Fix port 5011 outbound packets instead of incoming ones for original hw
interop.
Issue #1112
2023-06-16 17:26:39 +02:00
Eric Warmenhoven
2511a19d2d
libretro: apple platforms build fix
2023-06-15 16:05:36 +02:00
Flyinghead
b4e5af6346
picotcp: bind native udp socket to the same local port as the pico one
...
The Toy Racer server ignores the source udp port so it must match the
dreamcast one. Will not work if the port is in use or well-known, or if
NAT gets in the way.
Issue #1112
2023-06-15 16:04:32 +02:00
Murad "Gness Erquint" Beybalaev
f679fd9ba9
Typo in GUI.
...
"Covert art" → "cover art".
2023-06-13 14:56:33 +02:00
Flyinghead
b6930a2a9e
rend: force texture scanorder to 0 if vq and mipmap are set
...
Fixes crash and corrupted texture in Star Wars Demolition
Issue #1108
2023-06-13 14:55:47 +02:00
scribam
4db7137dbf
deps: update miniupnpc to version 2.2.5
2023-06-12 16:07:41 +02:00
Flyinghead
d6fe46649c
sdl: also use F11 to toggle fullscreen
...
in addtion to alt+enter
2023-06-12 16:05:34 +02:00
Flyinghead
2644c2ef47
pvr: more std::vector::operator[] UB
...
Issue #1100
2023-06-05 17:13:40 +02:00
scribam
f590766421
deps: update nowide
2023-06-04 12:49:55 +02:00
Flyinghead
fa1c62d11a
naomi: fix spawn eeprom network settings
2023-06-04 12:49:35 +02:00
Flyinghead
ffc0a42c18
std::vector::operator[index] with index >= size is UB
2023-06-04 12:48:50 +02:00
vkedwardli
6c249ee4d2
Set `header()` and `OptionArrowButtons()` alpha to 1.0f ( #1096 )
...
* Set `header()` alpha to 1.0f
* Do not grey out `OptionArrowButtons()` also
2023-06-02 14:26:04 +02:00
scribam
bd946bfbea
deps: update imgui to version v1.89.6
2023-06-02 14:24:32 +02:00
Flyinghead
bb92e9f7a4
add rfid cheat for mushik2k
2023-06-02 14:23:46 +02:00
Flyinghead
63686eeee1
naomi: add fallback bios files. Proper region names
...
ui: use proper region names for arcade (export, korea)
naomi: add previous version of BIOS files and fall back if latest ver
not found
fall back to use multiregion bios hack for korea
add CRC for all bios files
2023-06-02 14:23:14 +02:00
scribam
c0a286532a
deps: update Vulkan-Headers and VulkanMemoryAllocator
2023-05-31 17:03:20 +02:00
Flyinghead
231a1b624f
maple: fishing controller vibration pack, analog to dpad
...
refactoring to avoid duplicate code
2023-05-31 17:01:54 +02:00
Flyinghead
9b8fd39d12
libelf: make static lib
...
gentoo builds shared libs by default
2023-05-31 16:54:48 +02:00
Flyinghead
90c4e42c11
naomi: add mushikk, mushikc and mushik2k
...
cheats for mushikk and mushikc rfid check
mushik2k needs rev.H korean bios and won't boot
2023-05-31 16:53:49 +02:00
Flyinghead
d76611730e
scraper: check for null disc after opening
...
Fixes MINIDUMP-11H
2023-05-29 17:34:29 +02:00
Flyinghead
bdd677d66a
ui: disable non-functional Dreameye maple device
...
Fix for MINIDUMP-127
2023-05-29 17:31:55 +02:00
Flyinghead
2299c9fade
gl: detach and delete shaders after linking program
...
Fix attempt for MINIDUMP-RA, MINIDUMP-RM, MINIDUMP-Y7
2023-05-29 17:28:28 +02:00
Ricardo Mendonça Ferreira
885714e883
Support for Maracas & Pop'n Music controllers, WIP for others ( #1035 )
...
Racing controller, fishing controller and Densha de Go controller
Co-authored-by: Ricardo <ric.ce.br@gmail.com>
Co-authored-by: Flyinghead <raphael.jean@gmail.com>
2023-05-29 12:45:34 +02:00
Flyinghead
f95c7212bf
gcc13 build fix
2023-05-28 11:43:58 +02:00
Flyinghead
bb0da9488f
bump glslang to 12.2.0
...
Fix gcc13 compile error
2023-05-28 10:56:14 +02:00
Flyinghead
1aeacb0297
android: storage::getSubPath can throw
2023-05-28 10:52:16 +02:00
Flyinghead
0a1fe0135f
lr: default language=EN, region=USA. TrickStyle fix
...
libretro: set default language to English and default region to USA.
Same as standalone.
Force language to English for TrickStyle (US)
Issue #1082
2023-05-25 13:18:42 +02:00
Flyinghead
4391058563
aica: dma cycles schedule tweak
...
Increase lower limit to schedule dma callback from 224 to 513
Fixes freeze/crash in Nomad Soul
Issue #1080
2023-05-25 13:02:14 +02:00
Flyinghead
ea9bdd03e4
Merge remote-tracking branch 'origin/master' into dev
2023-05-24 10:44:14 +02:00
Flyinghead
ed99c96232
mmu: slow mmu build fix
2023-05-24 10:43:20 +02:00
Flyinghead
755e17dc97
rend: fix clipping edge case
...
Fixes some transitions in Bokomu no Tatsujin
Issue #1072
2023-05-24 10:31:55 +02:00
A-w-x
e94babe57e
update breakpad submodule
2023-05-22 20:37:57 +02:00
Flyinghead
6b9840268f
vf4: fix networking on windows (vanilla, evo). Add eeprom and nvmem
...
connect returns EWOULDBLOCK instead of EINPROGRESS on windows
add eeproms for vf4, vf4evo and vf4tuned (2-player cabinet)
add nvmems for vf4, vf4evob and vf4tuned (network & card readers
enabled, all day card schedule, stage select, ...)
2023-05-20 11:19:26 +02:00
Flyinghead
3f456c6738
vf4: insert card now ejects the card if already inserted
...
support vf4 card renewal
2023-05-19 17:45:18 +02:00
Flyinghead
59480ea5a6
gdrom: force ADR to 1 for all tracks in TOC. Set lead-out as data
...
Fixes gdrom check in Eldorado Gate 4 to 7
Issue #1043
2023-05-17 16:30:24 +02:00
Flyinghead
920666bc70
rent a hero 1: hle bios fix
...
Issue #1070
2023-05-17 16:20:46 +02:00
Flyinghead
eebcb322cf
vk: imgui crash during start up
...
font tex id must be nulled when destroying vk objects
2023-05-16 16:36:56 +02:00
scribam
04b0489ff3
deps: update imgui_impl_vulkan.*
2023-05-16 14:51:03 +02:00
scribam
dd5f44ff91
deps: update imgui_impl_dx*
2023-05-16 14:51:03 +02:00
Flyinghead
e5344d37d0
gdrom: fix cdda restart. revert previous change. fix hle pause/release
...
Revert changes from Issue #690
Fixes cdda restart in Mr.Driller, Bust-a-move 4, Wetrix+ and Reel
fishing. Issue #1019
hle: returning current cdda information fixes the pause/release issue
2023-05-16 14:33:33 +02:00
Flyinghead
c07f862ef2
ggpo: exchange vf4 cards when starting the session
2023-05-16 09:43:21 +02:00
Flyinghead
8b0add47a2
revolt(jp): scale down depth to avoid menu glitch
...
This game uses large depth values in the menus (2000000)
Issue #1065
2023-05-14 17:34:30 +02:00
Flyinghead
fe9ce46ab1
pvr: don't crash when hblank int mode is invalid or unsupported
...
Fixes MINIDUMP-ZE
2023-05-14 16:42:14 +02:00
Flyinghead
01c5c98396
pvr: check current ta context index when deserializing
...
Fixes MINIDUMP-YS
2023-05-14 16:40:36 +02:00
Flyinghead
d00f07acb8
naomi: check cart malloc
...
Fixes MINIDUMP-QW
2023-05-14 16:36:14 +02:00
Flyinghead
83bfa9158d
aica: don't crash if AFSEL=1
...
Fixes MINIDUMP-XW
2023-05-14 16:22:10 +02:00
Flyinghead
ac2637286b
Merge remote-tracking branch 'origin/master' into dev
2023-05-13 15:55:47 +02:00
flyinghead
541544292a
dx11 oit: resize to null width and height when rendering to texture
...
Regression introduced by d2e8c9465b
Issue #974
2023-05-13 15:09:27 +02:00
Flyinghead
4b0d377e66
pvr: don't clip negative depth vertices
...
Fixes baserunner cams depth in World Series Baseball 2K1
Issue #1027
2023-05-12 10:20:46 +02:00
Flyinghead
ae2bc8182f
pvr: FB_W_CTRL.fb_alpha_threshold comparison is greater or equal
...
Fixes black tile under player feet in Izumo.
Force CopyToVRAM.
Issue #1040
2023-05-12 10:13:48 +02:00
Flyinghead
d9ec14e048
rend: rtt can also use SCALER_CTL.hscale
...
Issue #1025
2023-05-09 21:28:22 +02:00
Flyinghead
c0f0a758df
pvr: treat nan intensity as max. avoid nullptr crash in appendSpriteVtx
...
Fixes Gaiamaster Kessen! black texture. Issue #1021
Fix for MINIDUMP-RC
2023-05-09 21:07:40 +02:00
Flyinghead
1a5a2f64d4
naomi: insert card button compatibility with ggpo
...
handle insert card button like standard naomi buttons so it can be used
with ggpo
load card data when it's inserted, not before
2023-05-06 20:54:45 +02:00
scribam
220fd51b27
deps: gather backends under imgui/backends directory
...
stay consistent with upstream
2023-05-04 09:26:01 +02:00
scribam
29cdc77817
deps: update implot
2023-05-04 09:26:01 +02:00
scribam
483c59f2e4
deps: update imgui to version v1.89.5
2023-05-04 09:26:01 +02:00
scribam
1fdab613fd
deps: update glslang and Vulkan-Headers to sdk-1.3.243.0
2023-05-04 09:25:24 +02:00
scribam
3192f84576
remove unused iconv.h include
2023-05-02 09:45:54 +02:00
scribam
4acb670b88
netbsd build fix
2023-04-29 17:51:25 +02:00
Flyinghead
79b9b49218
naomi: netdimm net client and rfid card reader emulation
...
high-level emulation of netdimm v3.17 net client lib
vf4/mushiking rfid card reader emulation
2023-04-29 17:50:56 +02:00
Flyinghead
e913bae9e3
alienfnt: handle +++ modem escape sequences
...
Allow modem to start when returning from test mode
2023-04-26 20:17:19 +02:00
Flyinghead
22d228c1b0
imgui: don't send X button events to avoid the nav window popping up
...
Issue #1034
2023-04-26 20:14:18 +02:00
Eric Warmenhoven
d3a3cab425
Build iOS libretro core
2023-04-26 14:39:04 +02:00
Flyinghead
9d1a5cf0d3
ui: allow horizontal screen stretching up to 250%
...
Issue #1012
Issue #609
2023-04-24 17:41:42 +02:00
Flyinghead
c8a45d95a7
dynarec: fix mov64 edge case when registers must be swapped
...
Handle case where mov64 must swap its operands depending on register
allocation.
Fix canonical call for FSCA when return operands are register-allocated.
Issue #1020
2023-04-24 17:38:49 +02:00
Flyinghead
92a1c1891b
alienfnt: support for serial modem and worldwide ranking server
...
Emulate modem on sh4 serial port.
Use picotcp stack to handle ppp protocol.
Include nvmem with network settings (server at alienfront.duckdns.org,
disabled by default).
2023-04-16 15:41:54 +02:00
Flyinghead
858174791f
disable multiboard on openbsd and netbsd
...
for lack of interprocess mutexes
2023-04-15 15:45:11 +02:00
Flyinghead
fb4e653269
lr: crosshair not transparent with vk. Mazan can be played with gamepad
...
Use transparent quad pipeline to draw crosshairs and vmus
Allow mazan and touchscreen games (manic panic, tduno, ...) to be played
with a gamepad.
2023-04-15 15:45:11 +02:00
scribam
210100a108
naomi: netbsd/openbsd pthread fixes
...
These systems do not have pthread_condattr_setpshared/pthread_mutexattr_setpshared
2023-04-13 18:10:19 +02:00
Flyinghead
edd1487378
gl: powervr2 filter has some uninitialized vecs
...
Issue #1005
2023-04-13 18:07:17 +02:00
Flyinghead
68f4ce1ec5
naomi: fix multiboard slave not starting
...
regression due to 87fdd203b5
2023-04-13 18:03:41 +02:00
Flyinghead
70d3e221a9
mushiking series support
...
Emulate barcode reader. UI to input card id.
scif: SCFSR2.DR should also trigger an interrupt. Fixes the partial read
issue with manic panic ghosts touchscreen.
Add default implementations in SerialPipe for read-only and write-only
devices.
Fix card jammed error in mushiking with custom input code.
Add mushi2k61 and mushi2k62 to naomi rom list.
Cheats to skip rfid check.
2023-04-12 10:09:21 +02:00
Flyinghead
b556617e1d
sh4: only reset serial pipe on hard reset
...
See d3690b12c6
2023-04-09 20:56:14 +02:00
Flyinghead
e327172fd0
sh4: check access length when getting a ram pointer with GetMemPtr
...
Check access length and return nullptr if overflowing ram.
Fix ch2-dma code accordingly.
Fixes MINIDUMP-GX
2023-04-09 20:47:12 +02:00
Flyinghead
c5f82483e6
naomi: fix multiboard windows position
...
Position slave windows over master.
Support any window width.
2023-04-09 20:28:10 +02:00
Flyinghead
a418b05272
ui: make cheat list touch-scrollable
2023-04-09 20:20:07 +02:00
Flyinghead
5c3f66fe05
ui: ignore inaccessible content path when scanning for games
2023-04-09 20:18:56 +02:00
Flyinghead
81ce3f7d10
msvc32 build fix
2023-04-08 19:11:21 +02:00
scribam
64cfba735e
deps: update sdl to version 2.26.5
2023-04-08 18:38:35 +02:00
scribam
8828b4fe52
deps: update implot to fix IMGUI_DEFINE_MATH_OPERATORS requirements
2023-04-08 18:38:26 +02:00
Flyinghead
87fdd203b5
android scoped storage (ASS) support
...
introduce Storage abstraction interfaces
use Storage i/f to load zip and 7z archives, cdi/cue/gdi/chd media,
cheats and to find custom textures.
Use android file picker to add storage. Request persisted access perms.
jni helper classes.
Issue #813
2023-04-08 18:37:50 +02:00
Flyinghead
f94a08f12f
mmu: avoid crash due to approximative fast mmu matching
...
Fixes MINIDUMP-EA (Sonic Shuffle)
2023-04-02 22:06:22 +02:00
Flyinghead
252ad711f1
vk: throw if vmaMapMemory fails
...
MINIDUMP-PX
2023-04-02 22:02:53 +02:00
Flyinghead
d3690b12c6
net: don't reset naomi network on soft reset (maxspeed)
...
Resetting makes maxspeed crash as the serial pipe isn't reset and
becomes invalid.
Fixes MINIDUMP-PJ
2023-03-31 20:09:33 +02:00
Flyinghead
32e08ca165
modem: don't crash on unexpected register writes
...
Just log and ignore.
Fixes MINIDUMP-62
2023-03-31 20:03:16 +02:00
Flyinghead
bc4f8fbe60
dx11: enable depth writing in oit pass
...
Make sure both depth attachments are identical at the end of each pass.
Issue #996
2023-03-31 20:01:12 +02:00
Flyinghead
7108358ebd
Merge remote-tracking branch 'origin/master' into dev
2023-03-30 17:31:22 +02:00
Flyinghead
48acb03b81
underclock/overclock SH4 option
...
Increase/reduce the dynarec cycle count for each block.
Issue #210
2023-03-30 17:22:24 +02:00
Flyinghead
08ac485eac
ui: fix drag scrolling and imgui gl renderer. use imgui events
...
Missing call to KeepAliveID was preventing drag scrolling in empty
areas. Also check for HoveredIdDisabled to allow scrolling by dragging
disabled items and enable HoveredIdAllowOverlap.
imgui gl renderer: use ImDrawCmd::IdxOffset instead of counting
manually. Use correct alpha blending function.
Use imgui events for all input. Simplify keyboard input by getting rid
of modifiers.
Enable flat navigation in content window.
Add format string to OptionSlider.
2023-03-30 16:54:54 +02:00
Flyinghead
c033a81eca
get rid of KeyboardDeviceTemplate
2023-03-29 16:48:46 +02:00
Flyinghead
5df9127add
vk: enable depth writing in oit pass so
...
Make sure both depth attachments are the same at the end of each pass.
Get rid of unneeded depth dependency/transition.
Issue #996
2023-03-28 21:20:37 +02:00
Flyinghead
b9e9cc534c
lr: build fix when USE_OPENGL=OFF
...
Issue #997
2023-03-28 21:07:50 +02:00
Flyinghead
79be464326
aica: proper write mask on aica dma address registers
...
Fixes MINIDUMP-P3
2023-03-28 21:05:18 +02:00
Flyinghead
f67aad0b2d
pvr: don't wait if Present msg is already in the queue
...
Only Render* msgs are an issue when piling up on slow platforms.
Fixes frame skipping only working when delay frame swap is on
Issue #975
2023-03-28 21:01:56 +02:00
Flyinghead
55b36fe719
dx11: revert 47a33f97f9
...
Issue #865
2023-03-28 20:55:56 +02:00
scribam
170f794c3a
deps: remove imgui obsolete keyio functions
...
Fix compilation with #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2023-03-27 16:59:06 +02:00
scribam
ae4bd79ca1
deps: remove imgui obsolete functions
...
Fix compilation with #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2023-03-27 16:59:06 +02:00
Flyinghead
d76982bbeb
naomi,aw: embed default flash for some games
...
Needed to configure network on first run.
2023-03-27 16:57:48 +02:00
Flyinghead
fb4229c4ae
support for daytona usa networking
2023-03-27 16:45:25 +02:00
Flyinghead
caec338d25
dx9, dx11: video shift support
...
Shift the framebuffer according to VO_STARTX and VO_STARTY.
Issue #594
lr: draw overlay and manage shifting in dx11 context
2023-03-27 16:41:59 +02:00
Flyinghead
b94200233d
vk: video shift support. refactor lr vk context
...
Shift the framebuffer according to VO_STARTX and VO_STARTY.
Issue #594
lr: draw overlay and manage shifting in vk context
2023-03-27 16:38:15 +02:00
Flyinghead
eb3ebe24e8
gl,gl4: video shift support, fix powervr filter, refactor lr osd
...
Shift the framebuffer according to VO_STARTX and VO_STARTY.
Issue #594
GlVertexArray class to handle vertex arrays (or lack thereof)
lr: Fix PowerVR2 filter including in full fb emu mode. Use quad to draw
vmus and lightgun xhairs.
2023-03-27 16:31:57 +02:00
Flyinghead
5e4e48fffe
mmu: don't crash when table full, just ignore
...
Fixes MINIDUMP-NF
2023-03-25 11:45:03 +01:00
Flyinghead
47a33f97f9
dx11: disable texture support check on uwp/xbox
...
Tentative fix for Issue #865
2023-03-25 11:43:17 +01:00
Flyinghead
068861d0cc
pvr: mask low address bits according to 32-bit vram access size
...
Avoid crash when accessing the very last vram byte with short or int.
Correct behavior should be to raise an sh4 address exception.
Fixes MINIDUMP-N2
2023-03-24 11:53:38 +01:00
Flyinghead
f2f8f3ccd2
bump libchdr to latest
...
commit 8e09bf2b
Fixes MINIDUMP-HD, MINIDUMP-M8
2023-03-24 11:48:52 +01:00
Flyinghead
2d7a1ce71a
atomiswave: fix failure to identify the game
...
regression by 78f80eb7dc
2023-03-23 09:45:25 +01:00
Flyinghead
74d72eb257
imgui: fix gamepad navigation
...
Issue #986
2023-03-23 09:39:25 +01:00
Flyinghead
9512ee657a
Allox f355 deluxe to run with only one screen
2023-03-22 19:01:34 +01:00
Flyinghead
78f80eb7dc
naomi: printer support for f355 and tduno[2]. Fix some bios font glyphs
...
Thermal printer support for f355 (G2 ext bus) and tduno[2] (maple JVS)
Change game id for sgdrvsim and dragntr3 to distinguish them.
Fix cyrillic page in BIOS font.
2023-03-22 19:00:50 +01:00
Flyinghead
fa525b4488
Fix hotd2p inputs
...
Issue #731
2023-03-22 15:36:10 +01:00
Flyinghead
ee3e83e09c
Fix loading of Sega Yonin Uchi Mahjong MJ (mj1)
...
gd cart: load first .bin if the specified one isn't found. Fix loading
of main directory for mj1. Don't update progress too often when
decrypting.
chd: allow loading of 1-track CD-ROMs
Use 2 jvs boards for mj1
Issue #985
2023-03-22 13:00:59 +01:00
Flyinghead
ea4354ba2e
Shin Nihon Pro Wrestling 4 crashes with RGB component
...
Force TV Composite instead
2023-03-21 11:36:47 +01:00
Flyinghead
5c5c872afc
aica: small dma transfer must be correctly scheduled
...
Previously transfer taking less than 4096 cycles would be instantly
executed.
Fixes Sports Jam announcer broken audio.
Issue #980
2023-03-21 11:32:21 +01:00
Flyinghead
9f2ffd102c
oit: Can't discard pixel in pixel shader when using 2ndary accumulator
...
When using the secondary accumulator as source or destination, pixel
must not be discarded even if blending results in a nop. Doing so
cancels the transfer to/from the accumulator.
Issue #979
dx11 oit: use FAILED to detect pixel shader creation error. Log error
codes when Buffers::init fails.
2023-03-21 11:22:04 +01:00
scribam
34f8941868
deps: apply drag scrolling custom code to imgui
2023-03-20 16:52:51 +01:00
scribam
07b217d9f8
deps: update imgui to version 1.89.4
2023-03-20 16:52:51 +01:00
Flyinghead
cb83d319b9
naomi: 4-player and eeprom fixes
...
Add 4-player support to Dirty Pigskin Football, WFF Royal Rumble, World
kicks PCB and Beach Spikers.
Fix several bugs in initEeprom and force 4-player cab when needed.
Get rid of pstone, pstone2 and ringout default eeproms.
2023-03-20 12:35:36 +01:00
scribam
23daa3efdf
deps: use latest stable release for oboe (1.7.0)
2023-03-18 16:11:41 +01:00
scribam
3a1ffceb58
deps: update glslang and Vulkan-Headers to sdk-1.3.239.0
2023-03-18 16:11:41 +01:00
scribam
f3431bd95d
deps: update sdl to version 2.26.2
2023-03-18 16:11:41 +01:00
Flyinghead
01c7250be2
hle bios: add latin-1, jis x0201 and jis x0208 glyphs to bios font
...
Use CMakeRC to embed font binary file
2023-03-18 16:11:03 +01:00
Flyinghead
afc1f5f4e1
Merge remote-tracking branch 'origin/master' into dev
2023-03-15 21:09:47 +01:00
Flyinghead
4a2ad8b145
pvr: SortedTriangle has unsafe pointer to PolyParam
...
std::vector elements can be reallocated. Use index instead of pointer.
2023-03-15 20:58:12 +01:00
Flyinghead
17ab0aba26
dx11,dx9: Force ignoreTexAlpha if texture doesn't have an alpha channel
...
The supporting texture might have one if converted but it shouldn't be
used.
Fixes cinematic scenes in Alone in the Dark.
Issue #974
2023-03-13 21:12:39 +01:00
Flyinghead
cc1b45b7cc
texture corruption after load state regression. wince depth scale change
...
Texture weren't updated after loading a state. Regression introduced by
942224c685
.
Change Windows CE depth scale from 0.1 to 0.01 to fix black screen FMV
on AMD and Intel GPUs. Issue #973
2023-03-13 21:03:16 +01:00
Flyinghead
4d990947de
sgdrvsim: display or network broadcast speedometer and tachometer
...
Display speedometer value, or network broadcast speedo and tacho on port
8002 (slave 2) if option is set
2023-03-13 17:45:12 +01:00
Flyinghead
5542d6db21
picotcp: full deinit when terminating
...
New pico_stack_deinit() function to fully deinit picotcp. Need to call
pico_stack_init when restarting.
Get rid of dns client
Tentative fix for MINIDUMP-G6, MINIDUMP-J0, MINIDUMP-HY, MINIDUMP-G5,
MINIDUMP-J0, MINIDUMP-HY, MINIDUMP-FP, MINIDUMP-F7, MINIDUMP-9H,
MINIDUMP-CB, MINIDUMP-CE; MINIDUMP-B3, MINIDUMP-1Y, MINIDUMP-A7,
MINIDUMP-9M
2023-03-13 17:36:32 +01:00
Flyinghead
8ca89ead0e
Enable RTT Copy to VRAM for Shenmue
...
Fixes Space Harrier mini arcade game.
Issue #967
2023-03-12 16:06:05 +01:00
Flyinghead
ebf5f24487
ui: reduce boxart image size. Avoid crash with invalid option values
...
Reduce boxart image size from 200 to 150.
Avoid under/overflowing label tables with invalid option values when
using combo boxes.
Fixes MINIDUMP-GK
2023-03-12 16:04:05 +01:00
Flyinghead
90269d5204
vk oit: reset all pipelines on init/reset
...
Avoid validation errors when switching to/from RTT Copy to VRAM
2023-03-12 16:00:49 +01:00
Flyinghead
e4332f6275
tex: ignore stride if 0. renderer: ignore invalid textures
...
Ignore StrideSel if 0 during texture update and use width instead.
Return false from BaseTextureCacheData::Update() if texture is invalid.
Make sure valid textures have non-null height and size.
gl,vk,dx9,dx11: ignore invalid textures
Fixes MINIDUMP-GP
2023-03-12 15:58:56 +01:00
Flyinghead
cd7168772d
reios: crash when CDDA play with no disk
...
Fixes MINIDUMP-HW
2023-03-12 15:51:05 +01:00
Flyinghead
77ded80450
cdi: check each track sector size when opening
...
Fixes MINIDUMP-J4
2023-03-12 15:48:13 +01:00
Flyinghead
ea7dd699b9
only launch sgdrvsim slaves on desktop platforms
2023-03-10 18:10:57 +01:00
Flyinghead
018a852995
network: naomi net was closing stdin. Slaves don't broadcast outputs
...
naomi network: Initialize socket to -1. Only close if valid.
Multiboard or sgdrvsim slaves don't broadcast digital outputs
Don't save slave windows position
2023-03-10 18:01:49 +01:00
Flyinghead
8a28ddbfe6
jvs: allow p2 buttons to be always on. sgdrvsim improvements
...
jvs: allow button mapped to jvs P2 to be always on. Don't overflow
button descriptors table
midiffb: invert axis if needed
Launch sgdrvsim network instances automatically. Remap some buttons and
make some always on.
2023-03-10 17:57:27 +01:00
Flyinghead
f186046c98
partial support for sega driving simulator
2023-03-09 17:54:57 +01:00
Flyinghead
5644e834fa
x86 dynarec: use UpdateSystem_INTC like other recs
...
get rid of unused rdv_DoInterrupts and rdv_DoInterrupts_pc
2023-03-09 09:37:48 +01:00
Flyinghead
0b1f69bfd2
dynarec: more accurate cycle counting. limit code duplication
...
arm, arm64, x86: only account for current block cycles if block is
executed. Test cycle_counter before updating it.
arm, arm64: use function for mmu block check (vaddr and FPU ops) to
reduce host code size per block.
2023-03-08 19:24:49 +01:00
Flyinghead
4eb5cd928e
nuke rec-cpp
2023-03-08 18:56:26 +01:00
Flyinghead
b8d47fe0a8
sh4 dmac: more accurate implementation. Fixes sh4_dmac_demo.elf
2023-03-07 18:38:41 +01:00
Flyinghead
abcd9d77d4
set some global to static
2023-03-07 18:36:26 +01:00
Flyinghead
095e5ede81
sh4: more accurate cycle counting
...
get rid of float ops hack for dead or alive 2
get rid of idle skip option and code block hashing
count cycles for high-level wince functions and handlers (GetTickCount,
QueryPerformanceCounter and TLB_MISS handler)
Fixes Dave Mirra Freestyle BMX time counter running too fast.
More FPS for many wince games. Better wince perf on slow devices.
2023-03-07 18:35:01 +01:00
flyinghead
52754cbbbb
win32 lr build fix
2023-03-07 14:26:04 +01:00
Flyinghead
942224c685
in single threaded, only defer emu stop on android
...
on other platforms, render() won't be called => audio not terminated,
rom files not saved, pause event missed
unprotect memory and reset memwatch before loading a state
2023-03-07 13:43:22 +01:00
Flyinghead
670a25b039
dx11: dynamically load d3dcompiler_47/46.dll to avoid old versions
...
Fixes MINIDUMP-8H, MINIDUMP-CD
2023-03-07 13:35:15 +01:00
Flyinghead
aa5fd64777
dx11: use FAILED() macro instead of != S_OK
...
Tentative fix for MINIDUMP-FG
2023-03-06 10:30:33 +01:00
Flyinghead
67bba95dd1
dmac: set DMAOR.AE and raised interrupt if ch2 address error
...
Fixes crackin'dj 1 & 2 freeze at boot
Regression introduced by 66eb08f2d1
2023-03-06 10:26:52 +01:00
Flyinghead
cd6152b193
per-game vmu A1 option
...
When enabled, each game has its own A1 vmu file.
Issue #555
2023-03-05 15:32:47 +01:00
Flyinghead
67c070c20f
naomi: display crosshair for touchscreen games
2023-03-05 15:13:18 +01:00
Flyinghead
2355bb8bb5
pvr: drop more vertices with large x and y
...
Fixes Manic Panic Ghosts bogus transparent rectangles in first stage
2023-03-05 15:08:17 +01:00
Flyinghead
c4d24254db
naomi2: FFB support for Club Kart and King of Route 66
2023-03-04 17:45:53 +01:00
namtsui
27b6bafd0f
vendor newest libelf ( #955 )
...
* vendor newest libelf
source:
2d5b59c99a/libelf
* use exec_elf.h from openbsd to define structs
* libelf: build fixes
- do not link against muslc.
- windows and apple use bundled exec_elf.h.
- casts added like the old elf32.h, elf64.h and elf.c so pointer
arithmetic works. otherwise some compilers complain about void*.
- remove unused bits of exec_elf.h and added typedefs.
* adapt CMakeLists.txt to use libelf's CMakeLists.txt
* adapt reios_loadElf() to new libelf API
2023-03-03 16:05:12 +01:00
Flyinghead
192bbb715e
input: use gamepad left stick for abs/lightgun coordinates
...
Issue #881
2023-03-01 21:48:51 +01:00
Flyinghead
014da3a225
naomi: network output FFB for 18 wheeler and f355
2023-02-28 20:23:58 +01:00
Flyinghead
803f4cd298
controller bindings for load and save state
...
Issue #615
2023-02-28 20:21:29 +01:00
Flyinghead
885a0508c0
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/hw/aica/sgc_if.cpp
# core/hw/naomi/naomi.cpp
# core/hw/sh4/dyna/driver.cpp
2023-02-28 20:02:23 +01:00
namtsui
a1472fb190
OpenBSD 7.2 patches ( #953 )
...
* OpenBSD: BSS is immutable so mark it as mutable so that mprotect RWX works
see: mimmutable(1)
bc009f82ea
* OpenBSD does not have mcontext_t
<signal.h> provides `typedef struct sigcontext ucontext_t;'.
take register names from <machine/signal.h>, which provides struct
sigcontext.
see:
1a13d3ae4e
* OpenBSD uses major.minor for shared libs, so properly dlopen libGL.so
* OpenBSD remove redefinition of swap16
* OpenBSD: SDL2 controller detection
Use sdl_open_joystick() to open controllers on startup instead of
SDL_JOYDEVICEADDED event, which never gets detected.
* OpenBSD does not have mcontext_t but linux does
2023-02-28 18:22:45 +01:00
Flyinghead
b86df7217c
sdl: don't add a joystick if its name can't be retrieved
...
Otherwise it crashes later on during SDL_JoystickClose
Fixes MINIDUMP-9K, MINIDUMP-B4
2023-02-27 17:59:48 +01:00
Flyinghead
26815d042a
arcade ouput: send game name before any output
...
Send the game id before any output to inform clients of the current
running game.
2023-02-27 17:46:00 +01:00
Flyinghead
026f21eddf
naomi: report error if rom is invalid instead of crashing
...
Fixes MINIDUMP-CS
2023-02-27 17:43:08 +01:00
Flyinghead
30501aebb1
Race condition when stopping while emu is failing
...
Emulator::stop now throws if an error occurred on the emu thread.
Fixes MINIDUMP-5B
2023-02-26 22:01:32 +01:00
Flyinghead
4014b1b574
lr: libchdr win32 build fix
2023-02-24 22:11:41 +01:00
Flyinghead
8d54382b10
aica: apply RAM mask to sample address (SA)
...
Fixes MINIDUMP-B9
2023-02-24 21:24:56 +01:00
Flyinghead
47dd8241b6
dx11: log error code
2023-02-24 21:14:01 +01:00
Flyinghead
195da2adcc
oboe: device lost detection might be triggered while stopping
...
Fixes MINIDUMP-BD
2023-02-24 21:11:47 +01:00
Flyinghead
2b430eec6f
gui: stop game scanner when exiting
2023-02-24 18:44:45 +01:00
Flyinghead
d51e36998b
bump libchdr to latest. add switch build fix
...
Issue #895
Fixes MINIDUMP-5C, MINIDUMP-4C, MINIDUMP-3G, MINIDUMP-3H, MINIDUMP-8C,
MINIDUMP-AP, MINIDUMP-AN, MINIDUMP-AM, MINIDUMP-AA
2023-02-24 18:44:06 +01:00
Flyinghead
cf9ccea70b
texcache: unprotect vram immediately even if actual Delete is delayed
...
Fixes MINIDUMP-A5, MINIDUMP-AF
2023-02-22 17:57:31 +01:00