HAVE_CORE_SIGNATURES builds the signature check and its trust store,
HAVE_CORE_LOAD_CHECK the check at every core load, and
HAVE_CORE_SIGNING_TEST_KEY the public test key. The first defaults on
where dynamic loading and the crypto library are, a line to turn off
for one target; the load check and the test key default off. configure
has --disable-core_signatures, --enable-core_load_check and
--enable-core_signing_test_key. griffin stops with an #error when
HAVE_CORE_SIGNATURES is set without HAVE_CRYPTO, as it does for
HAVE_S3, rather than failing on crypto/pk.c's missing symbols.
rgif now loads GIFs wherever RetroArch loads images: thumbnails and
backgrounds through task_image, the image viewer core, the file browser
and the image_texture/image_transfer layer underneath them all.
rgif:
- the image_transfer interface the other decoders have:
rgif_set_buf_ptr, rgif_set_avail, rgif_header_ready and
rgif_process_image, giving a 32-bit texture of its own, ARGB32 or
ABGR32 in native byte order
- RGIF_ABGR, for ABGR32 on big-endian targets
- a file not all read yet gives IMAGE_PROCESS_WAIT and is not touched;
the image is decoded in one call once it is all in
Wiring, as HAVE_RTGA is wired:
- IMAGE_TYPE_GIF (image.h) and NBIO_TYPE_GIF (task_file_transfer.h),
both appended so no other value moves
- image_texture_get_type: .gif
- image_transfer: new, free, start, is_valid, set_buffer_ptr, process,
set_avail; the support matrix gains a GIF column
- task_image and task_file_transfer: GIF is an image task
- FILE_TYPE_GIF ("gif", "GIF"): opened as image content
- the file browser's image extensions, the image viewer core's
extensions, the System Information list ("GIF (RGIF)") and
--features ("RGIF"); SUPPORTS_RGIF in config.features.h
- griffin.c, Makefile.common (rgif.o), configure (HAVE_RGIF=yes), and
next to HAVE_RTGA in every platform Makefile, the Android, Apple,
MSVC, UWP and QNX projects and the CI compile matrix
- tools/settings_check.py and tools/stack_budget.py check with it
Also: menu_displaylist's image viewer extension list wrote "tga"
without moving its length on, so "webp" and "dds" landed on top of it
and TGA dropped out of the list; it moves on now.
Tests: rgif_test checks the texture in both byte orders against
rgif_decode, the wait before the whole file is in, and a refused file;
image_decode_fuzz sweeps GIF too (every byte of a small GIF set to
edge values, and every truncation), under ASan and UBSan. The griffin
unity build with every codec, the touched objects in a configured
build, the MinGW/C89 syntax check, the overlap check and the stack
budget pass.
The UWP entry point and helpers live under os/uwp. The UWP projects add
os to their include paths, so <uwp/...> as libretro-common names it
keeps resolving; RetroArch's own sources include them by their path.
The UWP solution lives in pkg/msvc beside the desktop ones, split per
Visual Studio release: RetroArch-msvc2022-UWP (v143) and
RetroArch-msvc2026-UWP (v145). Both projects share pkg/msvc/msvc-uwp
(manifest, assets, ANGLE/MESA libraries, core placeholders) and the
CppWinRT package in pkg/msvc/packages, with intermediates and generated
files kept per project. The MSVC workflow builds 2022-UWP on the
windows-2022 runner and 2026-UWP on windows-2025.
Closes#19893
HAVE_NGX gated the whole temporal upscaler - the interface handed to
cores, the settings, the threaded wrapper's carry and the DLSS, FSR
and XeSS backends alike - under the name of one vendor's library. A
MetalFX backend on the Metal driver would have to be built under a
define that reads as NVIDIA's. The subsystem is now HAVE_TEMPORAL_
UPSCALER wherever HAVE_NGX stood, in the build files, the drivers, the
menu, the samples and the compile matrix; nothing changes in what is
built.
The groundwork for DLSS Super Resolution on the Vulkan and Direct3D 12
drivers, with nothing of NVIDIA's built in or shipped. libretro-common
gains two run-time loaders under gfx/nvidia, shared by frontend and
cores alike: nvapi_loader.c, the NVAPI probe the Direct3D drivers
carried themselves, now behind one nvapi_query(); and ngx_loader.c,
which finds the driver's NGX core library (beside the program, else
where the driver's registry keys point, libnvidia-ngx.so.1 on Linux),
resolves the Super Resolution entry points for Direct3D 12 and Vulkan
with the parameter accessors, and restates only the SDK interface it
takes. A sample drives both against stand-in libraries on Linux and
under Wine, and is wired into the libretro-common samples workflow.
The frontend side (HAVE_NGX, Windows and Linux builds with Vulkan or
D3D12) adds the Temporal Upscaler setting under Video > Scaling, hidden
until both the NGX core library and the user-supplied DLSS feature
library are found, and the DLSS Directory setting it is looked for in
(<system>/dlss by default), plus a System Information line that says
what was found. The setting selects nothing yet: the drivers' evaluate
path and the core-side buffer exports follow.
rslc is the slang compiler everywhere. ./configure --enable-glslang
--enable-spirv_cross links the system's glslang and SPIRV-Cross next to
it when both are found, and only then does Settings > Drivers offer a
Shader Compiler choice between the two: one setting read per stage
picks the path, with nothing copied.
The MSVC 2010 project builds Vulkan and rslc. Samples that used the
vendored copies run on rslc or the system's SPIRV-Cross.
The MSVC projects (2012 to 2026, UWP and the legacy Android one) build
rslc through griffin_rslc.c in place of glslang and SPIRV-Cross, as do
RetroArch_OSX107 and RetroArch_iOS11_Metal through griffin.c, and the
unix griffin build in Makefile.griffin. WANT_GLSLANG, which no
platform makefile set any more, is gone from Makefile.griffin, ngc and
wii.
Android's Vulkan slang drivers and the MSVC 2015-2026 projects now
build rslc (griffin/griffin_rslc.c) beside glslang and SPIRV-Cross, so
rslc compiles their stages with those two behind it for one it
refuses. On Android HAVE_RSLC_ONLY=1 builds without them: 13.8 MB
for arm64-v8a against 18.9 MB with them.
rslc's GLSL printer indexes its swizzle strings rather than adding to
them, which clang warns about.
Open supported external media in the fullscreen menu viewer and keep image confirmation there across all four menu drivers. Disable the legacy imageviewer core in normal build configurations while preserving its sources and Griffin guard.
* uwp: add msvc 2026 build
* CI: build MSVC 2026 next to 2022 instead of replacing it
The windows-2022 job keeps its UWP, 2019 and 2022 lanes and its action
pins. A separate windows-2025 job builds the 2026 solution and UWP with
the 2026 toolset; its artifacts carry a vs2026 tag so the two UWP lanes
upload under distinct names.
---------
Co-authored-by: LibretroAdmin <[email protected]>
HAVE_WINMM_JOYPAD: controllers through the multimedia library's
joystick calls, which need nothing the Windows this project targets
lacks and no library it does not already link.
With it the project names a driver of every kind: GDI for the
picture, wave output for sound, plain Win32 for the keyboard and
mouse, and this for controllers.
tools/msvc6_standin_check.sh builds and links it; its workflow also
runs the driver's test.
HAVE_WIN32INPUT: the keyboard and the mouse from plain Win32, the
input driver that needs nothing the Windows this project targets
lacks. With the GDI video and wave output audio drivers it already
names, what the project builds shows a picture, plays sound and takes
keys.
tools/msvc6_standin_check.sh builds and links it; its workflow also
runs the driver's test under Wine against a window, and counts a part
the test had to skip as a failure.
Still without controllers: a joypad driver for these Windows is next.
The Visual C++ 6 project named no driver of any kind, so what it built
had the null video, audio and input drivers: no picture, no sound, no
input. It defines HAVE_GDI and HAVE_WAVEOUT now - the GDI video driver
and the wave output audio driver, neither of which needs anything a
Windows without DirectX lacks, or any library the project does not
already link.
tools/msvc6_standin_check.sh builds and links the project with both.
Its workflow also runs the audio driver's test under Wine against a
silent device from a sound server it starts; with no device that test
only skips, which the step counts as a failure.
Still to come: an input driver. The project has none - DirectInput 8
is not there on the Windows it targets - so what it builds shows a
picture and plays sound and cannot yet be given a key.
Built and linked as a 32-bit program on the stand-in compiler; not
started. The Wine here does not run 32-bit programs.
The Visual C++ 6 project defined HAVE_NETWORK_CMD and not
HAVE_NETWORKING. command.c takes the first to mean it may use the
sockets the second brings in, so with the one and not the other it
does not compile: socklen_t, socket_init(), struct addrinfo and the
rest are not declared. The 2003 and 2005 projects define both; this
one has no networking - its linker line names no socket library - and
so no network command interface either.
Found by building what the project builds on a stand-in compiler
(the next commit); with the define gone that build compiles and links.
What the project's defines come to, for the record: it names no video,
audio or input driver (no HAVE_GDI, no HAVE_DSOUND or other audio, no
HAVE_DINPUT), so the program it builds has the null driver of each.
Left as found.
Every desktop MSVC project (VC6 through 2022) defines HAVE_CHD and
HAVE_RCHD, with HAVE_RFLAC and HAVE_RZSTD so FLAC- and zstd-compressed
hunks decode, matching the configure defaults. Griffin supplies the
codecs rchd calls: deflate always, r7z_lzma through HAVE_7ZIP, rflac
with HAVE_CHD, rzstd and huffman through their defines.
The Visual Studio 2005 to 2017 projects build the network stack as the
2019 and 2022 ones do: the TLS client, the keychain, and the SMB and NFS
clients. What kept them out was the CA bundle, one 255 KB string, where
MSVC before 2019 stops at 65535 bytes (fatal error C1091). net/cacert.h
now holds it in five arrays, each under 60000 bytes and ending where a
certificate does, and x509_trust_load_pem_parts() loads them all into
one trust store with no copy. tools/cacert_split.py writes the header,
from a new cacert.pem or from itself, byte for byte the same bundle.
The rest already kept to what those compilers take: C89, the LL/ULL
suffixes code they build uses, and Windows entry points resolved at run
time. The compile matrix builds the stack for 32-bit Windows in C89 at
the 0x0410 and 0x0501 floors, and checks no part of the bundle reaches
the limit.
The MinGW builds have carried the stack since configure took it up,
but the MSVC 2019 and 2022 projects, which the x64 and ARM64 jobs
build, had networking with no TLS or SMB client at all, and the UWP
project had libsmb2 and no TLS. All three are griffin builds, so the
change is their preprocessor definitions: HAVE_CRYPTO, the keychain,
HAVE_RETROSSL, HAVE_RETROSMB and HAVE_RETRONFS on every configuration
line that has HAVE_NETWORKING, giving those builds the TLS 1.2/1.3
client with verification, the encrypted keychain, the SMB2/3 client
with signing, sealing, Kerberos and the read-ahead window, and
nfs://. UWP loses the libsmb2 configuration defines and include
directories with it and links bcrypt for the random source its
WinRT path draws on.
The stack is C89 and MSVC-clean by design; every translation unit
compiles at the _WIN32_WINNT=0x0400 floor with MinGW, and the Wine
lanes run the Windows binaries. The projects themselves are the
MSVC and Windows ARM64 workflows' to build.
Kernel streaming: the frontend writes to a filter's pin and the packets
reach the device driver without a mixer between. Written against
PortAudio's pa_win_wdmks.c. setupapi.dll and ksuser.dll are resolved
at runtime, so the binary loads anywhere and works on Windows 2000 and
up; the interface is declared in the file rather than taken from ks.h,
which ships with the driver kit and is not in the 2005 SDK.
WaveCyclic only. A filter carrying KSCATEGORY_REALTIME streams WaveRT
- a mapped buffer and a position register, not packets - and its pins
answer KsCreatePin with ERROR_NOT_FOUND because they do not offer the
streaming interface this driver asks for. Those are recognised and
passed over.
Choosing such a device by name now fails saying so, rather than
walking on to the next one. That last part was a real report: the
audio device setting was changed to an HDMI output mid-session, this
skipped it, the neighbouring device refused a format, and the error
named that device and blamed the format - so the log accused the wrong
device of the wrong thing. A device the user asked for by name is not
something to walk past.
Earlier rounds of testing found a use-after-free that crashed the
process from a core thread (a packet's pending flag cleared on an I/O
error, which is not a completion: the kernel still owned the buffer
and the OVERLAPPED), and audio at the wrong pitch (the negotiation
offered widths the frontend cannot produce and nothing converts). Both
fixed; neither would have been found without running it.
samples/audio/wdmks_abi compiles this driver beside the real ks.h and
asserts every size, field offset, constant and both IOCTL codes on two
word sizes in C89 and gnu99; tools/wdmks_abi_guids.py checks the
GUIDs. That caught three ABI bugs before any of this ran.
Works here on a USB DAC: 48 kHz, 16-bit, 8 ms in four packets, device
clock +1 to +5 ppm against a sink estimate of -5. WaveRT is what the
rest of a typical machine needs and is the next piece.
AUDIO_TYPE_AC3: a buffer of syncframes (.ac3) behind the same four
calls as every other codec. The arm walks the buffer with the frame
layer, decodes a frame at a time into a pending block the reads
drain, hands the channels over in the speaker-mask order - which is
the WAV order the mixer's fold already knows, so 5.1 folds right -
and reports channels, rate and the frame count from the headers. A
seek decodes the frame before the target and discards it, so the
target comes out as a playthrough would have left it; a seek to 0 is
the loop's rewind. set_avail is honoured as a frontier: a read there
starves rather than ends. s16 is the f32 saturated.
audio_transfer_ac3_test: ffmpeg encodes a stereo and a 5.1 tone set;
the arm's decode matches ffmpeg's own to 85 and 77 dB over the whole
file, a seek into the middle of a frame lands within 0.1 dB of the
playthrough, the rewind matches the first read, s16 is the f32 to
the bit, and the frontier starves then resumes. In the samples CI.
The codec and the IEC 61937 framing are now compiled in on every
Makefile.common build and in griffin (HAVE_RAC3, no dependencies),
not only with the WASAPI driver; the MSVC projects define it, and
Makefile.griffin does wherever the mixer is.
Every strtod/strtof in first-party code becomes rstrtod/rstrtof: the
signatures match, and the parse no longer depends on the process
locale. Under a comma-decimal locale, strtod reads "59.94" as 59 and
"0.005" as 0 -- demonstrated through config_get_float/get_double
against a real config -- which is the long-standing class of bug where
refresh rates, shader parameters, and overlay coordinates collapse to
integers on locales that RetroArch's C-locale enforcement does not
reach (threads that setlocale themselves, cores that flip it, or
platforms without the enforcement). Touched: config_file and its
userdata list parser, filestream_scanf's float conversions, shader
parameter parsing, overlay coordinates, menu setting input, the
video-processor and mpv bundled cores, and the linux battery reader.
rstrtod.o joins Makefile.common and griffin next to stdstring, and the
Salamander projects that compile config_file.c directly pick it up too.
Deliberately untouched: strtoul/strtol (integers have no locale
problem) and everything under deps/.
ZLIB_LIBS is never assigned anywhere, so every makefile target that set
HAVE_ZLIB=1 compiled trans_stream_zlib.c and archive_file_zlib.c against
<zlib.h> and then failed to link -- there is no longer a vendored
implementation behind them. psl1ght hit this first; MSVC hit the
compile-side variant once the compat/zlib headers went away.
Take HAVE_ZLIB out of every platform. RetroArch decodes PNG with rpng,
so the -lpng that pulled zlib in on vita and wiiu was only ever a
convenience for statically linked cores, and android's -lz went with it.
No target enables zlib by default any more: trans_stream_zlib.c is now
reachable only through the explicit HAVE_ZLIB=1 opt-in in
Makefile.common and its matching guard in griffin.
psl1ght additionally drops freetype for stb font: libfreetype pulls
inflate/inflateEnd in through ftgzip, which is the same undefined
reference by another route.
Also repair damage from the earlier -I removal, which deleted the last
entry of several line-continued lists and left the preceding line with a
trailing backslash: vita and ctr swallowed the following 'else' (vita
lost main() entirely), orbis ended up with a literal '\' argument, and
psp1 and griffin were left with an empty continuation and a bare
'CFLAGS +='.
The database sample never built archive_file_7z's strldup dependency;
add compat_strldup.c. test_rpng and the json sample both compiled
trans_stream_zlib.c without a zlib to link against; point them at the
built-in DEFLATE backend instead.
deps/libz is gone, so libretro-common/include/compat/zlib -- the zlib
1.2.8 headers that sat in front of it -- no longer has an implementation
behind it. Every remaining <zlib.h> includer (bsvmovie, archive_file_zlib,
libchdr_zlib, trans_stream_zlib) guards the include on HAVE_ZLIB, so a
build configured against a system zlib picks up the system header and a
build without one never reaches it either way.
Drop the directory and the -I flags that pointed at it across the
platform makefiles, the Xcode projects and the MSVC 6 project.
The rzip sample was still compiling deps/libz directly and hardcoding
-DHAVE_ZLIB while linking trans_stream_zlib.c; it now builds against the
built-in DEFLATE codec alone.
archive_file_7z.c now reads archives through r7z_archive, and CHD
decodes LZMA through r7z_lzma, so nothing in the tree depends on the
bundled LZMA SDK any more. This deletes it.
The backend rewrite is the substance of the change. r7z_archive parses
from a buffer rather than a stream, so the archive is read in whole
instead of through a CLookToRead2 over a CFileInStream. That suits how
this backend is used: callers already hold the file open and go on to
decode entire members into memory, and 7z cannot decode a solid folder
without holding all of it regardless. It also removes the SDK's
allocator plumbing, its file wrappers and the 16 KiB lookahead buffer
from the context.
One behavioural detail changed for the better. The old iterate step
handed back a pointer into the middle of a decoded folder
(output + offset); the new one hands back the member itself. The caller
in archive_file.c writes exactly `size` bytes from that pointer, so
this is equivalent and no longer depends on the folder buffer
outliving the member.
The per-member compressed size reported during iteration is now the
uncompressed size. It was never meaningful for 7z: members of a solid
folder share one compressed stream and have no individual packed size.
Callers use the value only for progress reporting.
CHD's LZMA path no longer has an SDK implementation to fall back to, so
the HAVE_RLZMA fork in Makefile.common collapses to always building
r7z_lzma. In the griffin unity build the two consumers are separated by
a guard, since libchdr and the 7z backend can each be enabled without
the other but the translation unit may only appear once.
Also drops -Ideps/7zip from every platform makefile, the Xcode header
search paths, the qb configure step and the database sample, and the
now-meaningless _7ZIP_ST define from all of them plus the MSVC project
files. Nothing in the tree references deps/7zip or _7ZIP_ST after this.
Verified: 50 files extracted across 11 archives covering every
supported codec and both header forms, byte-identical to the source
tree; 48,645 captured CHD LZMA streams still decode byte-exact; the
LZMA2, BCJ2 and streaming-LZMA corpora all still pass. Every 7z module
and the rewritten backend build C89 clean with -pedantic-errors -Wall
-Wextra -Werror.
HAVE_STB_VORBIS has zero consumers anywhere in the source tree -
stb_vorbis was replaced by rvorbis - so the MSVC projects that
defined it were shipping griffin builds whose audio mixer had no
Vorbis decode path at all: HAVE_RVORBIS was never defined, so
griffin never included rvorbis.c and the mixer compiled without
its Vorbis branch. Replace the dead define with HAVE_RVORBIS
across all seven project files (msvc-2010/2012/2013/2015/2017/
2019/2022, 118 occurrences), restoring mixer Vorbis support to
the MSVC builds.
(HAVE_ROGG was considered as a companion define but does not
exist anywhere in the tree; HAVE_RVORBIS is the only Vorbis
flag with consumers.)
All projects already define HAVE_AUDIOMIXER, and griffin pulls
in rvorbis.c and audio_transfer.c from HAVE_RVORBIS with no
additional include paths required (rvorbis lives under
libretro-common, whose include directory every project already
carries).
Verification: rvorbis.c passes a strict C89 syntax check
(-std=c89 -pedantic -Wdeclaration-after-statement, gcc), so the
msvc-2010 C89 compiler front-end should accept it; every edited
project remains well-formed XML; no HAVE_STB_VORBIS references
remain under pkg/msvc. No MSVC build was run here - the griffin
compile of rvorbis.c under each MSVC version should get a CI
pass.
The DDS loader landed with only the core wiring (Makefile.common,
griffin, qb). Enable it everywhere the WebP loader (HAVE_RWEBP) is
enabled, so DDS decodes on every target rather than only default builds.
- platform Makefiles: mirror every HAVE_RWEBP toggle and inline
-DHAVE_RWEBP with HAVE_RDDS (ctr, dingux, dos, emscripten, griffin,
lfx000, libnx, miyoo, ngc, openpandora, orbis, ps2, psl1ght, psp1,
retrofw, rg350, rg350_odbeta, rs90, switch, vita, webos, wii, wiiu,
msvc).
- MSVC .vcxproj (2010-2022, 360, UWP) and the Android NativeActivity
project: add the HAVE_RDDS preprocessor define next to HAVE_RWEBP.
- Apple .xcodeproj (OSX107, PPC, iOS6-11 incl. Metal/static): add
-DHAVE_RDDS to OTHER_CFLAGS next to -DHAVE_RWEBP.
- pkg/android Android.mk: add -DHAVE_RDDS.
- feature reporting: SUPPORTS_RDDS (config.features.h), the retroarch
--features string, the menu Core Information image-format list, and
the imageviewer core extension list (adds |dds).
All these targets build the image loaders through the griffin unity TU,
which already includes rdds.c under HAVE_RDDS, so defining the flag is
sufficient to compile and enable the loader.
The WebP decoder was only enabled through the qb configure default, so
platforms with static build files never compiled it. Wire HAVE_RWEBP
everywhere HAVE_RPNG is wired, following each file's existing style:
- Variable assignments (routed through Makefile.common's define/object
block or Makefile.griffin's CFLAGS emit): dingux, dos, emscripten,
lfx000, libnx, miyoo, msvc, ngc, retrofw, rg350, rg350_odbeta, rs90,
webos, wii, and every per-platform block in Makefile.griffin, which
also gains the matching CFLAGS emit.
- Platforms with both a griffin branch (inline -D defines) and a
default Makefile.common branch (variable assignments) get both:
ps2, ctr, switch, orbis, wiiu.
- Continuation-style define lists: psl1ght, psp1, vita, openpandora,
and the Android NDK build.
- MSVC project files (griffin-based, PreprocessorDefinitions):
msvc-2010 through msvc-2022, UWP, Xbox 360, and the legacy Android
NativeActivity project.
- Xcode projects (griffin-based, -D flag lists): all eleven, including
the PPC and legacy iOS projects.
The decoder itself is C89-clean scalar C on platforms without SSE2 or
NEON (the SIMD paths are compile-time gated), so no platform needs
anything beyond the define. The salamander Makefiles are deliberately
left alone: the loaders do not decode images beyond their existing
boot path. Console targets are not buildable in this environment; the
edits mechanically mirror the existing HAVE_RPNG wiring in each file,
and the Makefile.common route they rely on is the same one exercised
by the regular Linux build.
The Windows 7.x Platform SDK (shipped with MSVC 2010 and earlier) does
not include dxguid.lib. Requiring it forces developers to install the
legacy June 2010 DirectX SDK just to link, which is painful on modern
systems because of the S1023 installer bug (VC++ 2010 runtime
conflict).
Instead, emit the required COM GUID storage ourselves via
<initguid.h>. Each GUID must be defined in exactly one translation
unit across the program:
* griffin.c picks it up for the griffin unity build (every
RetroArch-msvc*.vcxproj project) via #include <initguid.h>
inserted after the license header.
* gfx/common/dx_guids.c is a new dedicated TU for the non-griffin
build (Makefile.common: MinGW, command-line MSVC, cross-compile).
Both paths are guarded against UWP/WinRT (WINAPI_FAMILY !=
DESKTOP_APP) and Xbox (_XBOX) targets, where either dxguid.lib ships
with the modern Windows SDK or GUIDs come from a console SDK.
Changes:
* gfx/common/dx_guids.c: new file, emits GUID storage for the
non-griffin build path. Guarded against Xbox, UWP, and griffin
so it compiles to an empty TU on those targets. Includes the
DX headers in newest-to-oldest order (D3D12, D3D11, D3D10, D3D9,
D3D8) so that d3d11.h's transitive include of d3d10_1.h lands
before d3d10.h is seen, satisfying the SAL-annotation ordering
check inside d3d10_1.h.
* griffin/griffin.c: add gated #include <initguid.h> after the
license block so griffin unity builds emit GUIDs before the
first DirectX header is pulled in (d3d*.c includes start around
line 432, dinput at 701, xaudio at 889).
* Makefile.common: add gfx/common/dx_guids.o to the Win32 OBJ
list; remove the now-dead HAVE_DX_COMMON bookkeeping (four
assignments from the HAVE_DSOUND, HAVE_DINPUT, HAVE_D3D9, and
HAVE_D3D8 blocks, plus the conditional that appended -ldxguid
to LIBS).
* audio/drivers/dsound.c: remove #pragma comment(lib, "dxguid").
This MSVC-specific directive embeds a library dependency in
the .obj file and would silently re-introduce dxguid.lib at
link time even after it was stripped from the project files.
* pkg/msvc/**/*.vcxproj, pkg/msvc/**/*.vcproj: remove dxguid.lib
from AdditionalDependencies in every desktop MSVC project from
2003 through 2022. The Xbox 360 and Xbox One project files are
left untouched — their console SDKs handle GUIDs separately.
Replaced QtConcurrent::run() with a ThumbnailLoader worker thread class and removed the Qt5Concurrent/Qt6Concurrent dependency entirely.
Source changes:
ui_qt.h: Added ThumbnailLoader class (a QThread subclass with a mutex-protected request queue), added #include <QThread>, #include <QMutex>, #include <QWaitCondition>, removed #include <QFutureWatcher>, added ThumbnailLoader *m_thumbnailLoader member to PlaylistModel, removed loadImage private method
ui_qt_widgets.cpp: Removed #include <QtConcurrent>, replaced QtConcurrent::run() with m_thumbnailLoader->request(), removed PlaylistModel::loadImage() method, updated constructor to create/start the loader thread and connect its signal
ui_qt.cpp: Removed #include <QtConcurrentRun>
Build system changes:
Makefile.common: Removed $(QT5CONCURRENT_CFLAGS/LIBS) and $(QT6CONCURRENT_CFLAGS/LIBS)
qb/config.libs.sh: Removed check_pkgconf QT5CONCURRENT/QT6CONCURRENT and check_enabled lines
MSVC 2017/2019/2022: Removed QtConcurrent from include paths and Qt5Concurrent.lib/Qt5Network.lib from linker dependencies
Xcode Metal: Removed QtConcurrent.framework references
The Qt companion UI now only depends on Qt5Core, Qt5Gui, and Qt5Widgets (or their Qt6 equivalents).
Ran synthetic benchmark
QT_QPA_PLATFORM_PLUGIN_PATH=/mingw64/share/qt5/plugins/platforms ./bench_thumbnail.exe C:/RetroArch/thumbnails 200
Searching for up to 200 images in: C:/RetroArch/thumbnails
Found 200 images
Synchronous: 200 images in 554 ms (2.8 ms/image)
QThread worker: 200 images in 560 ms (2.8 ms/image)
Note: QThread worker has signal overhead but identical decode speed.
QtConcurrent::run would show similar numbers to QThread for single-thread.
With thread pool (N cores), QtConcurrent would be ~Nx faster for batch loads,
but grid view loads are throttled by visible items (typically 20-50), not CPU.
Identical performance — 2.8 ms/image for both. The QThread worker adds only 6ms total overhead across 200 images (signal/slot marshalling), which is 0.03ms per image. Completely negligible.
And in practice, the grid view only loads the ~20-50 thumbnails currently visible on screen, not hundreds at once, so even the theoretical multi-core advantage of QtConcurrent's thread pool never actually matters. The bottleneck is PNG decode at 2.8ms/image, not thread dispatch.
* Rename the `MIN_MATCH` defined by xdelta3 to `XD3_MIN_MATCH`
- zlib defines its own macro by that name, but with a different value
* Don't redefine `SIZEOF_ARRAY` in xdelta3 if it already exists
* Don't define ssize_t in xdelta3, rely on libretro's definition instead
* Enable xdelta3 support in MSVC 2015-2019
* Fix some invalid MSBuild condition syntax
* Always build xdelta with XD3_USE_LARGESIZET as 1
* Fix an `#if` in task_patch.c
* Enable `HAVE_XDELTA` in the UWP build
* First crack at fixing Xdelta support for Android
- Use one set of properties with conditions
- Include all headers in ui/drivers/qt instead of naming them all
- Update griffin_cpp.cpp to reflect these changes