Skip to content

Commit 9728e59

Browse files
committed
Merge remote-tracking branch 'libretro/master' into warmenhoven/dev/macOS-Core-Audio-Mic-Fix
2 parents 3344af0 + 6775559 commit 9728e59

File tree

684 files changed

+113078
-33049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

684 files changed

+113078
-33049
lines changed

.dir-locals.el

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
;;; Directory Local Variables
2+
;;; See Info node `(emacs) Directory Variables' for more information.
3+
4+
(
5+
(c-mode . ((c-basic-offset . 3)
6+
(c-file-offsets . ((arglist-intro . ++)
7+
(arglist-cont-nonempty . ++)))
8+
(eval . (setq-local c-cleanup-list
9+
(cl-set-difference c-cleanup-list
10+
'(brace-else-brace
11+
brace-elseif-brace))))))
12+
(objc-mode . ((c-basic-offset . 3)))
13+
)

.github/workflows/webOS.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,23 @@ jobs:
5151
with:
5252
repository: "openlgtv/buildroot-nc4"
5353
latest: true
54-
fileName: "arm-webos-linux-gnueabi_sdk-buildroot.tar.gz"
54+
fileName: "arm-webos-linux-gnueabi_sdk-buildroot-x86_64.tar.gz"
5555
out-file-path: "/tmp"
5656

5757
- name: Extract webOS NDK
5858
shell: bash
5959
working-directory: /tmp
6060
run: |
61-
tar xzf arm-webos-linux-gnueabi_sdk-buildroot.tar.gz
61+
tar xzf arm-webos-linux-gnueabi_sdk-buildroot-x86_64.tar.gz
6262
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
6363
6464
- name: Compile RA
6565
shell: bash
6666
run: |
6767
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
6868
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
69+
env:
70+
DEBUG: ${{ github.event_name == 'release' && '0' || '1' }}
6971

7072
- name: Get short SHA
7173
id: slug

.gitignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ wiiu/wut/elf2rpl/elf2rpl
148148
/pkg/android/phoenix/bin/
149149
/pkg/android/phoenix/gen/
150150
/pkg/android/phoenix/local.properties
151-
/pkg/android/phoenix/gradle.properties
152151
/pkg/android/phoenix/.gradle
153152
/pkg/android/phoenix/.externalNativeBuild
154153
/pkg/android/phoenix/build
@@ -264,3 +263,18 @@ param.sfo
264263

265264
# Clazy
266265
*.clazy.yaml
266+
267+
# PSL1GHT
268+
*.SELF
269+
EBOOT.BIN
270+
pkg/psl1ght/*.pkg
271+
modern_alpha_blend_fpo.h
272+
modern_alpha_blend_vpo.h
273+
modern_opaque_fpo.h
274+
modern_opaque_vpo.h
275+
gfx/drivers/rsx_shaders/modern_alpha_blend.fpo
276+
gfx/drivers/rsx_shaders/modern_alpha_blend.vpo
277+
gfx/drivers/rsx_shaders/modern_opaque.fpo
278+
gfx/drivers/rsx_shaders/modern_opaque.vpo
279+
pkg/psl1ght/pkg/USRDIR/shaders_cg/
280+
!pkg/psl1ght/pkg/USRDIR/system/

CHANGES.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,69 @@
11
# Future
2+
- APPLE: Include sameduck, gearcoleco, geargrafx cores in App Store builds
3+
- APPLE: Include reminiscence, virtualjaguar, vitaquake2 cores in App Store builds
4+
- APPLE: Bundle identifier added to Information menu
5+
- APPLE: Option to control the usage of Metal argument buffers
6+
- APPLE: Don't force fullscreen, allow multitasking on iPad
7+
- AUDIO: Microphone CoreAudio driver for iOS and macOS
8+
- CAMERA: Use ffmpeg libavfilter virtual input device as default
9+
- CHEEVOS: Show additional message for unsupported achievements
10+
- CLOUDSYNC: Enable icloud_drive cloud sync backend on MacOS / iOS
11+
- CLOUDSYNC: Don't always trust the server hash
12+
- CLOUDSYNC: Enable WebDAV support for Android
13+
- CLOUDSYNC: Speed up cloudsync on Apple
14+
- DATABASE: Improve multidisk game scanning
215
- EMSCRIPTEN: Support suspend screensaver
316
- EMSCRIPTEN/RWEBCAM: Fix camera driver
417
- EMSCRIPTEN/RWEBINPUT: Add accelerometer/gyroscope support
518
- EMSCRIPTEN/RWEBPAD: Add rumble support
619
- EMSCRIPTEN/RWEBAUDIO: Rewrite driver, set as default audio driver
20+
- INPUT: Default key and mouse binds for lightgun Start and Select buttons
21+
- INPUT: Turbo mode corrections
22+
- INPUT: Turbo fire settings are now saved to remaps, not to overrides
23+
- INPUT: Fix menu usage when OK/Cancel has mouse binds
24+
- INPUT: Ignore menu mouse startup position before moving
25+
- INPUT: Fix heavy slowdown when using Bluetooth XInput controllers with rumble
26+
- INPUT/UDEV: Fix lost terminal settings after restart from menu
27+
- INTL: Add Irish Gaelic to selectable languages
28+
- IOS: Fix crash on iOS9 when fetching refresh rate
29+
- LINUX: Add full complement of key/value pairs to desktop entry
30+
- MENU: Common Thumbnail Background option for all menu drivers
31+
- MENU: Move core options reset from Settings/Configuration to Main Menu / Configuration Files
32+
- MENU: Use right analog stick for thumbnail cycling in playlists
33+
- MENU: Option to always suggest cores, even when a core is already loaded
34+
- MENU: Option to show Favorites before History
35+
- MENU: Media history playlists are now visible in playlist manager
36+
- MENU: Import Content visibility defaults reverted
37+
- MENU: Update CRTSwitchRes menu options for future use
38+
- MENU: Debug builds are indicated in Information menu
39+
- MENU: Save As / Save Main options for configuration file
40+
- MENU: Unwanted input is prevented when menu is triggered by toggle combo
41+
- MENU: 32-bit values in cheats and rumble are not presented as huge lists
42+
- MENU: Less important widgets are now sized like task notifications
43+
- MENU/XMB: Select button toggles thumbnails in playlists
44+
- MENU/XMB,OZONE: Fix content icons when playlist tabs are hidden
45+
- MENU/OZONE: Horizontal padding factor option
46+
- MENU/OZONE: Custom font selection and scaling factor
47+
- NETWORK: Fixes for nmcli wifi driver
48+
- NETWORK: Network command interface enabled for Android, iOS, TVOS
49+
- OTHER: ZStandard support and libchdr update for support of chd files converted with createdvd option
50+
- OVERLAY: Speed limit on touch pointer tracking
51+
- PLAYLIST: Built-in playlists are now stored under playlists/builtin
52+
- PLAYLIST: Fix subsystem information in playlists
53+
- REPLAY: Bugs fixed regarding rewind
54+
- REPLAY: Same timeline check and future state check for replays vs. savestates
55+
- SAVESTATES: Savestate thumbnails are default enabled for x86_64 builds
56+
- VIDEO: Fix auto swap interval setup
57+
- VIDEO: Improvements for integer scale half scaling
58+
- VIDEO: Frame delay improvements for the automatic setting
59+
- VIDEO/D3D11/D3D12: snappy extra vsync presentation mode
60+
- VIDEO/SHADER: Shader hold function, useful for some lightguns and shader comparison
61+
- VIDEO/SWITCHRES: Horizontal and vertical geometry adjustment options added
62+
- VIDEO/SWITCHRES: Game overrides
63+
- VIDEO/WAYLAND: Support for xdg-toplevel-icon-v1
64+
- WEBOS: Various fixes and tunings
65+
- WEBOS: Disable core dumps
66+
- WEBOS: Debug builds enabled
767

868
# 1.21.0
969
- 3DS: Fix unique IDs for newer cores

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ endif
112112

113113
ifneq ($(CXX_BUILD), 1)
114114
ifneq ($(C89_BUILD),)
115-
CFLAGS += -std=c89 -ansi -pedantic -Werror=pedantic -Wno-long-long -Werror=declaration-after-statement
115+
CFLAGS += -std=c89 -ansi -pedantic -Werror=pedantic -Wno-long-long -Werror=declaration-after-statement -Wno-variadic-macros
116116
else ifeq ($(HAVE_C99), 1)
117117
CFLAGS += $(C99_CFLAGS)
118118
endif

Makefile.common

Lines changed: 56 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,6 @@ ifeq ($(HAVE_ALSA), 1)
860860
OBJ += audio/drivers/alsa.o \
861861
audio/common/alsa.o
862862

863-
ifeq ($(HAVE_MICROPHONE), 1)
864-
OBJ += audio/drivers_microphone/alsa.o
865-
endif
866-
867863
ifneq ($(HAVE_HAKCHI), 1)
868864
ifneq ($(HAVE_SEGAM), 1)
869865
ifneq ($(DINGUX), 1)
@@ -874,12 +870,7 @@ ifeq ($(HAVE_ALSA), 1)
874870

875871
ifneq ($(MIYOO), 1)
876872
ifeq ($(HAVE_THREADS), 1)
877-
OBJ += audio/drivers/alsathread.o \
878-
audio/common/alsathread.o
879-
880-
ifeq ($(HAVE_MICROPHONE), 1)
881-
OBJ += audio/drivers_microphone/alsathread.o
882-
endif
873+
OBJ += audio/drivers/alsathread.o
883874
endif
884875
endif
885876

@@ -927,10 +918,6 @@ ifeq ($(HAVE_PIPEWIRE), 1)
927918
OBJ += audio/drivers/pipewire.o \
928919
audio/common/pipewire.o
929920

930-
ifeq ($(HAVE_MICROPHONE), 1)
931-
OBJ += audio/drivers_microphone/pipewire.o
932-
endif
933-
934921
ifeq ($(HAVE_PIPEWIRE_STABLE), 1)
935922
OBJ += camera/drivers/pipewire.o
936923
endif
@@ -958,14 +945,9 @@ endif
958945

959946
ifeq ($(HAVE_WASAPI), 1)
960947
HAVE_MMDEVAPI = 1
961-
OBJ += audio/drivers/wasapi.o \
962-
audio/common/wasapi.o
948+
OBJ += audio/drivers/wasapi.o
963949
DEFINES += -DHAVE_WASAPI
964950
LIBS += -lole32 -lksuser
965-
966-
ifeq ($(HAVE_MICROPHONE), 1)
967-
OBJ += audio/drivers_microphone/wasapi.o
968-
endif
969951
endif
970952

971953
ifeq ($(HAVE_XAUDIO), 1)
@@ -1637,14 +1619,9 @@ endif
16371619
ifeq ($(HAVE_SDL2), 1)
16381620
HAVE_SDL_COMMON = 1
16391621
OBJ += gfx/drivers/sdl2_gfx.o \
1640-
gfx/common/sdl2_common.o
1622+
gfx/common/sdl2_common.o
16411623
DEF_FLAGS += $(SDL2_CFLAGS)
16421624
LIBS += $(SDL2_LIBS)
1643-
1644-
ifeq ($(HAVE_MICROPHONE), 1)
1645-
OBJ += audio/drivers_microphone/sdl_microphone.o
1646-
# Microphones are not supported by SDL 1.x
1647-
endif
16481625
else ifeq ($(HAVE_SDL), 1)
16491626
HAVE_SDL_COMMON = 1
16501627
OBJ += gfx/drivers/sdl_gfx.o
@@ -1710,11 +1687,15 @@ ifeq ($(HAVE_VULKAN), 1)
17101687
endif
17111688

17121689
ifeq ($(HAVE_OPENGL_CORE), 1)
1713-
OBJ += gfx/drivers/gl3.o \
1714-
gfx/drivers_shader/shader_gl3.o
1690+
OBJ += gfx/drivers/gl3.o
17151691

17161692
DEFINES += -DHAVE_OPENGL_CORE
1717-
NEED_CXX_LINKER = 1
1693+
1694+
ifeq ($(HAVE_SLANG), 1)
1695+
OBJ += gfx/drivers_shader/shader_gl3.o
1696+
1697+
NEED_CXX_LINKER = 1
1698+
endif
17181699
endif
17191700

17201701
ifeq ($(HAVE_OMAP), 1)
@@ -1776,22 +1757,19 @@ endif
17761757

17771758
ifeq ($(HAVE_D3D10), 1)
17781759
HAVE_D3D_COMMON = 1
1779-
OBJ += gfx/drivers/d3d10.o \
1780-
gfx/common/d3d10_common.o
1760+
OBJ += gfx/drivers/d3d10.o
17811761
DEFINES += -DHAVE_D3D10
17821762
endif
17831763

17841764
ifeq ($(HAVE_D3D11), 1)
17851765
HAVE_D3D_COMMON = 1
1786-
OBJ += gfx/drivers/d3d11.o \
1787-
gfx/common/d3d11_common.o
1766+
OBJ += gfx/drivers/d3d11.o
17881767
DEFINES += -DHAVE_D3D11
17891768
endif
17901769

17911770
ifeq ($(HAVE_D3D12), 1)
17921771
HAVE_D3D_COMMON = 1
1793-
OBJ += gfx/drivers/d3d12.o \
1794-
gfx/common/d3d12_common.o
1772+
OBJ += gfx/drivers/d3d12.o
17951773
DEFINES += -DHAVE_D3D12
17961774
endif
17971775

@@ -1971,6 +1949,34 @@ ifeq ($(HAVE_7ZIP),1)
19711949
$(7ZOBJ)
19721950
endif
19731951

1952+
ifeq ($(HAVE_ZSTD),1)
1953+
INCLUDE_DIRS += -I$(DEPS_DIR)/zstd/lib
1954+
DEFINES += -DHAVE_ZSTD -DZSTD_DISABLE_ASM
1955+
ZSOBJ = $(DEPS_DIR)/zstd/lib/common/entropy_common.o \
1956+
$(DEPS_DIR)/zstd/lib/common/error_private.o \
1957+
$(DEPS_DIR)/zstd/lib/common/fse_decompress.o \
1958+
$(DEPS_DIR)/zstd/lib/common/zstd_common.o \
1959+
$(DEPS_DIR)/zstd/lib/common/xxhash.o \
1960+
$(DEPS_DIR)/zstd/lib/compress/fse_compress.o \
1961+
$(DEPS_DIR)/zstd/lib/compress/hist.o \
1962+
$(DEPS_DIR)/zstd/lib/compress/huf_compress.o \
1963+
$(DEPS_DIR)/zstd/lib/compress/zstd_compress.o \
1964+
$(DEPS_DIR)/zstd/lib/compress/zstd_compress_literals.o \
1965+
$(DEPS_DIR)/zstd/lib/compress/zstd_compress_sequences.o \
1966+
$(DEPS_DIR)/zstd/lib/compress/zstd_compress_superblock.o \
1967+
$(DEPS_DIR)/zstd/lib/compress/zstd_double_fast.o \
1968+
$(DEPS_DIR)/zstd/lib/compress/zstd_fast.o \
1969+
$(DEPS_DIR)/zstd/lib/compress/zstd_lazy.o \
1970+
$(DEPS_DIR)/zstd/lib/compress/zstd_ldm.o \
1971+
$(DEPS_DIR)/zstd/lib/compress/zstd_opt.o \
1972+
$(DEPS_DIR)/zstd/lib/decompress/huf_decompress.o \
1973+
$(DEPS_DIR)/zstd/lib/decompress/zstd_ddict.o \
1974+
$(DEPS_DIR)/zstd/lib/decompress/zstd_decompress.o \
1975+
$(DEPS_DIR)/zstd/lib/decompress/zstd_decompress_block.o
1976+
1977+
OBJ += $(ZSOBJ)
1978+
endif
1979+
19741980
ifeq ($(HAVE_IBXM), 1)
19751981
DEFINES += -DHAVE_IBXM
19761982
OBJ += $(DEPS_DIR)/ibxm/ibxm.o
@@ -2123,6 +2129,13 @@ ifeq ($(HAVE_ZLIB_COMMON), 1)
21232129
DEFINES += -Dcdlz_codec_init=retroarch_internal_cdlz_codec_init
21242130
DEFINES += -Dcdlz_codec_free=retroarch_internal_cdlz_codec_free
21252131
DEFINES += -Dcdlz_codec_decompress=retroarch_internal_cdlz_codec_decompress
2132+
2133+
DEFINES += -Dzstd_codec_init=retroarch_internal_zstd_codec_init
2134+
DEFINES += -Dzstd_codec_free=retroarch_internal_zstd_codec_free
2135+
DEFINES += -Dzstd_codec_decompress=retroarch_internal_zstd_codec_decompress
2136+
DEFINES += -Dcdzs_codec_init=retroarch_internal_cdzs_codec_init
2137+
DEFINES += -Dcdzs_codec_free=retroarch_internal_cdzs_codec_free
2138+
DEFINES += -Dcdzs_codec_decompress=retroarch_internal_cdzs_codec_decompress
21262139
endif
21272140
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_bitstream.o \
21282141
$(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_cdrom.o \
@@ -2139,6 +2152,10 @@ ifeq ($(HAVE_ZLIB_COMMON), 1)
21392152
ifeq ($(HAVE_7ZIP), 1)
21402153
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_lzma.o
21412154
endif
2155+
2156+
ifeq ($(HAVE_ZSTD), 1)
2157+
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/libchdr_zstd.o
2158+
endif
21422159
endif
21432160
endif
21442161

@@ -2372,6 +2389,10 @@ ifeq ($(HAVE_NETWORKING), 1)
23722389
deps/rcheevos/src/rhash/aes.o \
23732390
deps/rcheevos/src/rhash/cdreader.o \
23742391
deps/rcheevos/src/rhash/hash.o \
2392+
deps/rcheevos/src/rhash/hash_disc.o \
2393+
deps/rcheevos/src/rhash/hash_encrypted.o \
2394+
deps/rcheevos/src/rhash/hash_rom.o \
2395+
deps/rcheevos/src/rhash/hash_zip.o \
23752396
deps/rcheevos/src/rapi/rc_api_common.o \
23762397
deps/rcheevos/src/rapi/rc_api_info.o \
23772398
deps/rcheevos/src/rapi/rc_api_runtime.o \

Makefile.emscripten

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ endif
260260

261261
include Makefile.common
262262

263-
CFLAGS += $(DEF_FLAGS) -Ideps -Ideps/stb
263+
DEF_FLAGS += $(INCLUDE_DIRS) -Ideps -Ideps/stb
264+
265+
CFLAGS += $(DEF_FLAGS)
266+
CXXFLAGS += $(DEF_FLAGS) -D__STDC_CONSTANT_MACROS
264267

265268
libretro =
266269
libretro_new =

Makefile.griffin

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ else ifeq ($(platform), ps3-cobra)
116116
# NGC/Wii - libogc
117117
else ifeq ($(libogc_platform), 1)
118118
EXTERNAL_LIBOGC ?= 0
119+
HAVE_OGG_OGC ?= 0
119120
GX_PTHREAD_LEGACY ?= 1
120121
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
121122
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
@@ -183,6 +184,10 @@ else ifeq ($(libogc_platform), 1)
183184
endif
184185
endif
185186

187+
ifeq ($(HAVE_OGG_OGC), 1)
188+
LIBS += -L$(DEVKITPRO)/portlibs/ppc/lib -lvorbisfile -lvorbis -logg
189+
endif
190+
186191
ifeq ($(EXTERNAL_LIBOGC), 1)
187192
LIBS += -lfat
188193
endif

Makefile.ngc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ LIBS := $(WHOLE_START) $(LIB_CORE) $(WHOLE_END)
5858
libogc_platform := 1
5959

6060
EXTERNAL_LIBOGC ?= 0
61+
HAVE_OGG_OGC ?= 0
6162
GX_PTHREAD_LEGACY ?= 1
6263
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
6364
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
@@ -102,6 +103,10 @@ ifeq ($(BIG_STACK), 1)
102103
LDFLAGS += -T bootstrap/gx/ogc.ld
103104
endif
104105

106+
ifeq ($(HAVE_OGG_OGC), 1)
107+
LIBS += -L$(DEVKITPRO)/portlibs/ppc/lib -lvorbisfile -lvorbis -logg
108+
endif
109+
105110
ifeq ($(EXTERNAL_LIBOGC), 1)
106111
LIBS += -lfat
107112
endif

0 commit comments

Comments
 (0)