Flyinghead
ed0caa119a
Merge remote-tracking branch 'origin/master' into libretro
...
# Conflicts:
# CMakeLists.txt
2021-07-15 18:43:29 +02:00
Flyinghead
f768146d8e
switch: unneeded init functions. needed exit one
2021-07-15 16:50:54 +02:00
Flyinghead
412083d9ea
libretro: blank vmus at unload/reset
2021-07-15 15:43:10 +02:00
Flyinghead
07cdb42ff7
switch: set UI scaling factor depending on docking mode
2021-07-15 14:44:39 +02:00
Flyinghead
1e37e8f333
switch: dsp dynarec fix
2021-07-15 12:24:42 +02:00
Flyinghead
4fa89c4a45
switch: build with miniupnp. set correct window size
...
organize header
remove unneeded switch-specific code
2021-07-15 12:19:11 +02:00
Flyinghead
0d7a2128b6
libretro: fix 32-bit arm build. delete useless #def in pvr2 filter
2021-07-15 12:06:04 +02:00
Flyinghead
ae33c8de18
sdl: increase audio buffer size. libretro: set PIC option
2021-07-15 00:26:00 +02:00
Flyinghead
8dee648d01
arm64 rec: put ngen_FailedToFindBlock at a fixed address
...
transitioning to MMU will fail it this function's address changes
happens if vmem is disabled (switch)
2021-07-14 21:03:02 +02:00
Flyinghead
8e6dc54b16
switch: add .. entry to folder chooser. start at /
2021-07-14 20:55:22 +02:00
Flyinghead
db9c48b085
switch: typo
2021-07-14 17:48:41 +02:00
Flyinghead
c0171f5fd1
switch: open sdl joysticks 0 & 1 at init
2021-07-14 17:22:17 +02:00
Flyinghead
9a5a55d074
switch: use /flycast as config folder
2021-07-14 16:38:12 +02:00
Flyinghead
855836d9aa
switch: arm rec EntryPoints need rx. fix arm & dsp cache flush
2021-07-14 14:57:43 +02:00
Flyinghead
43c00568c6
switch: standalone build
2021-07-14 13:02:57 +02:00
Flyinghead
31be731de0
input: fix atomiswave keyboard bindings
2021-07-14 09:42:13 +02:00
Flyinghead
113ef66e26
libretro: use HAVE_LIBNX in libretro-common
2021-07-13 21:06:03 +02:00
Flyinghead
4d38e69f63
lr switch: enable aica arm and dsp dynarecs. handle rw/rx offset
2021-07-13 20:51:17 +02:00
Flyinghead
8c02345dfd
lr switch: use toolchain ar. really disable lto
2021-07-13 19:18:36 +02:00
Flyinghead
a2efde1103
libretro: more switch fixes
...
combine all static libraries into one
save/restore gl state in !threaded mode
patch libchdr
build fixes
2021-07-13 18:51:40 +02:00
Flyinghead
eb81583d9f
sh4 dyna: support for !vmem
2021-07-13 17:09:26 +02:00
Flyinghead
44213bf830
lr: fix res change for rotated games. display version. vmem: simplify
2021-07-13 13:45:01 +02:00
Flyinghead
63a3f02368
libretro: better switch support
2021-07-12 20:14:21 +02:00
Flyinghead
994e6826b4
libretro: option changes (resolution, widescreen, rotation)
...
Use RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO or
RETRO_ENVIRONMENT_SET_GEOMETRY to report resolution/aspect ratio
changes.
Handle rotation without restarting.
2021-07-12 09:57:58 +02:00
Flyinghead
97991fd8fc
gl: delete libretro vmu and crosshair textures when terminating
2021-07-11 20:43:04 +02:00
Flyinghead
1fdda98d8d
libretro: return max savestate size. unprotect ram and vram on reset
...
fixes random crash when saving state
2021-07-11 17:42:30 +02:00
Flyinghead
a73ca94124
savestate: push vmu lcd image when loading
2021-07-11 12:37:21 +02:00
Flyinghead
75af07331a
savestate: save gdrom read buffer. other fixes
...
Issue #294
2021-07-10 19:16:19 +02:00
Flyinghead
57874a9bcb
libretro: savestate compatibility. B1/D1 vmus now visible
2021-07-10 17:39:16 +02:00
Flyinghead
81546fe727
libretro: handle ThreadedRendering transition. Fix hang in !threaded
2021-07-09 16:28:28 +02:00
Flyinghead
eceb5ba982
naomi: keyboard needs player number
2021-07-09 14:34:11 +02:00
Flyinghead
345dab9633
libretro: fix nvidia palette issue. request 3.2 to get a core gl ctx
2021-07-09 13:10:30 +02:00
Flyinghead
5c952021b7
libretro: vmu and crosshair display. lightgun fixes
2021-07-08 20:09:09 +02:00
Flyinghead
b66e6560ca
libretro: vulkan support
2021-07-08 12:47:00 +02:00
Flyinghead
673c2988d6
libretro: backport libnx support. Fix log source paths
2021-07-07 19:01:37 +02:00
Flyinghead
042f2e0224
custom textures: saturate colors when dumping RGBA4444 and RGBA5551
2021-07-07 17:19:13 +02:00
Flyinghead
b300bb9f7a
libretro: non-threaded rendering
2021-07-07 13:12:16 +02:00
Flyinghead
205f2690d6
gl4: delete fog & palette textures when terminating
...
fixes fullscreen toggle screen corruption
2021-07-07 10:54:10 +02:00
scribam
aeea301ee3
Minor include header changes
2021-07-07 10:37:11 +02:00
Flyinghead
8e6bbed74f
libretro: aw coin fix. screen rotation. disable loading notifications
2021-07-07 09:48:10 +02:00
flyinghead
ef506d49aa
libretro: pvr2 postprocessing filter
2021-07-06 21:37:47 +02:00
flyinghead
c205a888a9
options: anisotropic filtering, oit pixel buffer size, fast gdrom load
2021-07-06 16:19:12 +02:00
flyinghead
a3b66aec1f
libretro: win32 support. build fix.
2021-07-06 13:22:54 +02:00
Flyinghead
7dbd79750c
WIP libretro core update
2021-07-05 19:44:08 +02:00
Flyinghead
b40328e621
input: don't change mapper if file not found. sdl: fix default bindings
2021-07-05 09:59:46 +02:00
flyinghead
7cd832e914
input: use default mapping if no mapping file is found
2021-07-04 23:27:29 +02:00
flyinghead
c5ce475359
Merge remote-tracking branch 'origin/master' into fh/directx
...
# Conflicts:
# core/input/gamepad_device.cpp
2021-07-04 17:53:49 +02:00
flyinghead
894a0540b9
sdl: convert keyboard mapping from keycodes to scancode on first load
2021-07-04 17:45:45 +02:00
flyinghead
967f4570ed
rawinput: simplify USB device names
2021-07-04 15:51:33 +02:00
Flyinghead
14360beaf7
gdrom: reset registers and state on reset
...
Issue #281
2021-06-27 12:53:54 +02:00
Enrique Santos
46e3258629
Controller Mapping: System Profiles & Unmap Button ( #269 )
...
* add unmap button
* separate controller profiles for dc & arcade games
* loads current system mapping on menu exit
* simplify, use default filename for dc controls
* create blank mapping file for sdl controllers if not found
2021-06-27 12:49:47 +02:00
Flyinghead
b3ad0a62c1
gl: fix multiple rendering with GLES 2
...
fixes split-screen multiplayer for SW1 Racer, Q3, Re-volt
2021-06-19 10:48:32 +02:00
scribam
a5edd9c7ff
deps: remove crypto folder (unused)
2021-06-19 10:46:22 +02:00
Flyinghead
7f49accc22
Merge remote-tracking branch 'origin/master' into fh/directx
2021-06-07 20:53:31 +02:00
Flyinghead
b8c2a695b8
ui: allow drag scrolling anywhere. change some ui elements
...
allow scrolling by dragging (almost) anywhere
move physical devices before dreamcast ones
hide insets when displaying full screen window
reduce scroll bar size on android
fix controller mapping column sizes
2021-06-07 12:18:05 +02:00
Flyinghead
c73bbc85bd
savestate: rzip size must be 64-bit on all platforms
2021-06-06 11:18:42 +02:00
scribam
d6545b253b
Misc cleanup
2021-06-06 11:15:06 +02:00
Flyinghead
293761bdf5
gui: separate auto-load and auto-save options. Fix tool tips on android
2021-06-04 11:11:23 +02:00
Flyinghead
58974c9305
savestate slots
2021-06-03 13:50:40 +02:00
keita yoshimoto
cddb6609f1
Multiple save states ( #248 )
2021-06-03 13:22:40 +02:00
Flyinghead
c3bc5cfc3b
vk oit: use a 2nd depth attachment for subpass 1
...
subpass 1 needs writable depth buffer (see
9f60c5e854
)
2021-05-30 18:20:04 +02:00
scribam
57ae9022dd
Update Windows resource and version.h.in files
2021-05-28 14:56:04 +02:00
Flyinghead
d6e15544bc
maple: better vmu I/O error handling
2021-05-28 10:35:44 +02:00
flyinghead
7ed68952ba
Merge remote-tracking branch 'origin/master' into fh/directx
...
# Conflicts:
# core/deps/patches/SDL.patch
# core/hw/maple/maple_devs.cpp
# core/rend/gl4/gles.cpp
# core/rend/gles/gles.cpp
# core/rend/gui.cpp
# core/rend/gui.h
# shell/apple/emulator-osx/reicast-osx.xcodeproj/project.pbxproj
2021-05-26 22:38:48 +02:00
flyinghead
4696733eb4
dx9: linear filtering for fog texture. swap only when frame rendered
2021-05-26 21:40:43 +02:00
Flyinghead
86d014c3e4
gl: crash when rtt copy to vram due to wrong pbo size
...
fixes Baldr Force crash
2021-05-26 09:53:29 +02:00
Flyinghead
9f60c5e854
rend: PT alpha must be set before shading
...
Fixes Langrisser Millennium intro fmv and title/main screen. Issue #249
vk oit: use depth buffer like gl oit
2021-05-25 14:15:37 +02:00
vkedwardli
2b62f8c607
Fix macOS cmake & Xcode project ( #255 )
...
* Update zlib reference for Xcode project
* Add CoreHaptics.framework for Xcode project
* Capitalize app bundle
* Use local FindSDL2.cmake script for macOS
* Use `macOS` instead of the old `OSX`
2021-05-25 10:11:58 +02:00
scribam
fa217e4cd0
ioctl: replace SCSIDEFS.h with Windows headers
2021-05-25 10:10:50 +02:00
flyinghead
6d32ad2ac8
Use github actions for all ci jobs. Only build with cmake ( #251 )
...
* osx: bundle id change com.reicast -> com.flyinghead
* use gh actions for all ci jobs
* cmake: strip executable
2021-05-24 11:03:15 +02:00
Flyinghead
54c492cac6
Use libchdr as git submodule. bump to latest version
2021-05-22 17:52:17 +02:00
Flyinghead
628b7b7dd9
reios: fix wince cdi loading. implement bios misc 0 call.
2021-05-22 17:26:01 +02:00
flyinghead
c44493cd8a
Merge pull request #246 from scribam/xbyak
...
deps: update xbyak
2021-05-22 15:11:32 +02:00
scribam
20b838b968
deps: update xbyak
2021-05-22 10:45:50 +02:00
scribam
741b21f508
cmake: fix sdl compilation with Ninja + MSVC
2021-05-21 21:46:11 +02:00
Flyinghead
c68f3bcc42
network: hide miniupnpc behind a #def. use static buffer for udp data
2021-05-21 12:51:29 +02:00
Flyinghead
4cced8ffa0
android: add content path ui too wide when inset present
2021-05-20 10:45:12 +02:00
Flyinghead
8644f7777b
gdrom: remove PatchRegion support. minor log changes
2021-05-20 10:21:47 +02:00
flyinghead
5f5d31730c
sdl: hide mouse in fullscreen. fix & refactor mouse devices
...
support rawinput mouse wheel
simplify mapping load
2021-05-19 18:13:52 +02:00
Flyinghead
9d4711a95d
mouse fix
...
fixes Silent Scope, Dreamkey, etc.
2021-05-19 11:32:38 +02:00
Flyinghead
3a1ae0db00
mmu: fix macos crash. only flush user mem in address lut
...
force rtt2vram for JSR (custom graffiti)
clean up vmem32 remains
missing host_context.h change
gh action: build sdl from source on macos
2021-05-18 12:53:14 +02:00
Flyinghead
373dffc65a
wince: ditch vmem32. use address LUT in dynarec. finer grained flush
2021-05-17 11:59:34 +02:00
Flyinghead
00a74d81c2
aica arm dynarec: conditional LDR with write back issue
2021-05-16 20:21:09 +02:00
Flyinghead
da40297810
fix msvc build
2021-05-16 20:18:49 +02:00
Flyinghead
0966a092af
gdrom: disable bios region patching
...
Issue #239
https://github.com/libretro/flycast/issues/888
2021-05-16 20:17:54 +02:00
Flyinghead
025b447a9c
arm32: replace old arm emitter with vixl
2021-05-15 11:41:00 +02:00
Flyinghead
92abf760de
unneeded address/value masking. clean up
2021-05-14 21:47:47 +02:00
Flyinghead
2e0c15bae7
sdl: fix audio recording
2021-05-14 19:04:54 +02:00
Flyinghead
1464c02903
mmu: add address cache to mem slow path. better fastmmu hashtable.
...
mmu: add address cache to Read/WriteMemNoEx
fastmmu: ignore 1k pages. optimize hashtable
get rid of NO_MMU
2021-05-14 19:03:57 +02:00
Flyinghead
d7ec3bec1d
android: upgrade ifaddrs.c
2021-05-11 16:49:18 +02:00
Flyinghead
5769d7e64f
vk: typo in previous commit height -> width
2021-05-11 16:47:54 +02:00
Flyinghead
0df6a686d9
oboe: limit min buffer size. keep default for medium/high latency
2021-05-11 16:47:05 +02:00
Flyinghead
408c65fcbf
gl4: pack/unpack pixel colors. pack poly params. share GLSL with vk
2021-05-11 10:38:17 +02:00
Flyinghead
b27fa63aea
stack overflow with xdp browser on android
2021-05-10 23:28:58 +02:00
Flyinghead
fb38b224f4
rend: get rid of RenderToTextureUpscale option. Use RenderResolution
2021-05-10 20:07:23 +02:00
Flyinghead
a4019dd205
new VSync option
2021-05-10 18:02:06 +02:00
Flyinghead
e07977eea9
mac,x11: propagate win/sdl mouse/keyboard changes
2021-05-10 13:48:12 +02:00
Flyinghead
d7fd6658f6
egl: request 8 bits RGB channels
2021-05-05 13:31:52 +02:00
flyinghead
71fb024061
rawinput: proper conversion of abs coordinates
...
Issue #138
get rid of libPvr_GetRenderTarget() -> getNativeHwnd()
2021-05-04 12:03:09 +02:00
Flyinghead
affc9f262c
gl: update palette on context [re]init
...
backport from fh/directx
fixes black textures in SoulCalibur when switching back to app (android)
2021-05-03 09:57:45 +02:00
Flyinghead
f2b74de9dd
Revert 1ddb82f334
...
Issue #209
2021-05-02 15:14:26 +02:00
Flyinghead
d20fc971c9
android: display cutouts support. render last frame when editing vjoy
...
render in display cutouts
gl/vk: render last frame when editing virtual gamepad
gl: Fix background handling
gui: reset vmus when stopping game
2021-05-02 11:31:44 +02:00
Flyinghead
1ddb82f334
pvr: deadlock in QueueRender/dc_stop
2021-05-02 11:23:51 +02:00
Flyinghead
5dd15e2942
android: oboe driver error handling. Set buffer size to burst size
...
oboe: handle lost of audio and recording streams and attempt reopen.
When using aaudio, set the oboe buffer size to the burst size.
gui: really ignore AutomaticLatency for oboe driver
Issue #182
2021-05-01 12:19:04 +02:00
Flyinghead
6dfa9f7786
android: oboe audio driver. get rid of build variants
...
Issue #182
2021-04-30 19:57:11 +02:00
Flyinghead
acd8620139
android: add zh_HK locale
2021-04-30 18:26:35 +02:00
flyinghead
54cfc6e09b
build fix for non-windows
2021-04-29 19:15:34 +02:00
Flyinghead
150cfa29e7
Merge remote-tracking branch 'origin/master' into fh/directx
2021-04-29 19:06:38 +02:00
flyinghead
b90cdf9588
RawInput driver. Multiple keyboards support
...
Merge Keyboard and KbGamepad
Always use system mouse for UI
Issue #138
Fix DX9 when not using SDL
2021-04-29 18:58:04 +02:00
flyinghead
6316479930
get rid of unneeded pixel unpacker and use better name
2021-04-29 18:38:58 +02:00
Flyinghead
92ccd6eb26
android: load Asian glyphs depending on locale
...
Issue #225
2021-04-22 11:12:51 +02:00
Flyinghead
805dac3039
Resize renderer after [re]init
...
Fixes crash on Android when app is brought back to the foreground
Issue #228
2021-04-22 10:59:40 +02:00
Edward Li
2bd77ba9c4
missing a space
2021-04-22 02:21:04 +08:00
Edward Li
ba955f6659
Re-enable the content path warning dialog
2021-04-22 02:17:18 +08:00
Edward Li
01898d5f41
Fix scanner cannot be stopped
2021-04-22 02:16:18 +08:00
Flyinghead
3dd3595a79
disable emulator Exit on android
...
Issue #222
2021-04-20 16:32:49 +02:00
Flyinghead
c0b5721920
Super widescreen option
...
Issue #209
2021-04-20 16:06:03 +02:00
Flyinghead
44fd67ffd2
In command line mode, exit the emulator when pressing Exit
...
Issue #222
2021-04-20 15:57:30 +02:00
Flyinghead
3474901e58
wsi: swap immediately when fast forwarding
2021-04-20 10:56:49 +02:00
Flyinghead
d55a26c242
flatpak: better screenshots. Indicate where to put BIOS files.
2021-04-19 19:12:00 +02:00
flyinghead
8909368033
dsound: dedicated audio thread. configurable latency
...
Use dedicated thread to fill the audio buffer, fill with silence when
underrun, wait for notification events instead of busy loop.
Configurable ring buffer size / latency.
2021-04-19 11:13:27 +02:00
flyinghead
4ffb9e8089
sdl audio: potential race condition with event. include in win32 build
2021-04-19 11:09:16 +02:00
flyinghead
098be9c69e
sdl: swap at vsync interval for open gl
2021-04-19 09:51:13 +02:00
flyinghead
f9603dc11a
vk: use texture pointers instead of u64
2021-04-17 19:04:00 +02:00
flyinghead
5359e9a09d
allow gpu-handled palette textures to be replaced by custom version
...
Issue #219
Fix incorrect texture size calculation for VQ textures.
Reorder BaseTextureCacheData fields to have hottest on top
2021-04-17 18:40:58 +02:00
flyinghead
28d2c6db73
dx9: rotate 90deg
2021-04-16 21:58:37 +02:00
flyinghead
abc8b18b78
dx9: mipmaps. load/dump textures. vmu/crosshair display.
...
upload all texture mipmaps to gpu
dump textures. load custom textures
vmu and lightgun xhair display
fix dx9 half-pixel offset
fix 565_32 unpacker bug
2021-04-16 18:30:47 +02:00
flyinghead
c889bfa6d4
dx9: copy to vram. clipping. fix depth/stencil size. better reset
...
Coordinate device reset with dxcontext. Keep compiled shaders.
Don't use automatic depth/stencil on backbuffer. Manually handle it.
Implement scissoring/clipping
multipass translucent depth
Render-to-texture copy to vram
2021-04-15 15:17:32 +02:00
flyinghead
b549c56b23
build fix. default Delay Frame Swapping to true
2021-04-13 11:20:11 +02:00
flyinghead
f107d380b9
WIP directx9 renderer
2021-04-12 22:49:04 +02:00
Flyinghead
4a8ce39bfd
vk: use a single command buffer for all texture updates
2021-04-08 10:38:26 +02:00
Flyinghead
499d06ea83
bba: crash when loading a savestate with bba disabled
2021-04-08 10:33:47 +02:00
Flyinghead
24d172bd51
gl: use async PBO to copy texture back to vram
2021-04-08 10:33:14 +02:00
Flyinghead
72968290bf
cheats: support for .CHT cheat files
...
Issue #167
gui: no need to save background in opengl, use RenderLastFrame instead
disable cheats when online
2021-04-06 11:41:41 +02:00
flyinghead
2fa3cfea8d
Merge pull request #216 from scribam/windows-icon
...
windows: add missing icon in top-left corner of the windows when sdl is not used
2021-04-05 17:06:07 +02:00
scribam
90de080eba
windows: add missing icon in top-left corner of the windows when sdl is not used
2021-04-05 11:01:38 +02:00
scribam
e6a49ca4ec
deps: use official SDL url for submodule
2021-04-04 15:38:37 +02:00
Flyinghead
b3de6a166d
area 7 access to sh4 mm registers only through mmu translation
...
on-chip ram area isn't translated in both user and supervisor modes
vmem: return 0 for non-mapped region reads
Fixes dolphin blue crash/freeze. Issue #62
Fixes Resident Evil - Code Veronica X (Chris) floor 1F crash
2021-04-01 13:30:37 +02:00
Flyinghead
4d815570d0
sh4: define SCI module registers
2021-03-31 19:01:31 +02:00
Flyinghead
3ff457f4e8
always log notice/warn/error messages
2021-03-31 18:47:18 +02:00
Flyinghead
6af509159e
optimize area0 mem handlers
...
use flash_size for both sram (aw, naomi) and flash (dc)
bios and flash not mirrored to 02000000
2021-03-31 18:45:46 +02:00
flyinghead
a8929170f3
up sh4 context pad to 64k to keep windows happy
2021-03-29 21:12:43 +02:00
Flyinghead
a5eecf59b3
x64 rec: wrong arg0 reg for windows. need to handle 512mb addr space
2021-03-29 17:30:56 +02:00
Flyinghead
a7d8d31566
double-free when opening corrupted chd. Better error message
...
Avoid vk/gl/vk quick switching
2021-03-29 16:26:18 +02:00
Flyinghead
904bed862e
arm32: store queue dynarec optim. ditch Unstable Optimizations
...
shrink Sh4Context.pad size except on arm32
reset sh4 before mem to unlock ram
2021-03-29 14:26:55 +02:00
Flyinghead
65290a70f3
x64/x86: store queue dynarec optimization
2021-03-29 14:26:55 +02:00
Flyinghead
e2f309b5cc
arm64: store queue write dynarec optimization
2021-03-29 14:26:55 +02:00
Flyinghead
ed25d45adb
arm32 rec: wrong operand size for immediate mem write
...
Issue #208
2021-03-29 14:20:42 +02:00
Flyinghead
f1b4b78e4c
savestate: edge case leading to i/o error on load
2021-03-28 20:09:59 +02:00
Flyinghead
9e9aa5b4d9
gl: proper vao use. define palette uniforms only when needed
2021-03-28 20:08:02 +02:00