Compare commits

...

2492 Commits

Author SHA1 Message Date
Stenzek
8c669e38c8 VideoThread: Simplify reconfiguration
- Removes cross-thread access of FSUI state.
- Fixes lockup when startup fails.
2026-02-03 20:00:02 +10:00
Stenzek
1a607257fb System: Fix game settings not deloading after shutdown 2026-02-03 19:59:59 +10:00
Anderson Cardoso
14decb1667 Atualização Português do Brasil (#3697)
Atualizado para a última versão.
2026-02-03 14:21:38 +10:00
Davide Pesavento
0b7d3ce2f6 PostProcessing: Correctly update stage count when removing/clearing stages (#3698) 2026-02-03 14:21:27 +10:00
Stenzek
016c08b9c3 GPU/HW: Use clamped rect for sprites-as-fills
Fixes VRAM corruption in Tales of Phantasia with the texture cache
enabled.
2026-02-02 19:11:40 +10:00
Stenzek
0094344360 README: Add links/instructions to Windows installer 2026-02-02 16:31:55 +10:00
Stenzek
372e1f3533 InputManager: Fix needing double press for button binding
Regression from 44e055ba03
2026-02-02 13:42:03 +10:00
Stenzek
682c9c6431 InputManager: Only enable sensor polling if there are bindings
Or when binding (hook).
2026-02-02 13:30:36 +10:00
Stenzek
653d04c84b InputManager: HasAnyBindingsForSource() shouldn't check subtype
Only affected pause-on-controller-removal, and if you didn't have any
controller buttons bound.
2026-02-02 13:22:57 +10:00
Stenzek
ab959a5d47 InputManager: Always call SetHook()/RemoveHook() on core thread 2026-02-02 13:17:53 +10:00
Stenzek
bcd7a43cf9 InputManager: Fix typo in variable name 2026-02-02 12:53:38 +10:00
Stenzek
faf988b31b System: Match console region to BIOS region when starting BIOS
Avoids using NTSC timings if you only have a PAL BIOS.
2026-02-02 12:51:48 +10:00
Víctor "IlDucci
dc78763292 Spanish (Spain) translation update (#3696)
Out-of-schedule update to add the revamped Capture/OSD menus.
2026-02-02 12:50:27 +10:00
Stenzek
43cf1d93a8 Installer: Share progress callback with updater 2026-02-01 19:07:28 +10:00
Stenzek
5bf65fe48b Installer: Calculate estimated size for uninstaller entry 2026-02-01 18:28:31 +10:00
Stenzek
7e4efbfa9c CI: Generate Windows installers 2026-02-01 17:04:32 +10:00
Stenzek
4756b17899 Installer: Add Windows uninstaller program 2026-02-01 17:04:32 +10:00
Stenzek
22c8d91109 Installer: Add windows installer program 2026-02-01 16:33:24 +10:00
Stenzek
186d558332 FileSystem: Check fclose() for WriteBinaryFile()/WriteStringToFile() 2026-02-01 15:38:33 +10:00
Connor McLaughlin
fcd3f972c1 README: Update resource overrides section
Replace with a link to the wiki page.
2026-02-01 14:16:59 +10:00
Stenzek
d8b889757b Qt: Reverse window open order on all Wayland platforms
Turns out KDE's kinda broken too - behaves inconsistently from run to
run. Probably a QtWayland issue, can't be arsed debugging.
2026-02-01 14:09:19 +10:00
Stenzek
59aeb1e84b VulkanDevice: Fix query index in WaitForCommandBufferCompletion() 2026-02-01 13:39:49 +10:00
Stenzek
3a54524e40 VulkanDevice: Add missing scissor clamp in SetInitialPipelineState() 2026-02-01 13:38:04 +10:00
Stenzek
2bd0a6ab41 VulkanDevice: Fix incorrect stage bits for compute PushUniformBuffer() 2026-02-01 13:36:11 +10:00
Stenzek
86dcbc614e Achievements: Remove hidden leaderboard check
No longer necessary since this is handled in rc_client now.
2026-02-01 13:33:13 +10:00
Stenzek
7df574cf59 Achievements: Fix notification icon opacity
Mostly noticeable on the RA icon when using center position.
2026-02-01 13:29:01 +10:00
Stenzek
fbf4cdd085 dep/rcheevos: Bump to dedfe2d 2026-02-01 13:25:51 +10:00
Stenzek
c60e3aaf2c VideoThread: Fix core thread view missing surface format
Fixes media capture throwing unhandled pixel format error after toggling
fullscreen.
2026-02-01 13:18:41 +10:00
Stenzek
e81fa84800 HTTPDownloader: Add missing error status assignment 2026-02-01 02:41:32 +10:00
Stenzek
84ff25e487 HTTPDownloader: Fix return value of curl write callback 2026-02-01 02:41:32 +10:00
Stenzek
ca49dd1ae5 HTTPDownloader: Fix error description for WinHttpOpenRequest() 2026-02-01 02:41:32 +10:00
Stenzek
66856687cc OpenGLDevice: Fix error reporting in SetSwapInterval() and SetVSyncMode() 2026-02-01 02:41:32 +10:00
Stenzek
87c4b66c46 OpenGLDevice: Fix error reporting in CreateFramebuffer() 2026-02-01 02:41:32 +10:00
Stenzek
a64272b7aa PostProcessing/FX: Fix incorrect min_point_mag_linear_mip_point translation 2026-02-01 02:41:32 +10:00
Stenzek
9630464e37 CMake: Remove pointless flags change
Wasn't specified in the user flags anyway.
2026-02-01 02:41:32 +10:00
Stenzek
7db0555b60 CMake: Bump version requirement 2026-02-01 02:41:32 +10:00
Stenzek
b20c2b281f Common: Add additional unit tests
And fix several logical errors.
2026-02-01 02:41:32 +10:00
Stenzek
d6915fb57a D3D11Device: Fix assigning integer to boolean 2026-02-01 02:41:32 +10:00
Stenzek
566681ff20 D3D11Device: Add missing push constant buffer destroy
No difference overall, but better to destroy buffer before device.
2026-02-01 02:41:32 +10:00
Stenzek
fa4d08491f CMake: Simplify resource copy 2026-02-01 02:41:32 +10:00
Stenzek
b330b3e7da CMake: Simplify Metal shader build
Don't need multiple versions.
2026-02-01 00:28:11 +10:00
Davide Pesavento
29241260a0 Qt: Avoid rich text in message boxes (#3695)
Otherwise Qt falls back to a very ugly non-native dialog on macOS.
2026-01-31 23:03:07 +10:00
Stenzek
0f280acaa7 InputManager: Remove padding from struct
No longer necessary since it's not shared between threads.
2026-01-31 19:47:31 +10:00
Stenzek
d66db164bd Qt: Add controller sensor mapping 2026-01-31 19:47:31 +10:00
Stenzek
668a930eb5 SDLInputSource: Add sensor (accelerometer) support 2026-01-31 19:29:59 +10:00
Stenzek
c13d04e2c9 InputManager: Remove Sensor source
This was only used for Android, and is better handled in the source
itself.
2026-01-31 19:25:14 +10:00
Stenzek
44e055ba03 Misc: Use delta from initial value for input binding
Avoids sensors falsely tripping.
2026-01-31 18:44:25 +10:00
Stenzek
1cfde39d3c Deps: Version updates
- Qt 6.10.2
- Harfbuzz 12.3.2
- libpng 1.6.54
2026-01-31 18:00:54 +10:00
Stenzek
0aca150a46 Common: Fix incorrect float rvalid() 2026-01-31 18:00:53 +10:00
Davide Pesavento
511058dc51 Qt: Fix crash on Linux when opening game properties (#3694)
* Qt: Fix crash on Linux when opening game properties

Regression from 370df62930

* Qt: Remove 'Use System Font' option from game properties

It only makes sense to set this globally.
2026-01-31 13:06:00 +10:00
bl@ck_m@ge
5cf8d080c9 GameDB: Max speedup cycles for Disruptor and Rescue Shot (#3693) 2026-01-30 22:00:22 +10:00
Stenzek
e50909234b Common: Fix string tests building 2026-01-30 21:56:38 +10:00
Stenzek
467f2fa6a8 StateWrapper: Avoid unnecessary include 2026-01-30 19:55:26 +10:00
Stenzek
7235494a77 VideoPresenter: Ensure skipped_present_count is zeroed 2026-01-29 22:12:50 +10:00
Stenzek
130494fae5 Qt: Allow changing executable with drag/drop
Also simplify the process a bit, remove the hack for GPU dumps in
InsertMedia().
2026-01-29 14:04:12 +10:00
Stenzek
a87d2aeafa Qt: Fix application name in task switcher on GNOME
Stupid desktop environment.

This will only work if you let DuckStation create/manage its desktop file.
2026-01-28 19:03:29 +10:00
Stenzek
f245357bbc Qt: Move state into QtHost namespace
Avoids symbol conflicts...
2026-01-28 17:59:01 +10:00
Stenzek
133018440a Qt: Fix log window appearing in front of main window on KDE 2026-01-28 17:55:10 +10:00
Stenzek
0aa6e1efcf Qt: Add popup to create desktop file on Linux 2026-01-28 17:33:30 +10:00
Stenzek
f4b3d1ce91 FileSystem: Add SetPathExecutable() 2026-01-28 16:32:17 +10:00
Stenzek
2fd81f5032 ImGuiManager: Make margins consistent across OSD/achievements 2026-01-28 15:44:33 +10:00
Stenzek
6f39b2f2e8 Qt: Fix fixed-width font not loading 2026-01-28 15:40:39 +10:00
Stenzek
8e5ec64448 Qt: Adjust window bring-up order
Ensure that the main window always has focus over the log window, but
the main window is shown first so it doesn't break the application icon
on Windows.
2026-01-28 15:32:12 +10:00
Stenzek
d45e121559 Qt: Remove QtUtils::GetRootWidget()
And replace usage with correct alternatives.
2026-01-28 14:56:38 +10:00
Davide Pesavento
a875254528 Controller: Add option to use right analog as trigger buttons (#3692) 2026-01-28 14:49:07 +10:00
Stenzek
c28282c405 Qt: Always use FullscreenUI for confirm message if system valid 2026-01-28 00:15:49 +10:00
Stenzek
36788b8595 Misc: Eliminate unnecessary atomic thread fences 2026-01-28 00:15:49 +10:00
Stenzek
25211c6fdb VideoPresenter: Move present throttling from VideoThread 2026-01-28 00:15:49 +10:00
Stenzek
335145b54b VideoThread: Avoid possible null presentation in PresentFrameAndRestoreContext() 2026-01-28 00:04:24 +10:00
Stenzek
5516f7a2f1 Misc: Use 'Render Window' consistently instead of 'Display Window' 2026-01-28 00:04:24 +10:00
Stenzek
92b888fb82 VideoThread: Fix overreserve in command allocator
Should be inconsequential.

Also fix wraparound handling at the buffer size.
2026-01-28 00:04:12 +10:00
Stenzek
4c523a6345 VideoThread: Rename some missed references 2026-01-27 23:20:26 +10:00
Anderson Cardoso
7c4bcefdd6 Atualização Português do Brasil (#3691)
Atualizado novos textos para última versão.
2026-01-27 19:52:45 +10:00
Stenzek
0bbb5b736e Qt: Fix tab order in OSD settings again 2026-01-27 19:51:47 +10:00
Stenzek
31f9be1ba1 VideoPresenter: Simplify post-processing settings update 2026-01-27 17:17:38 +10:00
Stenzek
219ee2067e PostProcessing: Fix depth buffer always being requested 2026-01-27 17:17:38 +10:00
Stenzek
208a8a505b GPUPresenter: Rename to VideoPresenter
Also fewer conflicts.
2026-01-27 17:17:38 +10:00
Stenzek
a04a312c1a GPUThread: Rename to VideoThread
Fewer conflicts.
2026-01-27 17:17:16 +10:00
Stenzek
63102e9a7f Qt: Avoid locals symbol name clash in qtthemes.cpp 2026-01-27 15:24:18 +10:00
Stenzek
370df62930 Qt: Add option to use the system font on Linux 2026-01-27 15:24:18 +10:00
Stenzek
9b299fee46 GPUPresenter: Convert to namespace 2026-01-27 15:24:18 +10:00
Stenzek
df757371e6 WindowInfo: Move prerotation enum to global scope
Enable forward declarations.
2026-01-27 13:56:38 +10:00
Stenzek
7e484861de Achievements: Reduce the size of challenge notifications 2026-01-27 12:37:30 +10:00
Stenzek
27afb31cc2 Achievements: Fix overlap when >1 leaderboard tracker active 2026-01-27 12:21:46 +10:00
Stenzek
5c0a227c1c Qt: Ensure fields in MemoryViewWidget are initialized
Didn't hit this before but better safe than sorry.
2026-01-26 20:59:17 +10:00
Stenzek
6be96f6fd7 GameDB: PGXP CPU for World's Scariest Police Chases 2026-01-26 20:58:58 +10:00
Stenzek
fb682a92ce Qt: Fix incorrect tab indices in graphics settings 2026-01-26 17:53:19 +10:00
Stenzek
499c08a370 Achievements: Warn on shutdown when unlocks are unconfirmed 2026-01-26 16:47:53 +10:00
Stenzek
ddcc2e0878 Achievements: Add missing lock to GetPauseThrottleFrames() 2026-01-26 16:47:53 +10:00
Stenzek
8643068870 Achievements: Fix unsynchronized achievements missing from list 2026-01-26 16:47:53 +10:00
Stenzek
2da35d2d38 dep/rcheevos: Prioritize unsynchronized bucket over recently unlocked 2026-01-26 16:47:53 +10:00
Stenzek
dc69e3f0c5 Qt: Fix conflicting accelerators in Settings menu 2026-01-26 16:47:53 +10:00
Stenzek
38c6c3e769 Qt: Improve grouping of OSD options 2026-01-26 15:46:44 +10:00
Stenzek
1f672d3ff1 ImGuiManager: Fix spacing for media capture timer overlay 2026-01-26 15:25:23 +10:00
Stenzek
a0fbffe05d Qt: Don't store unneeded references to settings pages 2026-01-26 15:10:41 +10:00
Stenzek
0f35e4e5dd Qt: Drop workaround for Classic Windows theme change bug
Seems fine now.
2026-01-26 15:10:41 +10:00
Stenzek
0a9a77ceb1 Qt: Move OSD and Capture settings to their own sections 2026-01-26 15:10:41 +10:00
Davide Pesavento
83b3a2ebb3 GameDB: Adjust cropping in Threads of Fate 2026-01-26 15:10:31 +10:00
Davide Pesavento
dcebea1cbf GameDB: Adjust cropping in FF8 and FF9 2026-01-26 15:10:31 +10:00
Davide Pesavento
21dfa471a0 GameDB: Disable auto analog in Mizzurna Falls (#3689) 2026-01-26 12:53:21 +10:00
Stenzek
ac1e6b533f GameList: Fix some interactions with custom serials
- Disc sets need to be recreated.
- Title should be cleared if going from unknown to known serial.
2026-01-26 12:50:53 +10:00
Stenzek
3a53a89268 Qt: Fix double save of custom serials 2026-01-26 12:50:27 +10:00
Stenzek
1608a6f7f5 FullscreenUI: Adjust footer item spacing 2026-01-25 23:23:50 +10:00
Stenzek
6c013dbe91 ImGuiManager: Increase font weight for OSD settings
Needed with font change.
2026-01-25 23:23:50 +10:00
Stenzek
4d6932eb13 GameDB: Tighten timing in Wing Commander III
Prevents crash during area loading.
2026-01-25 23:23:50 +10:00
Víctor "IlDucci
2ac1d892a9 Spanish (Spain) translation update. (#3688)
- Added translations for new/changed strings, other minor tweaks.
 - Renamed "subconjunto" (achievements) to "subset" following now-existing RetroAchievements translation.
 - Renamed "ampliación de tiempo" to "ampliación temporal".
2026-01-25 23:23:27 +10:00
Stenzek
91b0ed95da ImGuiManager: Use text font for frame time overlay
Slightly less terrible looking on low-DPI.
2026-01-25 21:02:47 +10:00
Stenzek
ac8502ce50 ImGuiManager: Swap fixed-width font to Google Sans Code
More consistent and better looking at low-DPI.
2026-01-25 21:02:47 +10:00
Stenzek
65bb5bc43e ImGuiManager: Adjust fixed-width font weight based on DPI
Fixed-width fonts seem to look awful at lighter weight on low-DPI
displays.
2026-01-25 21:02:47 +10:00
Stenzek
dedc59037f ImGuiManager: Allow renderer switch without destroying context
Fixes UI getting reset when changing renderers, and works around being
left in an inconsistent state if FSUI wasn't started and renderers are
changed from the ingame settings menu.
2026-01-25 21:02:47 +10:00
Stenzek
81bee3191e ImGuiManager: Fix possible memory leak on shutdown 2026-01-25 21:02:47 +10:00
Davide Pesavento
60ab6a960b Qt: Reflect new defaults in settings help (#3687) 2026-01-25 21:02:24 +10:00
Stenzek
1379d3ae55 Qt: Fix recommended value for Optimal Frame Pacing 2026-01-25 17:05:15 +10:00
Stenzek
ba180d63ae Qt: Add option to edit game list serials
Useful for modded games/ROM hacks, since then they get a different set
of settings.
2026-01-25 16:56:08 +10:00
Stenzek
4281de3521 Qt: Make settings update check ignore skipped updates
Same as help menu.
2026-01-25 14:02:37 +10:00
Stenzek
d3bff97f48 Settings: Default optimal frame pacing to enabled
Except on ARM64 Linux because potato RK3326's and such.
2026-01-25 13:10:58 +10:00
Stenzek
c76ee85b1d VulkanDevice: Don't submit during image acquire
Regression from 5e6a18a584
2026-01-25 13:08:00 +10:00
Stenzek
6f9752a177 VulkanDevice: Simplify EndAndSubmitCommandBuffer() a bit 2026-01-25 12:48:52 +10:00
Stenzek
1a81adb696 GPUThread: Fix crash concurrently changing renderer and deinterlacing 2026-01-24 20:54:33 +10:00
Stenzek
d67b9b9d28 OpenGLDevice: Don't use glGetTextureSubImage() on NVIDIA
glReadPixels() is about 2x faster...
2026-01-24 20:20:31 +10:00
Stenzek
5e6a18a584 VulkanDevice: Wait before starting next command buffer
Potentially avoids a fence wait.
2026-01-24 19:55:07 +10:00
Stenzek
af305d3814 D3D12Device: Avoid second fence wait for infrequent readback 2026-01-24 19:55:07 +10:00
Stenzek
4b30147350 D3D12Device: Avoid render pass end when setting same target 2026-01-24 19:55:06 +10:00
Stenzek
0614262e04 GPU/HW: Fix inconsistent device state after blank deinterlace 2026-01-24 19:55:06 +10:00
Stenzek
66956ded76 GPUPresenter: Avoid empty viewport on blank deinterlace 2026-01-24 19:26:05 +10:00
Stenzek
fa84d9e893 Qt: Default MacOS fractional window scale to disabled 2026-01-24 13:27:09 +10:00
Stenzek
66bfc4b164 Achievements: Increase padding for leaderboard loading indicator 2026-01-24 01:16:56 +10:00
Stenzek
bd1b660514 dep/rcheevos: Destroy parse state in rc_find_next_classification()
Fixes memory leak.
2026-01-24 01:12:43 +10:00
Stenzek
e26ad17fea dep/rcheevos: Fix silent URL truncation in new functions 2026-01-24 01:09:47 +10:00
Stenzek
c41eeda026 Achievements: Fix almost there/active challenge showing in all subsets 2026-01-23 22:00:06 +10:00
Stenzek
d9e442e5c8 GPUDevice: Don't duplicate fullscreen modes
Also sort the list while we're at it.
2026-01-23 21:22:41 +10:00
Stenzek
424a8e7756 Cheats: Fix aspect ratio not updating on change 2026-01-23 21:16:59 +10:00
Stenzek
75aba0d1ed GPUThread: Fix core thread window info not updating on fullscreen 2026-01-20 18:07:22 +10:00
Stenzek
07f2fa8f59 Achievements: Reload game when resetting after disc swap
Otherwise rcheevos maintains the old game info.
2026-01-20 16:38:42 +10:00
Stenzek
9a24913ab3 FullscreenUI: Remove now-unused host file selector functions
Apparently I forgot this. Should've been optimized out with LTO anyway.
2026-01-20 15:59:34 +10:00
Stenzek
c1ff163943 Misc: Replace more 'reset' strings with 'restart' 2026-01-20 00:27:30 +10:00
Stenzek
ce5b358d25 README: Update Mac installation instructions 2026-01-19 23:37:10 +10:00
Stenzek
fb474e8dd1 Qt: Relabel 'Reset Game' as 'Restart Game'
Clearer what it actually does.
2026-01-19 23:18:54 +10:00
Stenzek
f18aaee695 Qt: Use QPlatformTheme for Cancel 2026-01-19 23:18:54 +10:00
Stenzek
29692268b9 Qt: Allow parenting updater to settings dialog
Saves flipping back to main window if queried from interface settings.
2026-01-19 23:18:54 +10:00
Stenzek
e851c665c9 Common: Remove MemorySettingsInterface
No longer needed. Regtest uses the INI interface without a backing file.
2026-01-19 23:18:54 +10:00
Stenzek
06897cd733 Qt: Move windows data location from Documents to AppData
OneDrive shenanigans, Windows Defender preventing access, the list of
issues goes on.

Existing setups with a DuckStation directory in Documents will continue
to use Documents. New installs will use AppData\Local.
2026-01-19 23:18:54 +10:00
Stenzek
322320f816 FileSystem: Backport 3-arg Path::Combine() 2026-01-19 18:29:00 +10:00
Stenzek
a57851fb0c Qt: Fall back to QScreen if WindowInfo refresh rate query fails 2026-01-19 15:38:30 +10:00
Stenzek
ec22863e48 CocoaTools: Add display link fallback for refresh rate query 2026-01-19 15:38:10 +10:00
Stenzek
7f7d827397 GPUPresenter: Avoid NaN sized target during loading
Fixes texture errors during achievement loading with post-processing
active.
2026-01-19 15:05:46 +10:00
Stenzek
4800a4e552 PostProcessing: Avoid creating zero-sized intermediate targets 2026-01-19 15:05:46 +10:00
Stenzek
962454bbf4 Qt: Fix double invoking of mouse wheel/button events
Fixes FSUI scroll speed.
2026-01-19 15:05:46 +10:00
Stenzek
0c1f61f783 FullscreenUI: Add option to swap gamepad confirm/cancel buttons 2026-01-19 15:05:46 +10:00
Stenzek
a44f202f42 ImGuiManager: Remove another source of truth for window size 2026-01-19 15:05:46 +10:00
Stenzek
808d1116e5 GunCon: Don't read ImGuiManager state
Owned by GPU thread.
2026-01-19 15:05:46 +10:00
Davide Pesavento
39634b3555 FSUI: More consistent icons (#3686) 2026-01-19 15:05:36 +10:00
Stenzek
525dba5c52 GPUDevice: Use sorted array for storing shader cache entries
Saves hundreds of heap allocations for something that is more often read
rather than write.
2026-01-18 19:50:16 +10:00
Stenzek
c4255112ce MediaCapture: Remove stream ID check in ProcessVideoEvents()
Wasn't doing anything, and broke hardware encoding on NVIDIA.
2026-01-18 18:37:02 +10:00
Daniel Nylander
0058441ae5 Updated Swedish translation (#3685) 2026-01-18 18:36:48 +10:00
Stenzek
9eb092cf1b Qt: Detect refresh rate change when screen changed 2026-01-18 18:24:48 +10:00
Stenzek
ff0ad1b176 System: Rewrite present skipping
Now can operate in "only if vsync blocks" mode.

Significantly improves frame pacing for fast forward speeds.
2026-01-18 18:24:48 +10:00
Stenzek
4ec6ff7ebc InputManager: Remove second source of truth for window size 2026-01-18 16:51:10 +10:00
Stenzek
7c0e4d37c6 Qt: Forward mouse events through core thread
Instead of messing with core thread state on the UI thread.
2026-01-18 16:51:10 +10:00
Stenzek
71f46cf8c1 GPUThread: Update core thread window size on core thread
Avoid the barrier when reading it.
2026-01-18 16:51:07 +10:00
Stenzek
abed81d53e GPUDevice: Use present instead of current time for skip logic
Fixes erratic frame times when fast forwarding and below the
screen refresh rate.
2026-01-18 13:29:00 +10:00
Stenzek
a7d29da8ef System: Clamp typical time to frame period on MacOS
Gets rid of constraint errors with targeted fast forward speed.
2026-01-18 13:27:31 +10:00
Stenzek
e41ca32459 AudioStream: Fix changing stretch mode without buffer change 2026-01-18 13:24:08 +10:00
Stenzek
c8abdccce4 FullscreenUI: Remove content start sound effect
This ended up being way more annoying than I thought it would be.
2026-01-18 01:44:40 +10:00
Stenzek
4f37bc6e18 dep/rcheevos: Update rcheevos to v12.2.1
Already applied the patch, but this will bump the user agent which may
help with troubleshooting.
2026-01-18 01:44:02 +10:00
Stenzek
53e7cf5e5b System: Disable screensaver inhibit on Gamescope
So I don't have a barrage of Steam Deck users whinging about the OSD
message.

Also disable it if XDG_CURRENT_DESKTOP is missing, like running directly
on the framebuffer.
2026-01-18 01:25:01 +10:00
Stenzek
2a8256673a GPUDevice: Use separate variables for last/next present time
Fixes erratic frame rates in Big Picture mode.

Regression from 09926a3769.
2026-01-17 23:07:24 +10:00
Stenzek
2c77eabe3a Qt: Use nested layouts in controller settings dialog
Gets rid of the gaps but doesn't require rearranging.
2026-01-17 21:45:22 +10:00
Stenzek
9c9bd21c30 Qt: Remove RemoveEmptyRowsAndColumns() helper
Even after fixing this function, Qt's still screwing up the spacing of
grid items after rearranging. Better to approach this a different way.
2026-01-17 21:44:29 +10:00
Stenzek
8863c53813 System: Fix inhibit state if option changed while paused 2026-01-17 20:21:18 +10:00
Stenzek
70d286516e Qt: Fix auto updater half complete state on missing asset 2026-01-17 19:33:36 +10:00
Stenzek
54692a842b Qt: Only override with real/fractional scale on Metal renderer
Vulkan/MoltenVK can't handle it.
2026-01-17 19:13:46 +10:00
Stenzek
171514327d Qt: Fix incorrect fractional window size in MacOS 2026-01-17 19:13:46 +10:00
Stenzek
ebb604e1c6 Achievements: Use secondary colour for active subset
Makes it clearer.
2026-01-17 19:13:46 +10:00
Stenzek
3b57f437d4 Achievements: Don't duplicate subset title in list view
It's already shown in the subset selector.
2026-01-17 19:13:46 +10:00
Stenzek
1c02bf01a7 Achievements: Fix progress bar being too short 2026-01-17 19:13:46 +10:00
Stenzek
2463a5fdb7 Misc: Remove platform_misc.h completely 2026-01-17 19:13:46 +10:00
Stenzek
9c07d9bf7c CocoaTools: Move util functions to common 2026-01-17 19:13:46 +10:00
Stenzek
8135aefacf Qt: Move window corner rounding out of PlatformMisc 2026-01-17 19:13:46 +10:00
Stenzek
ffe7ca9f0a Host: Move screensaver inhibit to host
Removes direct dependency on DBus, uses Qt DBus instead.
2026-01-17 19:13:46 +10:00
Stenzek
e2266cd617 dep/rcheevos: Bumpt a4b9156 + #492
And remove some local patches that are now unnecessary.
2026-01-17 14:41:00 +10:00
Stenzek
2c8647d348 Achievements: Use rc_client_create_leaderboard_list() for hidden test
That way it's compatible with external client.
2026-01-17 14:32:50 +10:00
Stenzek
3a0c4898ef GunCon: Add line/tick offset for position fine-tuning
Fixes calibration in Ghoul Panic and default position in Judge Dredd.
2026-01-17 14:14:09 +10:00
Stenzek
9882ef4251 GPU: Fix ConvertDisplayCoordinatesToBeamTicksAndLines() with forced-progressive 2026-01-17 12:50:42 +10:00
Stenzek
4c92dc1818 Qt: Fix tab order in a couple of places
Regression from ff889fc749 and
e52b7dde8b.
2026-01-16 17:35:14 +10:00
Stenzek
6d61c54d50 Qt: Adjust Darker Fusion highlight colour 2026-01-16 17:34:58 +10:00
Davide Pesavento
ff889fc749 Qt: Fix overlapping group boxes in controller global settings (#3683) 2026-01-16 17:23:44 +10:00
Anderson Cardoso
a9bea9a4dd Atualização Português do Brasil (#3682)
Atualizado para a última versão
2026-01-16 17:22:22 +10:00
Davide Pesavento
0edd6e6fe4 GameDB: PGXP CPU mode and max speedup cycles for The Guardian of Darkness 2026-01-16 18:22:03 +11:00
Davide Pesavento
98596dd7df GameDB: Set PGXP tolerance for Vagrant Story 2026-01-16 18:22:03 +11:00
Stenzek
bd44e36f70 Achievements: Use OSD messages for errors instead of notifications 2026-01-16 02:49:40 +10:00
Stenzek
18768bcaba Achievements: Use note area in more notifications
- Show RA logo for login/game summary.
- Add icons to game complete, subset complete, leaderboard start/fail.
2026-01-16 02:49:40 +10:00
Stenzek
d02df7cf4b Achievements: Don't use visibility for leaderboard paging
Fixes leaderboards not being scrollable with controller only navigation.
2026-01-16 02:49:40 +10:00
Stenzek
f372a92246 Achievements: Add active leaderboard trackers to pause menu 2026-01-16 02:49:39 +10:00
Stenzek
93a5663fc8 Achievements: Make leaderboard notifications a little nicer 2026-01-16 02:49:39 +10:00
Stenzek
f222c5012a Achievements: Raise leaderboard fetch size to 15/50
Was loading too often otherwise.
2026-01-16 00:46:38 +10:00
Stenzek
a108fcf2b2 Hotkeys: Fix power off hotkey in achievements hardcore mode 2026-01-16 00:46:38 +10:00
Stenzek
80993e9880 FullscreenUI: Fix crash when hovering floating buttons
Only used in achievement lists.

Regression from db46413df7.
2026-01-16 00:46:38 +10:00
Stenzek
56fc9afbcf InputManager: Default to using global sources in profiles/games
Fixes controllers disconnecting and reconnecting on game start if any
settings were not copied from global (e.g. new settings).

Also fixes raw input not being hidden on non-Windows.

This is a breaking change if you were relying on input profiles/game
configuration having different sources selected.

In those cases, you will need to enable the new "Use Profile Input
Sources" checkbox to revert to the old behaviour for new profiles.
2026-01-15 20:26:01 +10:00
Stenzek
0c29d4e1db Qt: Remove empty rows/columns in controller settings 2026-01-15 20:26:01 +10:00
Stenzek
82947f0f65 Qt: Don't double-create the controller settings widgets
If editing a preset.
2026-01-15 20:26:01 +10:00
Stenzek
2db018bd88 Qt: Convert text in analog/digital pad SVGs to paths
Makes controller settings open instantly instead of a second or two
delay while DWrite is set up for font rendering.
2026-01-15 20:25:51 +10:00
Davide Pesavento
8dc07e5282 Qt: Use splitter in macro editor (#3680) 2026-01-15 16:58:49 +10:00
Stenzek
1ec280113f Qt: Fix incorrect row for compatibility comments 2026-01-15 16:35:42 +10:00
Stenzek
0912783158 System: Add taint for memory card time travelling 2026-01-15 15:47:40 +10:00
Stenzek
3bff452022 Qt: Add custom titles for disc sets
Still questioning the point since all discs including patched will get
lumped into the same disc set... but it's straightforward enough.
2026-01-15 15:30:59 +10:00
Stenzek
09926a3769 GPUDevice: Update last presented time after present
Instead of before.

Makes present skipping much more effective against NVIDIA's global
framerate cap if enabled, on my system with the cap at 60fps it
went from 120fps to 1400fps. Still about half of the true uncapped
speed, but when the present call blocks for a few milliseconds this
is all you can do. Can't stop presenting frames entirely.
2026-01-14 22:03:15 +10:00
Stenzek
d02382da79 GameList: Log image open errors on file scan failure 2026-01-14 22:03:15 +10:00
Stenzek
0c84baf4da Qt: Use portal file picker on KDE/GNOME 2026-01-14 22:03:15 +10:00
Stenzek
9cc8b0e19f InputManager: Apply 'Disable Background Input' to ImGui too
And fix the incorrect config key.
2026-01-14 02:01:28 +10:00
Stenzek
2d8b7c85bf FullscreenUI: Halve menu animation time
Felt really sluggish. Not sure how I haven't picked up on this before.
2026-01-14 01:22:27 +10:00
Stenzek
e52b7dde8b InputManager: Add 'Disable Background Input' option
Ignores controller input when application is not in the foreground.
2026-01-14 01:10:05 +10:00
Stenzek
f901d716bc InputManager: Don't use relative mode in raw input without bindings
Fixes mouse pointer getting locked if the user accidentially enables it
with nothing bound.
2026-01-14 00:30:12 +10:00
Stenzek
991db9e49a InputManager: Remove default Pointer-0 device on raw input startup
And re-add it on shutdown.

Fix the duplicate devices in the list.
2026-01-14 00:29:37 +10:00
Stenzek
2cb7bace03 InputManager: Fix raw input device disconnect events not triggering on disable 2026-01-14 00:28:54 +10:00
Stenzek
8048c05b3e InputManager: Fix raw input not registering 2026-01-14 00:28:31 +10:00
Davide Pesavento
f7083f9635 Qt: Fix singular form in a few translatable strings (#3681) 2026-01-13 12:55:59 +10:00
Stenzek
671751f980 Qt: Define Q_OBJECT for TextureReplacementSettingsDialog 2026-01-13 12:54:57 +10:00
bl@ck_m@ge
7d2377b98e GameDB: Max speedup cycles for Inuyasha and Monster, Inc. (#3679) 2026-01-12 20:48:36 +10:00
Stenzek
f9bf0cb128 Qt: Make 'Clear Settings' in Game Properties clear ini
Same as fullscreen UI.
2026-01-12 20:47:32 +10:00
Stenzek
08131302cd FullscreenUI: Reorder settings pages to match Qt
And add per-game post-processing.
2026-01-12 20:43:44 +10:00
Stenzek
a011b78d22 FullscreenUI: Fix per-game post processing settings 2026-01-12 20:43:35 +10:00
Stenzek
249f9d03f9 InputManager: Avoid redundant core thread invocation 2026-01-12 20:37:56 +10:00
Stenzek
896395b3ba FullscreenUI: Tweak message dialog widths 2026-01-12 20:37:41 +10:00
Stenzek
1431d5cf5b FullscreenUI: Use horizontal buttons for message dialogs
Unless it's a long string, then use vertical.

Also add icons to the dialogs.
2026-01-12 20:02:33 +10:00
Stenzek
f5ebe1cee2 FullscreenUI: Use horizontal buttons for resuming state 2026-01-12 19:59:41 +10:00
Stenzek
5637fc7804 ImGuiManager: Run idle when OSD messages are present
So we don't miss them.
2026-01-12 18:25:49 +10:00
Stenzek
56cbbb1323 InputManager: Don't display controller connected for initial 3 seconds
Avoids spamming the OSD when starting up.
2026-01-12 18:25:49 +10:00
Stenzek
5154ea9b18 Qt: Route status messages to OSD if fullscreen 2026-01-12 18:25:49 +10:00
Stenzek
82ab3e84a5 Host: Add ReportStatusMessage() 2026-01-12 18:25:49 +10:00
Stenzek
8f94a56ab2 System: Add GetProcessUptime() 2026-01-12 18:25:49 +10:00
Stenzek
a83ccdcd0e FullscreenUI: Fix focusing when pressing west face button 2026-01-12 17:14:49 +10:00
Stenzek
454d33272f FullscreenUI: Hook up L2/R2 to page up/down 2026-01-12 17:07:13 +10:00
Stenzek
d54de027cd FullscreenUI: Don't show ports in game settings by default 2026-01-12 16:45:00 +10:00
Stenzek
db46413df7 FullscreenUI: Use channels for background/highlight/foreground 2026-01-12 16:27:43 +10:00
Stenzek
bc2a2ba8d5 FullscreenUI: Fix background alpha for achievements user heading 2026-01-12 14:22:53 +10:00
Stenzek
9dcef869a3 FullscreenUI: Use appropriate icon for console settings 2026-01-12 14:22:53 +10:00
Stenzek
6c9277dbd2 FullscreenUI: Improve split window UX
- Fix sidebar scroll resetting after activation.
- Fix selection rectangle displaying on escape down.
- Improve padding and remove gaps.
2026-01-12 14:22:53 +10:00
Stenzek
c5ce2f999b dep/imgui: Add ImGuiChildFlags_NoNavCancel 2026-01-12 14:22:53 +10:00
Stenzek
d9fa8d1ed5 FullscreenUI: Use dummy for menu headings
No need to draw frames.
2026-01-12 14:22:52 +10:00
Stenzek
723fb02a76 Qt: Fix reshade shader icon in light themes 2026-01-12 14:22:52 +10:00
Stenzek
beaf01ccd6 Qt: Fix ReportFatalError() returning 2026-01-12 13:03:56 +10:00
Stenzek
a188633f6d FullscreenUI: Don't clear transition when preserving state 2026-01-12 13:03:46 +10:00
Stenzek
cb1e545f05 FullscreenUI: Wrap navigation in split windows 2026-01-12 13:03:27 +10:00
Stenzek
3952477d39 FullscreenUI: Use split window for controller settings
Much better than that massive scrolling list.
2026-01-11 19:43:00 +10:00
Stenzek
23e57f83fc FullscreenUI: Add 'Split Windows'
i.e. sidebar + content
2026-01-11 19:42:45 +10:00
Stenzek
cd688477a0 FullscreenUI: Settings changed fields don't need to be atomic 2026-01-11 17:24:34 +10:00
Stenzek
c126ee7d28 FullscreenUI: Fix EndFullscreenWindow() inside conditional 2026-01-11 13:34:45 +10:00
Stenzek
1ef7ce0d7f Qt: Don't open dialog on shift-click for effect bindings 2026-01-10 16:34:18 +10:00
Stenzek
e0f97a8a00 CompressHelpers: Fix incorrect function call 2026-01-10 15:29:27 +10:00
Stenzek
b287f00235 ZipHelpers: Don't call zip_error_fini() on zip_get_error() object 2026-01-10 15:29:27 +10:00
Stenzek
a8776a3b22 DynamicHeapArray: Don't resize if size is the same 2026-01-10 15:29:27 +10:00
Stenzek
7d95949e87 README: Update deps list 2026-01-10 15:29:27 +10:00
Davide Pesavento
2afc6cf26e Qt: Fix initial state of output latency slider 2026-01-09 23:40:26 +11:00
Davide Pesavento
ad01f993c8 Qt: Polish sliders 2026-01-09 23:40:26 +11:00
Stenzek
0b3c2c3e05 Qt: Fix enable syncing of notification/indicator locations 2026-01-09 16:00:25 +10:00
Davide Pesavento
626d511218 Qt: Fix help text for a couple of OSD settings (#3677) 2026-01-09 12:55:26 +10:00
Stenzek
d908b923ef VideoPresenter: Textures should be uploaded before any draws 2026-01-08 22:19:58 +10:00
Stenzek
0c1cdd31e1 Qt: Fix notification/indicator location enable state 2026-01-08 21:33:06 +10:00
Stenzek
79f9bbe6af Qt: Hide size for directories in ISO browser
It was nonsensical since it was reporting the size of the directory
entry, which has no correlation with the size of the files in the
directory.
2026-01-08 20:09:23 +10:00
Stenzek
bb8179f617 ImGuiManager: Allow repositioning OSD messages 2026-01-08 20:05:30 +10:00
Stenzek
4e0c42100a Achievements: Allow changing position of overlays 2026-01-08 19:54:19 +10:00
Stenzek
212b0e6aed Qt: Display profile icon in achievement settings 2026-01-08 15:31:06 +10:00
Stenzek
f7e83492b9 Qt: Remove game info from settings
Doesn't belong here, and I need the space.
2026-01-08 15:13:41 +10:00
Stenzek
3dcb73f66f Deps: Cherry-pick SDL3 f369e80
Incredible that this silly broken DLL is still causing problems almost a
decade later.
2026-01-08 13:01:53 +10:00
Stenzek
11331eb6c3 Deps: Bump to SDL3 3.4.0 2026-01-08 12:55:30 +10:00
Stenzek
5b5b6bbf77 FullscreenUI: Avoid redundant transition 2026-01-07 14:23:04 +10:00
Stenzek
f989a80541 Qt: Fix initial state of debugger if opened while paused 2026-01-07 14:02:10 +10:00
Stenzek
54285978cf CPU: Add Host::ReportDebuggerEvent()
And replace the old ReportDebuggerMessage().

Fixes breakpoint hit counts not updating in UI.
2026-01-07 13:57:30 +10:00
Stenzek
74a8e6653d FullscreenUI: Fix incorrect state with per-game renderer setting 2026-01-07 13:17:03 +10:00
Stenzek
a2f3d038db dep/imgui: Update to 69a501d 2026-01-06 15:44:28 +10:00
Stenzek
ace6cd2da4 Qt: Use temporary game list entry for properties of playlists
Doesn't provide full functionality, but this is not a supported setup
and it's better than only making the first disc accessible.
2026-01-06 14:57:08 +10:00
Stenzek
bff1f473d6 CPU: Add cop0 breakpoint checks for coprocessor loadstores 2026-01-06 14:00:58 +10:00
Stenzek
b1d1c76289 CPU: Don't set cop bits on DBE 2026-01-06 14:00:58 +10:00
Stenzek
f9c2aeabbb CPU: Fix incorrect EPC after cop0 breakpoint 2026-01-06 13:48:59 +10:00
Stenzek
c02bcdcd9f Qt: Add link to wiki page for changing sounds 2026-01-06 13:48:59 +10:00
Stenzek
cd9e3ffb85 SoundEffectManager: Support converting float wave files too 2026-01-06 01:20:25 +10:00
Stenzek
4522449156 SoundEffectManager: Support converting bit depth 2026-01-06 00:51:04 +10:00
Stenzek
2e659d8cf8 CPU: Pack local state in struct 2026-01-05 18:35:24 +10:00
Stenzek
5a32d194b7 CPU: Fix cop0 breakpoints triggering too late 2026-01-05 18:31:13 +10:00
Stenzek
64d70753fc ImGuiManager: Use default icons when unspecified 2026-01-05 16:44:51 +10:00
Stenzek
6c09ba4944 Qt: Move time stretch settings into audio widget
Fewer popup windows.
2026-01-05 16:44:51 +10:00
Stenzek
f2adc39709 CoreAudioStream: Handle parameter changes without restarting 2026-01-05 16:29:06 +10:00
Stenzek
fa39e63bbb Achievements: Show leaderboard times as relative
With a tooltip showing the absolute time.
2026-01-05 13:40:15 +10:00
Stenzek
4ab3669af0 Qt: Set QT_NO_SIGNALS_SLOTS_KEYWORDS
This should have been on before.
2026-01-05 12:45:01 +10:00
Stenzek
9e0e07f029 FullscreenUI: Update idle state after transition finishes
Just in case the FSUI Active bit gets stuck on.
2026-01-05 12:44:57 +10:00
Daniel Nylander
283478a329 Updated Swedish translation (#3676)
* Updated Swedish translation

* Remove VRAM mention from Swedish translation

* Updated Swedish translation

* Updated Swedish translation

* Minor fixes
2026-01-05 12:35:10 +10:00
Anderson Cardoso
b805c431f9 Atualização Português do Brasil (#3675)
Atualizado para a última versão
2026-01-04 13:12:21 +10:00
Stenzek
5c53fba912 Qt: Fix Wayland workarounds not applying
Forcing XWayland is almost a better option than this garbage.
2026-01-03 21:14:57 +10:00
Stenzek
ae1bd270c7 Data: Update SDL game controller database 2026-01-03 13:12:10 +10:00
Davide Pesavento
43a405413b PlatformMisc: Fix screensaver inhibition on macOS (#3674) 2026-01-03 12:24:40 +10:00
Stenzek
632aa18df0 CPU: Don't raise #RI on write to read-only COP0 registers
Should be silently ignored instead apparently.
2026-01-02 20:35:46 +10:00
Stenzek
c015893571 CPU: Add COP0 register names to disassembly 2026-01-02 19:55:00 +10:00
Davide Pesavento
d7b2f2d5f7 README: Update minimum macOS version (#3673) 2026-01-02 18:59:51 +10:00
Stenzek
2258463d8a CDImagePPF: Implement parsing of undo data 2026-01-02 18:59:21 +10:00
Stenzek
65de509c8d Qt: Fix spurious WinId change error on debug widget close 2026-01-02 13:04:08 +10:00
Stenzek
0ad425f584 GameList: Fix reporting of 'Yesterday' on Jan 1st 2026-01-01 14:40:54 +10:00
Stenzek
45dd5001cd Qt: Restore disassembly register previews in debugger
Probably got lost when I added branch lines.
2025-12-31 20:41:30 +10:00
Stenzek
67bb75250b Cheats: Search local cheats/patches for multi-disc games
Was already done for archives, just not local files.
2025-12-31 20:15:13 +10:00
Stenzek
14625af98e Common: Remove fallback for missing heterogeneous lookup
Minspec has this now, and I don't need to worry about Debian 11 anymore.
2025-12-31 18:18:37 +10:00
Stenzek
0a9bf5aa00 StringUtil: Use to_chars() for floating point types 2025-12-31 18:18:37 +10:00
Stenzek
a584a5a5ae CI: Set MacOS deployment target to 13.3
Required for std::to_chars() with floating-point types.
2025-12-31 18:18:37 +10:00
Stenzek
f03bb5b255 Qt: Defer initial layout of game grid
Knocks ~200ms off the startup time.

For some reason, the pixelMetric() call was taking all the time...
2025-12-31 17:53:53 +10:00
Stenzek
170d4b9fb8 Build: Don't make fast_float a public link for libraries 2025-12-31 17:36:53 +10:00
Stenzek
d4c4ec566a CMake: Prefer private over public include dirs 2025-12-31 17:33:04 +10:00
Stenzek
4c79ee82ac CMake: Adjust fmt build macros
Set on the library, not globally.
2025-12-31 17:30:04 +10:00
Stenzek
84e4aed8a7 dep/fmt: Update to v12.1.0 2025-12-31 17:22:30 +10:00
Stenzek
091517a62e StringUtil: Move FromChars()ToChars() instantiation to source file
Knocks ~10% off compile time.
2025-12-31 16:45:00 +10:00
Stenzek
dea9ce3d68 StringUtil: Move most non-template functions to source file 2025-12-31 16:45:00 +10:00
Stenzek
a42df97716 StringUtil: Use C++20 requires clauses instead of enable_if 2025-12-31 16:45:00 +10:00
Stenzek
8db7cff9d7 InputManager: Remove hotkey list indirection
Should also fix GCC link errors in Release builds.
2025-12-31 16:45:00 +10:00
Stenzek
604b7ce73f Misc: Fix building with GCC
Not that anyone should be doing it.
2025-12-31 16:21:04 +10:00
Stenzek
a725890dee Achievements: Add easing to progress indicators 2025-12-31 14:53:56 +10:00
Stenzek
3ff1ea33cf ImGuiManager: Extract out gradient rect function 2025-12-31 14:30:22 +10:00
Stenzek
83f5fdcab9 Qt: Order volume controls before audio backend configuration
Put the options that the user is more likely to change at the top.
2025-12-30 15:37:31 +10:00
Stenzek
f226581460 Qt: Include time stretch latency in displayed maximum 2025-12-30 15:37:12 +10:00
Stenzek
4b02270c79 Qt: Apply Wayland workarounds before creating QApplication 2025-12-30 15:23:24 +10:00
Stenzek
fb932eb598 FullscreenUI: Don't use SmallString for URL templates 2025-12-30 15:23:24 +10:00
Stenzek
1b9ef2c248 StringUtil: Backport helper functions 2025-12-30 15:23:24 +10:00
Davide Pesavento
bca82e1bb0 Achievements: Improve consistency of log messages (#3671) 2025-12-30 15:22:54 +10:00
Stenzek
3f1ab1cb8a SoundEffectManager: Upmix and resample sound effects when needed
Allows users to provide files at other sample rates/channels.
2025-12-29 20:59:37 +10:00
Stenzek
5cd5853435 Achievements: Add type badges to list and wrap long titles 2025-12-29 20:59:35 +10:00
Stenzek
02a36c78bd Qt: Prefer size from native OS over Qt
The latter is wrong when a resize fails.
2025-12-29 13:01:13 +10:00
Stenzek
c4ee79b52a CoreAudioStream: Ensure stream is destroyed before buffer
Fixes potential race during stream shutdown.
2025-12-28 22:04:54 +10:00
Stenzek
bfa70857e5 Qt: Fix missing borders in separate render window
Regression from f07b726c67
2025-12-28 14:18:28 +10:00
Stenzek
fa23d16c3c Qt: Cache window handle for size updates
Apparently calling winId() during window resizes ends up with a bad
m_surface pointer inside the QWindowsWindow...

I don't feel like debugging Qt any further, so this will be sufficient.
Plus it's faster.
2025-12-28 13:46:11 +10:00
Davide Pesavento
a2d95a1ba5 FullscreenUI: Change a few icons 2025-12-27 23:51:53 +10:00
Davide Pesavento
6c46b0cfe8 Deps: Update FontAwesome to 7.1.0 2025-12-27 23:51:50 +10:00
Davide Pesavento
84ff881721 Deps: Remove version number from FontAwesome header
Reduces code churn on version bumps.
2025-12-27 23:42:26 +10:00
Stenzek
f07b726c67 Qt: Sync after creating widget on Linux
We want to avoid nested event loops as much as possible because it's problematic on MacOS.
I removed the sync/processEvents() here for this reason, except of course fucking Linux throws
a wrench in the plan. On Windows and MacOS, calling show() and showFullscreen() will send resize
events with the correct size before returning. On Linux with X11 and Wankland, it doesn't.

So we have to force a processEvents() here to ensure the display widget is the correct size,
otherwise we'll see a glitched frame at the windowed size when starting fullscreen. Linux is
the odd one out again, as usual. Note: QGuiApplication::sync() is supposed to pump events
before and after syncing, but it seems this alone is not sufficient for getting the resize.
2025-12-27 23:35:47 +10:00
Stenzek
a4657fbcbb Qt: Catch show events for resize too 2025-12-27 23:35:19 +10:00
Stenzek
570a7042a6 OpenGLContextAGL: Compile fix
Not built on CI, so didn't notice.
2025-12-27 23:34:57 +10:00
Stenzek
213d3efdf7 GPUDevice: Unload persistent libraries on shutdown 2025-12-27 23:02:55 +10:00
Stenzek
739b0734bc CodeCache: Don't try to handle page faults when shutting down 2025-12-27 23:00:02 +10:00
Stenzek
21abd24870 Deps: Ensure PDBs get generated for Qt plugins
Need to debug a crash in Qt...
2025-12-26 23:23:01 +10:00
Stenzek
c206bd6311 FullscreenUI: Fix incorrect icon for macro buttons 2025-12-26 16:20:23 +10:00
Stenzek
d2c8df97f9 FullscreenUI: Fix sound on mouse click for some popups
Should only play sound effect using keyboard/gamepad navigation.
2025-12-26 16:20:23 +10:00
Stenzek
9904c5fbb3 FullscreenUI: Fix macro pressure/deadzone dialogs 2025-12-26 16:20:23 +10:00
Stenzek
7c401777a8 Deps: Build Brotli
For woff2 font loading.
2025-12-26 16:20:23 +10:00
Stenzek
c20f8d1ec4 Deps: Version updates
libjpeg-turbo: 3.1.3
libpng: 1.6.53
zlib-ng: 2.3.2
ffmpeg: 8.0.1
2025-12-26 16:20:23 +10:00
Stenzek
ef2cf6e223 System: Fix missing subchannel not blocking startup
I only tested the escape hatch, not the intended path...
2025-12-26 02:09:06 +10:00
Stenzek
682a3b3eb9 FullscreenUI: Only delete sound stream on full shutdown
Not when changing renderers.
2025-12-26 01:57:17 +10:00
Stenzek
5933489456 ImGuiManager: Reduce possible false sharing when adding events 2025-12-26 01:57:15 +10:00
Stenzek
6146769d85 Settings: Restore a few missing defaults in Safe Mode 2025-12-26 01:57:07 +10:00
Víctor "IlDucci
e70ae0be06 Spanish (Spain) translation update 2025/12/25 (#3669)
- Translated the latest batch of strings.
- Minor additional tweaks.
2025-12-26 01:57:00 +10:00
Stenzek
e2aa1ae24c Qt: Fix handling of mouse double-click events
- Fixes double-click events with mouse binds getting dropped.
- Fixes early release event when toggling fullscreen.
2025-12-25 19:56:26 +10:00
Davide Pesavento
182075675d CI: Minimize workflow permissions 2025-12-25 17:29:46 +10:00
Davide Pesavento
9aaaf14e85 CI: Stricter yamllint config 2025-12-25 17:29:46 +10:00
Davide Pesavento
ff747dde38 CI: Use ubuntu-slim runner for lint jobs 2025-12-25 17:29:46 +10:00
Davide Pesavento
1bc30de66f CI: Update actions 2025-12-25 17:29:46 +10:00
Stenzek
25790d704b InputManager: Register for device notifications with XInput
I forgot that I apparently don't poll active controllers.

Fixes controller hotplugging with XInput.
2025-12-25 13:52:30 +10:00
Stenzek
31764738c6 InputSource: Remove before calling OnInputDeviceDisconnected()
Fixes background polling interval not decreasing after last device
disconnects.
2025-12-25 13:51:29 +10:00
Anderson Cardoso
3253cc5bed Atualização Português do Brasil (#3667)
Atualizado para a última versão.
2025-12-25 13:50:32 +10:00
Stenzek
4b9154b45d Hotkeys: Add hotkey to toggle texture modulation cropping 2025-12-24 02:00:06 +10:00
Stenzek
88ca6cf40a README: Add instructions for resource overrides 2025-12-24 01:51:45 +10:00
Stenzek
b55f4041bf GPU: Add option to crop vertex colours before modulation
aka "old" GPU.
2025-12-24 01:23:01 +10:00
Stenzek
ad0312ec82 Settings: Free up space in GPUSettings struct 2025-12-24 00:16:44 +10:00
Stenzek
56d79c76a7 GPU: Extract heavier helper functions to own header 2025-12-23 20:00:58 +10:00
Stenzek
095fef524d GPUDevice: Extract enums to own file
Further reduction of indirect includes.
2025-12-23 19:52:33 +10:00
Stenzek
9370642434 Deps: Update rcheevos to v12.2.0 2025-12-23 19:34:29 +10:00
Stenzek
7bc32cdfa2 VulkanDevice: Swap EXT for KHR in structure type
No net difference.
2025-12-23 18:27:01 +10:00
Stenzek
822d756538 CubebAudioStream: Add missing layout mapping
Not actually used in DuckStation but one fewer patch I have to maintain.
2025-12-23 18:24:21 +10:00
Stenzek
9bcf23fa9b GameDB: Set PGXP-CPU for Vagrant Story
Fixes jitter in attack outline.
2025-12-23 18:24:05 +10:00
Stenzek
a1aa038623 VulkanDevice: Use KHR variants of surface/swapchain maintenance
AMD doesn't support the EXT variant.
2025-12-23 16:43:21 +10:00
Stenzek
41a000c0f1 Deps: Update Vulkan-Headers to v1.4.337 2025-12-23 16:36:17 +10:00
Stenzek
69458bd90b VulkanDevice: Persist instance throughout launches
Testing with AMD on Windows and LLVMPipe on Linux, creating and
destroying a Vulkan instance appears to leak around 20-30MB of memory.

Just keep the thing around for the whole time. Reduces startup time too,
so everyone wins. Unless you're switching renderers all the time, then
you lose a bit of memory.
2025-12-23 16:22:33 +10:00
Stenzek
e13b9a0c17 WindowInfo: Extract type into global namespace 2025-12-23 16:10:45 +10:00
Stenzek
f4c752a99f Qt: Extract window info functions to own file
More include reduction.
2025-12-23 16:10:45 +10:00
Stenzek
5b789be901 GPUDevice: Extract texture format to global namespace
Avoid pulling in gpu_texture.h and indirect includes just for this.
2025-12-23 16:10:45 +10:00
Stenzek
c3415c4891 VulkanDevice: Rearrange fields for locality 2025-12-23 12:50:16 +10:00
Stenzek
5a7acfe730 Qt: Populate graphics adapters asynchronously
More time saved when opening the settings window.
2025-12-23 01:52:06 +10:00
Stenzek
fbdd2689b1 Qt: Populate audio devices asynchronously
Save another 40-60ms when opening the window on my system. That's a few
frames at least!
2025-12-23 01:52:06 +10:00
Stenzek
edd3df899a Qt: Fix noreturn warning in Host::ReportFatalError() 2025-12-23 01:52:06 +10:00
Stenzek
a494477225 SoundEffectManager: Add caching and async reading 2025-12-23 01:52:05 +10:00
Stenzek
c7c29d4141 WAVReader: Add in-memory parsing 2025-12-23 01:52:05 +10:00
Stenzek
b8e93855fe WAVReader: Fix reading into non-data chunks after data 2025-12-23 01:52:05 +10:00
Stenzek
3fe319df51 FullscreenUI: Add navigation sound effects 2025-12-23 01:52:05 +10:00
Stenzek
0897dfcc94 Data: Add navigation sound effects 2025-12-23 01:52:05 +10:00
Stenzek
b1d5c42a13 PlatformMisc: Remove PlaySoundAsync()
No longer needed.
2025-12-23 01:52:05 +10:00
Stenzek
7a85841511 Achievements: Use SoundEffectManager instead of PlaySoundAsync()
Much less jank.
2025-12-23 01:52:05 +10:00
Stenzek
8a7dd1612b SoundEffectManager: Add system for playing short sound effects 2025-12-23 01:52:05 +10:00
Stenzek
cf103e9979 Core: Set correct log channel 2025-12-23 01:52:05 +10:00
Stenzek
c0277db4cf WAVReader: Make ReadFrames() return optional
That way the caller can detect EOF.
2025-12-23 01:52:05 +10:00
Stenzek
132ca44f05 CubebAudioStream: Use a single shared context
Will be needed shortly.
2025-12-23 01:52:05 +10:00
Stenzek
02384ac2aa AudioStream: Move all streams to same log channel 2025-12-23 00:51:06 +10:00
Stenzek
abcaceeb80 AudioStream: Split into source and backend streams 2025-12-23 00:18:07 +10:00
Stenzek
471fba1445 FullscreenUI: Fix stack use-after-free 2025-12-23 00:18:06 +10:00
Stenzek
2935a3d71b Common: Add additional ryml helpers 2025-12-21 16:14:20 +10:00
Stenzek
d7c015aefb MSBuild: Fix non-reproducible path sneaking into binary 2025-12-21 14:00:42 +10:00
Stenzek
22d8b6dc8c GPUBackend: Fix infinite loop on state allocation failure 2025-12-21 13:59:17 +10:00
Stenzek
461aaeda4d ProgressCallback: Add message logging 2025-12-21 01:35:46 +10:00
Stenzek
bfb9ba1c6d Qt: Backport noreturn ReportFatalError() 2025-12-20 23:56:21 +10:00
Stenzek
f4ff36b565 Host: Move async tasks to host namespace
So we can use proper QThreads for them to avoid lazy-creating the Qt
per-thread data.
2025-12-20 23:56:21 +10:00
Stenzek
57adcddc29 Host: Rename CPUThread/EmuThread to CoreThread 2025-12-20 23:56:20 +10:00
Stenzek
a43e05472a Host: Split into multiple files
Translation, actual host, and core for settings management.
2025-12-20 23:50:26 +10:00
Stenzek
26b8fe0d5b MSBuild: Remove _CRT_INTERNAL_NONSTDC_NAMES
Doesn't seem to be needed anymore.
2025-12-20 21:58:21 +10:00
Stenzek
4c97badb07 CMake: Fix Windows build
But you shouldn't be using it.
2025-12-20 21:58:21 +10:00
Stenzek
4810b1c7da Log: Fix empty output with only main window logs enabled 2025-12-20 17:57:02 +10:00
Stenzek
52bd6e7495 Qt: Clamp max upscale multiplier to 32x
Turns out Mali of all GPUs can do 64k x 64k textures.

Of course this is completely impractical as such a texture would use
16GB of memory.
2025-12-20 16:23:29 +10:00
Stenzek
63d352bb03 Misc: Fix move of constant values 2025-12-20 16:23:29 +10:00
Stenzek
b6cd37c6a4 Qt: Add option to show log in main window
When using render to separate window. Makes the main window actually
useful.
2025-12-20 16:06:08 +10:00
Stenzek
962137fcdf Qt: Move some settings around
Need the extra space.
2025-12-20 16:06:08 +10:00
Stenzek
0aff70237d Qt: Reduce indirect includes in mainwindow.h 2025-12-20 14:53:52 +10:00
Stenzek
a7637c5b50 Qt: Split log window into LogWidget and LogWindow
So it can be embedded.
2025-12-20 14:35:40 +10:00
Stenzek
854edd5d39 Achievements: Save/restore state on setting changes
Preserve hardcore mode, wait for load to complete to avoid potentially
missing trigger hits.
2025-12-20 12:48:41 +10:00
Stenzek
ea8d7b015c VulkanDevice: Only enable KHR_maintenance5 with dynamic rendering
Required by spec. Only really gets hit by the
disable-on-broken-mobile-driver path.
2025-12-20 12:33:13 +10:00
Davide Pesavento
b8c8941496 GameDB: Add sort title to FF7 and FF8 demo discs 2025-12-20 12:32:04 +10:00
Davide Pesavento
7d31ab9f16 GameDB: Fix typo in FF7's sort title 2025-12-20 12:32:04 +10:00
Windsurf7
1c06b685c5 GameDB: add missing compatibility entry for original release of A Bug’s Life (#3664)
The compatibility entry for the non-revision original release was missing. This PR adds it.
2025-12-20 12:31:34 +10:00
Stenzek
d5dc9fb568 FullscreenUI: Fix bg load after close->reopen 2025-12-18 01:29:27 +10:00
Stenzek
97128838cf ProgressCallback: Add a variant with alert/confirm
And implement it in both Qt and FullscreenUI.
2025-12-18 01:28:56 +10:00
Stenzek
822024dda5 Qt: Fix empty text box after image verification 2025-12-17 18:50:12 +10:00
Stenzek
51986e763d InputManager: Fix some low-risk races during reload 2025-12-17 13:51:57 +10:00
Stenzek
0af8b74773 InputManager: Move device notification from main window
Can use the new CM_Register_Notification() function since we don't have
to care about Windows 7.

Hopefully should stop a very rare race between window destruction and
device unplugging. Also gets the Windows-specific stuff out of
MainWindow which is nice.
2025-12-17 13:31:12 +10:00
Stenzek
a72d21f7ae Win32RawInputSource: Support device hotplugging 2025-12-17 13:31:08 +10:00
bl@ck_m@ge
9857835142 GameDB: Add mouse support for compatible games (#3662)
* GameDB: Add mouse support for compatible games

* fix trailing spaces for one entry
2025-12-17 13:03:32 +10:00
mariobob
bc72d58fd9 Achievements: Preserve hardcore mode when toggling encore/spectator/unofficial settings (#3661) 2025-12-17 13:02:36 +10:00
Stenzek
93f62c4292 CI: Fix cache key in upload caches workflow 2025-12-17 12:08:44 +10:00
Stenzek
6062f5e2f8 Qt: Use same changed colour in memory scanner as view
More readable.
2025-12-17 01:36:09 +10:00
Stenzek
89946ccad5 Qt: Provide theme icons for most used Qt StandardIcons
Fixes the file selector looking like total ass on Linux, with dark
coloured icons on a dark background.
2025-12-17 01:36:09 +10:00
Stenzek
b8b576e158 Qt: Override application font on Linux
Default fonts are ugly and too large.
2025-12-17 01:36:09 +10:00
Stenzek
6521355343 CMake: Don't copy desktop file to resources
No longer needed as of d5037f1242.
2025-12-17 01:36:09 +10:00
Stenzek
fe8d2e0329 VulkanDevice: Set rasterization order attachment access bit on blend state 2025-12-17 01:36:09 +10:00
Stenzek
7a539ba693 GPUDevice: Reduce GraphicsConfig struct size 2025-12-17 01:36:09 +10:00
Stenzek
b10eba419a VulkanDevice: Disable fbfetch on LLVMpipe
Rendering behaviour with llvmpipe + fbfetch is very strange, it fails
to read push constants sometimes??

Driver bug?
2025-12-17 01:36:09 +10:00
Stenzek
1ccd7508a8 CMake: Avoid using system zlib outside of MacOS 2025-12-17 01:36:06 +10:00
Stenzek
b3caf07a40 Qt: Make enhanced controllers reports option more clear 2025-12-15 19:20:02 +10:00
Stenzek
547b76fe1b SDLInputSource: Use auto mode for enhanced reports
Less chance of breaking other applications unless rumble actually goes
through.
2025-12-15 19:09:50 +10:00
Stenzek
a777466c51 Qt: Invalidate covers when all titles are invalidated 2025-12-15 19:02:36 +10:00
Stenzek
f52a5afcb8 System: Fix fullscreen state persisting between games
This was not intentional.
2025-12-14 20:48:19 +10:00
Stenzek
708e3b8694 Achievements: Use rc_client_create_subset_list() 2025-12-14 20:42:18 +10:00
Stenzek
cda367d211 Achievements: Use badge_url for downloads 2025-12-14 20:42:18 +10:00
Stenzek
f99601e3d0 dep/rcheevos: Bump to b77013b 2025-12-14 20:42:17 +10:00
Stenzek
86ba9ea3af ImGuiManager: Add colour gradient to OSD messages 2025-12-14 20:42:17 +10:00
Stenzek
900d06c32c FullscreenUI: Fix inconsistent notification colour gradient 2025-12-14 20:42:17 +10:00
mariobob
1ee0f73df8 Achievements: Use rc_client API for fetching game titles (#3658)
* dep/rcheevos: Bump to 7fb4300

* Achievements: Use rc_client API for fetching game titles
2025-12-14 20:12:24 +10:00
Stenzek
2498e66a6e MetalDevice: Fix compile warnings 2025-12-14 19:21:28 +10:00
Stenzek
37d7cd46c5 Common: Silence deprecation warnings on MacOS 2025-12-14 19:21:20 +10:00
Stenzek
351e787681 Common: Fix a bunch of errors in ARM vector wrapper
ARM64 passes now at least.
2025-12-14 19:20:20 +10:00
Stenzek
3fc563e5a3 Qt: Invalidate tooltips for title changes as well
Probably unnecessary since I don't think it's cached.
2025-12-14 12:22:10 +10:00
Stenzek
7cf6e04257 GPU/HW: Chunk skewed+overlapping copies
Can't see any retail games that do this from a quick check..
2025-12-14 02:25:24 +10:00
Stenzek
c6a44ff569 GPU: Add "Fine Crop" settings
Allows the image to be cropped while preserving output aspect ratio.
2025-12-14 01:17:21 +10:00
Stenzek
986e66b517 GPU: Use vectors in draw rect calculation 2025-12-14 01:17:21 +10:00
Stenzek
97582bcfec GPU: Use vectors/rects for presentation 2025-12-14 01:17:21 +10:00
Stenzek
69784d10a3 GPU: Move draw helper functions to cpp file
No derived classes that need this inlined anymore.
2025-12-14 01:17:21 +10:00
Stenzek
ed531da03b Qt: Move wireframe rendering to debug tab
Free up space in advanced.
2025-12-14 01:17:21 +10:00
Stenzek
9eaf58613a Qt: Simplify cover and icon invalidation
Get rid of multiple functions for doing the same thing, sync Big Picture
and Qt UIs.
2025-12-14 01:17:20 +10:00
Stenzek
c9177bc398 Common: Add vector rectangle helper functions 2025-12-14 01:17:20 +10:00
Stenzek
e06d880257 MSBuild: Set -Wno-invalid-offsetof
Same as CMake.
2025-12-14 00:36:39 +10:00
Stenzek
9ba0bb9a32 MSBuild: Only remove source paths in ReleaseLTCG
Don't want to hurt debugability.
2025-12-14 00:36:39 +10:00
Stenzek
4c384842ce Qt: Failed to retrieve update change list is not fatal 2025-12-14 00:36:39 +10:00
Anderson Cardoso
f248c1cd74 Atualização Português do Brasil (#3659)
Atualizado para a última versão.
2025-12-14 00:36:12 +10:00
Daniel Nylander
9790c1b8ad Updated Swedish translation (#3660)
* Updated Swedish translation

* Remove VRAM mention from Swedish translation

* Updated Swedish translation
2025-12-14 00:36:01 +10:00
Stenzek
95a196144c Build: Fix RC version field
It broke once the commit count passed 10,000.
2025-12-09 23:21:33 +10:00
Stenzek
dbd8288e96 Common: Fix implicit conversions in ARM vector wrapper 2025-12-09 23:21:22 +10:00
Stenzek
d1f2b80fbe Data: Update game controller database 2025-12-09 22:43:17 +10:00
Stenzek
bde06fe786 Settings: Disable wireframe+downsample in Safe Mode
Apparently I forgot these.
2025-12-09 22:41:45 +10:00
Stenzek
0e0e82d122 ImGuiManager: Apply same change to OSD messages 2025-12-09 22:41:44 +10:00
Stenzek
e9767ba349 FullscreenUI: Tweak achievement notification animation
Make colour gradient more obvious. Animate position instead of size
(less jarring).
2025-12-09 22:41:42 +10:00
Stenzek
43074cfe52 FullscreenUI: Slightly improve achievement notifications
Add more spacing between title and points. Allow note to overlap with
description in horizontal size.
2025-12-09 22:41:38 +10:00
Stenzek
6e5291d8fc Qt: Update English plural strings 2025-12-08 02:06:10 +10:00
Stenzek
6070bff9f6 dep/rcheevos: Bump to 9aa1352 2025-12-07 19:10:36 +10:00
Stenzek
de01bf704e FullscreenUI: Remember the last-opened achievement subset 2025-12-07 18:57:41 +10:00
Stenzek
4da93d7e19 FullscreenUI: Set scrollbar rounding 2025-12-07 18:57:32 +10:00
Stenzek
ac0a299884 FullscreenUI: Add achievement subset selection 2025-12-07 18:57:31 +10:00
Stenzek
75380e7859 FullscreenUI: Improve styling consistency between achievements/leaderboards 2025-12-07 18:31:26 +10:00
Stenzek
7214ec0b8b FullscreenUI: Improve leaderboard display
Finally somewhat satisfied with it. The old layout always bothered me.
2025-12-07 18:31:26 +10:00
Stenzek
56d8750f41 FullscreenUI: Add floating nav bar widgets 2025-12-07 18:31:26 +10:00
Stenzek
e2fc40c407 FullscreenUI: Fix infinite loading at end of leaderboard 2025-12-07 17:32:32 +10:00
Davide Pesavento
4b82191502 Qt: Fix use-after-free in edit/remove cheat (#3657) 2025-12-06 19:15:21 +10:00
Stenzek
d9f8302292 Qt: Increase idle polling interval
Use less power.
2025-12-06 16:15:14 +10:00
Stenzek
f7ca150c79 InputManager: Fix possible use-after-free on source reload 2025-12-06 16:15:14 +10:00
Stenzek
ea4933abe5 Achievements: Add progress to progress database refresh
That way there's some indication in the UI that the operation is
happening.
2025-12-06 16:15:14 +10:00
Stenzek
42c872efff FullscreenUI: Add achievement game icon download 2025-12-06 16:15:14 +10:00
Stenzek
3867c848b0 Qt: Allow cancelling icon downloads 2025-12-06 16:15:14 +10:00
Stenzek
1541200903 Qt: Name consistency improvements 2025-12-06 16:15:11 +10:00
Stenzek
a870f62709 Achievements: Use main HTTP for badge downloads 2025-12-06 14:13:29 +10:00
Stenzek
972dcd7920 Achievements: Tidy up badge downloader 2025-12-06 13:57:39 +10:00
mariobob
5b91141f09 GameList: Add option to download all game icons (#3655)
* GameList: Add option to download all game icons

* Fix translation support in status text calls

* Parallelize downloading game icons
2025-12-06 13:27:45 +10:00
Davide Pesavento
9b31d8b571 GameDB: Adjust cropping in a number of titles (part 2) (#3656)
* GameDB: Adjust cropping in a number of titles

Namely:
 - Metal Gear Solid
 - Parasite Eve 1 & 2
 - Resident Evil 3
 - Star Ocean
 - Tales of Destiny II
 - Tenchu 1 & 2
 - Vagrant Story
 - Valkyrie Profile

* GameDB: Disable auto analog for Xenogears
2025-12-06 12:47:43 +10:00
bl@ck_m@ge
0eaf1dd228 GameDB: Add various fixes for some games (#3654)
* GameDB: Add various fixes for some games

* Disable analog controller support for Dance Europe (compatible only with Digital)

* Disable texture filtering for Star Wars - Dark Forces

* Disable auto analog for some Wrestling titles

* Disable auto analog for Japanese DDR games
2025-12-06 12:39:36 +10:00
Stenzek
27802bf450 Deps: Set PKG_CONFIG_PATH when building 2025-12-05 20:42:56 +10:00
Stenzek
1d28a4b385 Deps: Disable GTK when building Qt
Why did I have this enabled...
2025-12-05 17:52:54 +10:00
Stenzek
801114f4cf Deps: Bump SDL3 to 3.2.28 2025-12-05 17:52:54 +10:00
Stenzek
5650880f90 Deps: Set QT_PREFIX_PATH for Qt on Linux 2025-12-05 17:52:54 +10:00
Stenzek
760b7b4740 CI: Revert hardcoded Mac cache key
Upstream issue has been resolved (at least for now).
2025-12-03 20:49:12 +10:00
Stenzek
241f720cb8 FullscreenUI: Avoid png/svg name clash for disc icon 2025-12-03 20:49:11 +10:00
Stenzek
941b62e938 FullscreenUI: Slight tweak to font weights
Improves readability on low-dpi displays.
2025-12-03 20:49:11 +10:00
Stenzek
9a8d9d7104 Hotkeys: Fix rotation hotkeys not having any effect 2025-12-03 20:49:11 +10:00
Stenzek
b4b05ed07a README: Remove non-functional link
Been paying hundreds of dollars for hosting for the last few years, and
with no immediate plans to push a new Android release, it does not make
sense for me to keep paying for it, especially since I make $0 off
DuckStation.

(it's been non-functional for a few weeks, apparently it took until now
for someone else to notice, which kinda shows how little use it was
getting)

If there's significant demand, then I may re-consider.
2025-12-03 20:49:11 +10:00
Stenzek
e92fb99a10 Qt: Update padtest URL 2025-12-03 20:49:11 +10:00
Davide Pesavento
b42f26fbac SDLInputSource: Log the joystick GUID as well (#3653) 2025-12-03 15:07:48 +10:00
Stenzek
60dbc5ad3d Qt: Remove unused block_until_done parameter
Recipe for deadlocks.
2025-12-02 20:06:56 +10:00
Stenzek
84aa425620 Qt: Move lock in ConfirmMessageAsync() 2025-12-02 20:05:30 +10:00
Stenzek
42c26cf919 Qt: Use ShowOrRaiseWindow() for main window 2025-12-02 20:05:14 +10:00
Stenzek
0172f220ed GPU/HW: Draw small fill sprites with software if TC is enabled
Wild Arms 2 clears out the sprite area of VRAM, then uploads new
sprites. The clears were not counting as fills before, because
they did not meet the page threshold.

It's not worth risking treating all untextured sprite draws as
clears, so instead just draw it with software as well to ensure
the local copy of VRAM is cleared.
2025-12-02 20:02:31 +10:00
Stenzek
af29ce010e Achievements: Show points for most recent unlock 2025-12-01 19:54:57 +10:00
Stenzek
c5c5a80414 Achievements: Fix challenge badge display in pause menu 2025-12-01 19:40:42 +10:00
Stenzek
3e32deebfc Qt: Fix power off system hotkey when fullscreen 2025-12-01 15:19:08 +10:00
Stenzek
ceb199b18d System: Add missing game list lock 2025-12-01 13:56:52 +10:00
Stenzek
8e3a65c152 MemoryCard: Show game icon when saving 2025-12-01 02:05:46 +10:00
Stenzek
7970287d69 GameList: Fix memcard icon extraction for non-database games
Also fix "Edit Memory Cards" menu option.
2025-12-01 00:35:17 +10:00
Daniel Nylander
1bf7431b89 Updated Swedish translation (#3648)
* Updated Swedish translation

* Remove VRAM mention from Swedish translation
2025-11-30 23:57:18 +10:00
Stenzek
11a0abaa83 Qt: Improve widget device pixel ratio detection
Fixes forced integer scaling when running under Wayland.

Why on earth QScreen is giving integer DPRs is beyond me. But my
reasoning for pulling the DPR from here dates back to 2020, so it
was probably a Qt5 thing.
2025-11-30 23:56:31 +10:00
Stenzek
df75127fc8 Qt: Disable AA_DontCreateNativeWidgetSiblings hack on KDE
Seems this is no longer needed... but it still breaks on GNOME,
because of course...

Almost at the point of just forcing XWayland on everything except KDE.
2025-11-30 23:56:16 +10:00
Stenzek
843558a16c Qt: Don't create wasteful display container on KDE
Still needed on GNOME because it's fucking stupid and they refuse to
support server-side decorations, with no signs this will ever change.
2025-11-30 21:44:55 +10:00
Stenzek
521eee42b3 Qt: Remove unnecessary application syncs
Wayland seems fine with this now.
2025-11-30 21:14:26 +10:00
Stenzek
621649748a Qt: Disable window rounded corners is only needed on Win32 2025-11-30 21:13:53 +10:00
Stenzek
259cd846a4 Qt: Use fine-grained cover invalidate in downloader 2025-11-30 21:00:26 +10:00
Stenzek
1fccee229b Qt: Use QtAsyncTaskWithProgress for cover downloader 2025-11-30 19:05:18 +10:00
Stenzek
d1d9008ffe Qt: Add QtAsyncTaskWithProgress 2025-11-30 19:05:00 +10:00
Stenzek
f3e0fe90d9 Qt: Rename QtAsyncTaskWithProgress to QtAsyncTaskWithProgressDialog 2025-11-30 17:29:34 +10:00
Stenzek
547d3495ed HTTPDownloaderCurl: Fix crash in worker thread 2025-11-30 17:29:24 +10:00
Stenzek
682d0075bd Achievements: Add missing lock in OnSystemDestroyed() 2025-11-30 16:35:44 +10:00
Stenzek
8cfbaca0e1 Achievements: Don't enable HC mode on reset without game 2025-11-30 16:28:47 +10:00
Stenzek
5859f0dbfd Achievements: Don't try to enable HC mode when starting without disc 2025-11-30 16:18:27 +10:00
Stenzek
1706dac0f0 System: Fix possible deadlock when starting
HC mode + debug windows enabled
2025-11-30 16:16:02 +10:00
Stenzek
177afb2aff Achievements: Executable read error should not show when starting BIOS 2025-11-30 16:14:15 +10:00
Stenzek
c3b1859f45 HTTPDownloaderCurl: Use INT_MAX timeout
Don't wake up for no reason.
2025-11-30 15:52:37 +10:00
Davide Pesavento
e1ca130fd4 GameDB: Set DisableFastForwardMemoryCardAccess for Lunar 2025-11-30 14:57:39 +10:00
Davide Pesavento
577f74a7fd GameDB: Increase cdromMaxReadSpeedupCycles for Dino Crisis 2 2025-11-30 14:57:39 +10:00
Davide Pesavento
51524d7259 GameDB: Adjust cropping in a number of titles
Namely:
 - Arc the Lad III
 - Breath of Fire IV
 - Dino Crisis 1 & 2
 - Dragon Warrior VII
 - Echo Night
 - Front Mission 3
 - Galerians
 - Koudelka
 - Lunar 1 & 2
2025-11-30 14:57:39 +10:00
Stenzek
521a23f5c3 Qt: Make disc select dialog window-modal 2025-11-30 14:54:55 +10:00
Stenzek
4a445a051d Qt: Disable Game Properties for PSF/GPUDump 2025-11-30 14:54:34 +10:00
Stenzek
6f80a199f1 Qt: Pack main window local state in struct 2025-11-30 14:42:30 +10:00
Stenzek
ed71c45da4 Qt: Simplify updateEmulationActions() and updateShortcutActions() 2025-11-30 14:39:42 +10:00
Stenzek
d612f8eea8 Qt: Support populating game list entry at runtime
Re-enables support for modifying cheats when running direct from disc.
2025-11-30 14:25:37 +10:00
Stenzek
d8a92f7c97 Qt: Fix styling of checked push buttons 2025-11-30 13:11:20 +10:00
Davide Pesavento
7a929b1d41 Qt: Allow copying the version string from interface settings 2025-11-30 13:01:46 +10:00
Davide Pesavento
9fa42e2f61 Qt: Add close button to "About" dialog
And fix title font size on macOS.
2025-11-30 13:01:46 +10:00
Davide Pesavento
d106639619 Qt: Reload game settings after reset to default (#3651) 2025-11-30 13:00:42 +10:00
Anderson Cardoso
e3dfc85562 Atualização Português do Brasil (#3649)
Atualizado para a última versão.
2025-11-30 13:00:13 +10:00
bl@ck_m@ge
9aeb6ee798 GameDB: Max speedup cycles and other fixes for some games (#3647)
* GameDB: Max speed up cycles and other fixes for some games

* GameDB: Fix metadata for one entry

* Fix string length under settings for SLUS-00872
2025-11-30 12:59:19 +10:00
Stenzek
b723a8852d GPU: Update CRTC configuration on line offset change
Fixes offsets not applying immediately in interlaced modes that do not
flip buffers.
2025-11-30 12:57:39 +10:00
Stenzek
65e890f7f4 Qt: Fix incorrect use of toggled signal
Fixes frame stepping, probably others.

Regression from 9ee1b02cd7.
2025-11-30 12:50:34 +10:00
Stenzek
de36fefad4 GPU: Re-add missing AR correction
Regression from 2b26690565.
2025-11-29 18:27:29 +10:00
Stenzek
e0a0745839 Qt: Fix devbuild check 2025-11-29 18:27:19 +10:00
Stenzek
db9a9e7624 Qt: Add indication that update check is in progress
Only for manually initiated update checks as feedback for the action
triggering.
2025-11-29 16:31:33 +10:00
Stenzek
fe8b8f04a7 HTTPDownloader: Remove unused default user agent 2025-11-29 16:19:04 +10:00
Stenzek
a1162731a0 HTTPDownloader: Remove InternalPollRequests()
CURL uses a worker thread now, so it's no longer needed.
2025-11-29 16:19:04 +10:00
Stenzek
e2b3f65134 HTTPDownloaderCurl: Use worker thread for processing
Should significantly speed up update downloads.
2025-11-29 16:19:04 +10:00
Stenzek
d6f7084309 HTTPDownloader: Use release-acquire ordering for request state 2025-11-29 16:19:04 +10:00
Stenzek
a171c25fb2 PostProcessing/Slang: Handle option names containing "//" 2025-11-29 16:19:03 +10:00
Stenzek
e71a022ad4 Qt: Fix crash on updater exit 2025-11-29 14:38:32 +10:00
Stenzek
3d27de7835 Qt: Fix inverted fullscreen condition 2025-11-29 13:38:24 +10:00
Stenzek
480d002324 Log: Only include function names for warn/error
Regressed when I redid the macros.
2025-11-29 13:11:21 +10:00
Stenzek
03c2ec2cad OpenGLDevice: Fix creation on MacOS
Only for debugging, CI builds have GL disabled.
2025-11-29 13:11:21 +10:00
Stenzek
8bc3f04be5 Qt: Try to work out the "real" display scale on MacOS
Avoids the rendering at 2x and downsampling at fractional DPI scale.
2025-11-29 13:11:21 +10:00
Stenzek
9ee1b02cd7 Qt: Remove a bunch of unnecessary QSignalBlockers
QAction::setChecked() does not invoke triggered().
2025-11-29 12:59:18 +10:00
Stenzek
f069570b3c Qt: Show update dialog after fullscreen exit completes
Use the new completion handlers.
2025-11-29 12:59:18 +10:00
Stenzek
a5755d12f1 Qt: Get rid of multiple sources of truth for fullscreen
Only has UI and CPU thread "views" now.
2025-11-29 12:59:18 +10:00
Stenzek
b13207a02f Qt: Remove unused fields 2025-11-28 23:57:56 +10:00
Stenzek
3c00c4d273 Qt: Remove main window surfaceless hackery 2025-11-28 23:57:56 +10:00
Stenzek
33b532d10b Qt: Remove unused focusDisplayWidget() 2025-11-28 21:43:52 +10:00
Stenzek
c91446c603 Qt: Remove unused cover downloader signal 2025-11-28 21:02:24 +10:00
Stenzek
cc6428645a Qt: Remove unsafe EmuThread isFullscreen() from UI thread 2025-11-28 21:00:24 +10:00
Stenzek
97c9daf1b9 Qt: Remove unused EmuThread::SystemLock 2025-11-28 20:58:03 +10:00
Stenzek
0c6cbf82d9 Qt: Remove redundant grid layout in updater 2025-11-28 20:57:49 +10:00
Stenzek
58cb4f2e37 FullscreenUI: Update loading/notification run idle on shutdown
Stops us from ending up in a state where we're always running idle when
paused, because a previous notification was blown away by shutdown.
2025-11-28 16:52:41 +10:00
bl@ck_m@ge
9fb1172a8b GameDB: Disable auto analog for some titles (#3645) 2025-11-28 16:47:39 +10:00
Stenzek
9d61e8c4e8 Qt: Do blocking game list refresh with autoboot without batch
Still need the entries.
2025-11-28 16:46:57 +10:00
Stenzek
e026117269 Qt: Make auto updater window-modal 2025-11-28 16:23:41 +10:00
Stenzek
1ba3efae7c Qt: Better layout for updater window 2025-11-28 15:57:38 +10:00
Stenzek
243a8afe97 Qt: Simplify updater configuration and process 2025-11-28 15:57:38 +10:00
Stenzek
f6bfb739f4 Qt: Remove QtModalProgressCallback
No longer needed.
2025-11-28 14:40:05 +10:00
Stenzek
8fcdf1049e Qt: Get rid of nested event loop in updater 2025-11-28 14:24:50 +10:00
Stenzek
676165282b Qt: Remove QtAsyncProgressThread
Merged into CoverDownloaderThread.
2025-11-28 14:24:50 +10:00
Stenzek
2b26690565 GPU: Simplify PAR calculation
Also fixes difference in aspect ratio with force 4:3 option and stretch.
2025-11-28 14:24:02 +10:00
Stenzek
4cbd01d033 Qt: Get rid of nested event loops in achievement login 2025-11-28 14:13:43 +10:00
Stenzek
ee1defd43c Qt: Don't try to center on an invisible window 2025-11-28 14:13:43 +10:00
Stenzek
cbbfecc0ff HTTPDownloader: Set initial indeterminate state 2025-11-28 14:13:43 +10:00
Stenzek
5b1e0117c9 Qt: Compile warning fix 2025-11-28 11:54:48 +10:00
Stenzek
cc6bfeb976 Qt: Use QtAsyncTaskWithProgress for ISO Browser extraction 2025-11-27 18:29:48 +10:00
Stenzek
d8e1418f37 Qt: Use QtAsyncTaskWithProgress for padtest download 2025-11-27 18:29:48 +10:00
Stenzek
d1519aa097 Qt: Use QtAsyncTaskWithProgress for dump verification 2025-11-27 18:29:48 +10:00
Stenzek
3f882cf254 Qt: Add QtAsyncTaskWithProgress class
Async work item with a progress dialog that doesn't require a nested
event loop.
2025-11-27 18:29:48 +10:00
Stenzek
82a44b19bf ProgressCallback: Avoid unnecessary struct padding 2025-11-27 18:29:48 +10:00
Stenzek
4290f75951 ProgressCallback: Remove modal methods
Still required for the updater, but I've moved that to an
updater-specific class in the heirarchy.
2025-11-27 18:29:47 +10:00
Stenzek
548887449e Misc: Eliminate usage of modal progress callback functions
Too error-prone, nested event loops are nasty. Error pattern is better.
2025-11-27 18:29:12 +10:00
Davide Pesavento
48ec261043 Qt: Center game properties window too (#3644)
Missed it in 63f929e6f8
2025-11-27 18:08:51 +10:00
Stenzek
90ec75b4e4 Achievements: Don't display points badge for 0 points 2025-11-27 18:08:51 +10:00
Stenzek
5e2b32f33f Host: Remove blocking ConfirmMessage()
No longer needed.
2025-11-27 18:08:51 +10:00
Stenzek
7ce8959247 System: Use ConfirmMessageAsync() for SBI-less boot
No more nested event loops!
2025-11-27 17:48:31 +10:00
Stenzek
7b6fd224af System: Confirm HC disable on undo load state/reset
Again, no issue since it was unconditionally disabling, but this gives
the user the opportunity to cancel it.
2025-11-27 17:48:30 +10:00
Stenzek
08f357f0d7 System: Avoid load state message on HC disable confirm
It wasn't actually loading, so no issue, but could be confusing to a
user.
2025-11-27 17:48:30 +10:00
Stenzek
93f3be46f2 Achievements: Remove ConfirmHardcoreModeDisable
No longer needed.
2025-11-27 17:48:30 +10:00
Stenzek
249f8cf4a0 System: Always use async hardcore cancel on boot
No blocking event loops.
2025-11-27 17:48:30 +10:00
Stenzek
e142a321f2 CDImagePBP: Fix TOC misreporting for some images 2025-11-27 17:48:30 +10:00
bl@ck_m@ge
6369f38d65 GameDB: Disable read speedup for Gundam Battle Assault 2 (#3643) 2025-11-27 01:45:37 +10:00
Davide Pesavento
c00aac6463 GameDB: Increase cdromMaxReadSpeedupCycles for Alundra 2 (#3642) 2025-11-27 01:45:30 +10:00
Stenzek
5626fe09b3 Qt: Replace most blocking message boxes with async 2025-11-26 23:48:22 +10:00
Stenzek
459ee19298 Qt: Add QtUtils::AsyncMessageBox() 2025-11-26 22:01:04 +10:00
Stenzek
73823edf56 Qt: Make message box utility parameter order consistent 2025-11-26 22:00:24 +10:00
Stenzek
8311a0cf55 FullscreenUI: Fix moving achievement points badge 2025-11-26 21:49:55 +10:00
Stenzek
f3523508b5 FullscreenUI: Add gradient to achievement notification background 2025-11-26 21:49:40 +10:00
Stenzek
0302d6eefa Qt: Use metaobject class name for saving/restoration
Less chance for error.
2025-11-26 20:05:08 +10:00
Víctor "IlDucci
f84990bc79 Spanish (Spain) translation update 2025-11-25 (#3641)
- Translated the last batch of strings.
2025-11-26 12:13:20 +10:00
bl@ck_m@ge
225623b78e GameDB: Disable auto analog for some games and add missing info (#3640) 2025-11-26 12:08:43 +10:00
Stenzek
952b6c90c0 ImGuiOverlays: Add missing space 2025-11-26 12:07:21 +10:00
Davide Pesavento
3b25e7b3ad Qt: Use Close button in ControllerCustomSettingsDialog
Consistency.
2025-11-25 13:19:31 +10:00
Davide Pesavento
63f929e6f8 Qt: Fix centering of secondary windows
The window size may be incorrect in the constructor because layouting
hasn't happened yet. We need to wait until show() is called.
2025-11-25 13:19:31 +10:00
Davide Pesavento
f9ca1f2241 Qt: Disable game compat comments button instead of hiding it (#3639) 2025-11-25 13:14:18 +10:00
Stenzek
21daf6c873 Qt: Fix window icon for setup wizard 2025-11-24 23:56:21 +10:00
Stenzek
17284156d6 Qt: Swap table view for tree in setup wizard game list 2025-11-24 23:56:16 +10:00
Stenzek
618d154ee5 Qt: Swap table for tree in Game Properties track list
More space-efficient.
2025-11-24 23:50:17 +10:00
Stenzek
afc019d586 FullscreenUI: Avoid drawing OSD messages over achievement badges 2025-11-24 23:08:14 +10:00
Stenzek
79bfa1a65a System: Fix inverted save state overclock warning 2025-11-24 22:55:27 +10:00
Stenzek
267e81f470 README: Remove compatibility list link
Hasn't been updated in years, isn't providing any value anymore as most
games work fine.
2025-11-24 22:14:41 +10:00
Stenzek
a14433e033 FullscreenUI: Fix ImGui asset tripping on empty game grid 2025-11-24 21:56:46 +10:00
Stenzek
e012d97800 Achievements: Use RA icon for some notifications 2025-11-24 21:56:34 +10:00
Stenzek
ce37f0e751 ImGuiManager: Support non-font icons in OSD 2025-11-24 21:40:58 +10:00
Stenzek
b5392ee2ce Regtest: Build fix 2025-11-24 21:02:04 +10:00
Stenzek
db72c78f7c ImGuiManager: Fix incorrect condition in OSD rendering 2025-11-24 21:02:04 +10:00
Stenzek
302ce03fe4 Qt: Async messageReported() signal should not block 2025-11-24 21:02:04 +10:00
Stenzek
eb518c8e39 Qt: Eliminate OSD from debug RAM dumping 2025-11-24 21:02:04 +10:00
Stenzek
e02883eabd Settings: Make OSD message durations customizable 2025-11-24 21:02:04 +10:00
Stenzek
1cc5fe081c ImGuiManager: Remove duration parameter from OSD messages
Use a type instead.
2025-11-24 21:02:04 +10:00
Stenzek
2290f31ffd ImGuiManager: Remove multiple sources of truth for prescale/margins 2025-11-24 19:19:48 +10:00
Stenzek
b5316239b0 Settings: Slightly reduce struct size 2025-11-24 19:19:48 +10:00
Stenzek
795e2d2735 ImGuiOverlays: Fix bold with ICache enabled 2025-11-24 19:19:48 +10:00
bl@ck_m@ge
d4e2f4fb93 GameDB: Disable auto analog for Tenchu (#3636) 2025-11-24 12:31:35 +10:00
Davide Pesavento
e3332d176f Qt: Fix open button icon in ISO browser (#3638) 2025-11-24 12:27:07 +10:00
Stenzek
fd24d9946e CI: Work around Mac runner failing 2025-11-23 12:48:36 +10:00
Stenzek
c9c4997d6f PostProcessing/Slang: Separate original and input textures
Only applies when chaining.
2025-11-23 12:38:20 +10:00
Stenzek
5d9309cd55 Qt: Make parented progress callback dialog window modal
Maybe this'll help with it not appearing for some Linux users...

Whole thing needs to be re-done with threads.
2025-11-22 21:09:44 +10:00
Stenzek
86bf551620 Qt: Warn when executable has been renamed 2025-11-22 15:34:36 +10:00
Stenzek
1f7a44c65d Qt: Remove a couple of left-over spacer size hints 2025-11-22 15:34:36 +10:00
zkdpower
3a43f59934 Update the Simplified-Chinese Translation. (#3635) 2025-11-22 15:29:53 +10:00
Stenzek
783e7675d5 Qt: Swap remaining form layouts for grid 2025-11-22 14:43:52 +10:00
Stenzek
573734eeb2 Qt: Swap form for grid layouts in setup wizard
Consistency with main settings window, mainly for MacOS.
2025-11-22 14:43:52 +10:00
Stenzek
7829d4316b Qt: Add proper alert titles in a couple of areas 2025-11-22 14:43:52 +10:00
Stenzek
6146d33fa2 Qt: Fix game list background on MacOS 2025-11-22 14:43:52 +10:00
Davide Pesavento
30a0b94a4f CI: Download all artifacts into the same directory 2025-11-22 14:43:27 +10:00
Davide Pesavento
5b56399d8d CI: Update GitHub actions 2025-11-22 14:43:27 +10:00
shikulja
b79d69b702 Update Russian translation (#3634) 2025-11-22 14:42:46 +10:00
Stenzek
f7e6c20fed CMake: Bump Qt version requirement 2025-11-21 15:01:35 +10:00
Stenzek
95563345b1 Deps: Revert Qt window-modal dialog disabling on Tahoe
It's not a problem for us, and the non-native dialogs look awful.
2025-11-21 12:44:59 +10:00
Stenzek
704cdef932 Deps: Bump to Qt 6.10.1 2025-11-21 12:38:18 +10:00
Stenzek
b4900c90ed dep/imgui: Fix memory leak in imgui_freetype
Only once on font load, but still a leak.
2025-11-21 12:28:07 +10:00
Stenzek
e9966cfed0 Qt: Fix QEventLoop leak on shutdown
This one is inconsequential.
2025-11-21 02:11:53 +10:00
Stenzek
857a767898 Qt: Fix QAction memory leak on shutdown
Would also leak if you changed languages.
2025-11-21 02:07:09 +10:00
Stenzek
654587ea38 System: Add 'Low VRAM' rewind mode
i.e. use the software renderer for rewinding instead.

Works fairly well, and takes away the VRAM hit when upscaling.
2025-11-21 01:59:03 +10:00
Stenzek
a8967b2b44 Settings: Shouldn't be accessing the global object 2025-11-21 01:59:03 +10:00
Stenzek
938a0e50c9 GPU/HW: Add field for software renderer drawing 2025-11-21 00:45:17 +10:00
Stenzek
012c7de231 GPU/HW: Slightly rearrange data fields
Make space for software renderer flag.
2025-11-21 00:38:03 +10:00
Stenzek
aecdfd5a1d GPU: Align the memory allocation rather than the class 2025-11-21 00:29:42 +10:00
Stenzek
defbe7061b GameDB: Set DisableAllBordersCrop for Alundra 2
I'd expect there'd be a good few others too.
2025-11-20 14:21:25 +10:00
Stenzek
b9571a2371 GameDatabase: Add DisableAllBordersCrop trait 2025-11-20 14:19:42 +10:00
Stenzek
e7862b9ca7 Qt: Prefer eliding source over the middle of the binding
Makes arrows more readable.
2025-11-20 14:16:33 +10:00
Anderson Cardoso
542a2cf0d5 Atualização Português do Brasil (#3631)
Atualizado para a última versão.
Pequenas alterações de contexto no geral.
2025-11-20 14:03:43 +10:00
zkdpower
c8a2f931a5 Update the Simplified-Chinese Translation. (#3630) 2025-11-20 14:03:36 +10:00
Davide Pesavento
b949c17cc8 Qt: Improve text elision in InputBindingWidget (#3629) 2025-11-20 14:03:29 +10:00
Stenzek
bea07e71af Updater: Set default title
Avoid any potential flicker.
2025-11-20 13:47:35 +10:00
Stenzek
4a5e17273b Updater: Close button should be disabled 2025-11-20 13:47:10 +10:00
Stenzek
942422babb Updater: Set application icon 2025-11-20 13:41:24 +10:00
Stenzek
bda75db0fa Updater: Compute window size dynamically 2025-11-20 13:41:11 +10:00
Stenzek
65ddf1a9f8 Updater: Make high DPI aware 2025-11-20 13:12:56 +10:00
Stenzek
8f5a1fdcf0 Updater: Replace incorrect ANSI Win32 calls 2025-11-20 13:10:30 +10:00
Stenzek
acadbffe1c Achievements: Allow overriding host through config
[Cheevos]
Host = http[s]://servername
2025-11-17 22:33:37 +10:00
Stenzek
16e56d7824 Qt: Use icon text instead of duplicate actions 2025-11-16 13:35:24 +10:00
Davide Pesavento
e4d9bed880 Qt: Get rid of the last few QMenu::exec() (#3628)
Completes c025da4e5c
2025-11-16 12:46:15 +10:00
Stenzek
483f9ba41b Qt: Allow overriding cover placeholder image 2025-11-16 02:24:25 +10:00
Stenzek
d5037f1242 Qt: Remove setDesktopFileName() icon workaround
No longer needed since XDG toplevel icon is a thing. Don't care about
compositors other than KWin.

Keeping it around was also causing KDE to report an incorrect title
above the windows in the taskbar, anyway.
2025-11-16 02:22:52 +10:00
Stenzek
4d9f31890a Qt: Use icon theme enum for sort icons 2025-11-16 02:02:19 +10:00
Stenzek
a293792385 Qt: Remove a bunch of old/unused resources 2025-11-16 02:02:19 +10:00
Stenzek
f6976c4888 Qt: Remove unused function 2025-11-16 02:02:19 +10:00
Stenzek
63b99a647e Qt: Use theme icons in Memory Card Editor 2025-11-16 02:02:19 +10:00
Stenzek
1e57a5b94e Qt: Make the memory card modified state more obvious 2025-11-16 01:40:47 +10:00
Stenzek
f5bd7c1b01 Qt: Don't include calling function name in Qt logs
It's redundant.
2025-11-16 01:40:47 +10:00
Stenzek
085c02d495 Qt: Add more actions to toolbar (hidden by default)
Media Capture, Memory Editor, Memory Scanner
2025-11-16 01:40:47 +10:00
Stenzek
5a26f38213 Qt: Add icons to tools menu actions 2025-11-16 01:40:47 +10:00
Stenzek
c396f0ab8d Qt: Set game icon as window icon in Game Properties 2025-11-16 01:40:33 +10:00
Stenzek
b3385094f9 Qt: Provide a central point for getting the app logo
And ensure it's using high DPI.
2025-11-16 01:32:06 +10:00
Stenzek
75aee64772 Qt: Set appropriate window icons for subwindows
Too bad it won't work on most Wankland compositors, too bad.
2025-11-16 00:50:21 +10:00
Stenzek
67208460f4 ImGuiOverlays: Tidy up font weight in OSD 2025-11-16 00:50:21 +10:00
Stenzek
8ce216e42c Qt: Improve readability of changed bytes in memory view 2025-11-16 00:50:21 +10:00
Stenzek
23d45a35db Data: Swap Roboto Mono for JetBrains Mono
Also move the font license/copyright to the main third-party file.

Most were OFL, not Apache anyway.
2025-11-16 00:50:21 +10:00
Stenzek
6c3c02f703 Qt: Use bundled fixed-width font where appropriate
Better than trying to juggle the differences between monospaced fonts on
different platforms.
2025-11-16 00:49:41 +10:00
Stenzek
87847ed248 Qt: Fix crash when changing toolbar icons
Regression from c025da4e5c
2025-11-16 00:49:41 +10:00
Stenzek
d45f630a56 Qt: Further tidy up for 4850471 2025-11-16 00:49:40 +10:00
Davide Pesavento
48504711cd Qt: Remove a few more instances of QDialog::exec() (#3623) 2025-11-15 23:15:03 +10:00
Stenzek
e3a044a8a4 Log: Move FastWrite() into macro
That way the format args can be packed inside the conditional,
potentially outside of the hot path.
2025-11-15 20:16:41 +10:00
Stenzek
b4f9bc794d InputManager: Remove setting of unused config variable 2025-11-15 17:47:45 +10:00
Stenzek
c8ef05a16d Qt: Fix non-native message boxes in Dark Fusion on MacOS 2025-11-15 17:47:14 +10:00
Stenzek
c5f60c13b3 Qt: Don't display two popup messages on card open failure 2025-11-15 17:40:47 +10:00
Stenzek
c025da4e5c Qt: Invoke popup menus asynchronously
And use the invokable overload for addAction() while we're at it.
2025-11-15 17:40:47 +10:00
Stenzek
b14c17b718 Qt: Set attributes on popup menus
Fixes extra border appearing in popup menus in Darker Fusion theme.
2025-11-15 17:40:47 +10:00
Stenzek
2bf14f84e0 Qt: Don't copy QtConcurrent DLL 2025-11-15 17:40:47 +10:00
Stenzek
3d6627c7a0 Qt: Speed up interface page creation
By deferring the loading of CJK fonts. Saves ~170ms on my machine.
2025-11-15 14:35:11 +10:00
Stenzek
b9b1b13fb3 Qt: QtConcurrent is no longer needed
Hasn't been in some time. Apparently I forgot to remove it.
2025-11-15 14:20:37 +10:00
Stenzek
754591f279 StringUtil: Add GetUTF8CharacterCount() 2025-11-15 14:20:36 +10:00
Stenzek
982035fbcc GPU: Remove implicit bool conversion 2025-11-15 14:06:44 +10:00
Stenzek
0edf71bd03 GPU: Fix 480i resolution display with force progressive 2025-11-15 13:09:24 +10:00
Stenzek
4c56f06ffe Qt: Style check boxes in Darker Fusion 2025-11-14 01:59:22 +10:00
Stenzek
3099f5f3d2 Qt: Fix game grid selection rect bottom/right edges 2025-11-13 23:45:00 +10:00
Stenzek
35e3d9a4d1 Qt: Get window sizes from OS instead of scaling Qt size
Qt's device independent sizes are a lossy transformation.

This stops our sizes from being potentially off by one with the "real"
window size.

Too bad it can't be done properly on Linux, see comment. Don't care.
2025-11-13 23:45:00 +10:00
Stenzek
d1f26eef3b Qt: Fix a bunch of implicit conversion warnings
Qt previously hid these... thanks Qt.
2025-11-13 23:45:00 +10:00
Stenzek
ef2086b2c3 Qt: Silence new warning from VS2026 2025-11-13 23:45:00 +10:00
Stenzek
df547195ae README: Bump VS version requirement to 2026 2025-11-13 23:45:00 +10:00
Stenzek
7e7e51db08 D3D12Device: Remove unused class member 2025-11-13 23:45:00 +10:00
Stenzek
d532acb39a Build: Use VS2026 build tools
GitHub runners don't have it yet, but it's a non-issue there as they're
using clang, not MSVC.
2025-11-13 23:45:00 +10:00
Stenzek
c953480ed5 Build: Use Unicode as default MSBuild character set
Apparently I forgot to change this ages ago...
2025-11-13 23:44:59 +10:00
Stenzek
65be533ad3 Build: Use C17 for MSBuild 2025-11-13 23:44:59 +10:00
Stenzek
fa793ce3ad Updater: Fix compiling in Unicode mode 2025-11-13 23:44:59 +10:00
Stenzek
34484d4f96 CDImageDevice: Fix compiling in Unicode mode 2025-11-13 23:44:59 +10:00
bl@ck_m@ge
e2cd5e79a1 GameDB: Max speedup cycles for Street Fighter Alpha 2 & 3 and Super Puzzle Fighter II (#3627) 2025-11-13 16:26:00 +10:00
bl@ck_m@ge
66c924e29e GameDB: Max speedup cycles for Bugs Bunny - Lost in Time & Bugs Bunny and Taz - Time Busters (#3626) 2025-11-12 15:01:57 +10:00
bl@ck_m@ge
a742164b6e GameDB: Increase cdromMaxReadSpeedupCycles for Discworld Noir (#3625) 2025-11-12 15:01:40 +10:00
Stenzek
29d5598de4 PostProcessing: Fix slang+overlay+odd shader count combination 2025-11-12 14:59:08 +10:00
Stenzek
6581e8e3bb PostProcessing: Fix unscaled input sizes if first stage disabled 2025-11-12 14:59:08 +10:00
Stenzek
cad8b43763 PostProcessing: Fix starting with all stages disabled 2025-11-12 14:59:07 +10:00
Stenzek
fa965cf9f2 Qt: Use delegate for drawing covers
More efficient, less memory usage. Also adds a border around the covers
to indicate what is selected.
2025-11-11 23:32:05 +10:00
Stenzek
a301066926 Qt: Use QSizeF for device scaled sizes
More consistent with Qt internally.
2025-11-11 23:32:05 +10:00
Stenzek
fc97cf514c PostProcessing/slang: Flip textures if using OpenGL
Fixes them being sampled upside down.
2025-11-11 23:31:53 +10:00
Stenzek
3a1e8fe7a1 PostProcessing: Load shaders even if disabled
Gets rid of the lag when toggling on and off.
2025-11-11 23:20:28 +10:00
Stenzek
a9b9e8952d PostProcessing: Rename Enabled -> StageEnabled
Less chance of conflicting with shader config keys.
2025-11-11 22:52:12 +10:00
Anderson Cardoso
c06e4fea0e Atualização Português do Brasil (#3624)
Atualizado para a última versão.
2025-11-11 22:37:17 +10:00
Ariel Nogueira Kovaljski
0b2865730c Qt, FullscreenUI, PostProcessing: Add shader enable/disable toggle. (#3621)
* Qt, FullscreenUI, PostProcessing: Add shader enable/disable toggle.

Allows enabling/disabling individual shaders in a post processing chain. Unlike removing, disabling preserves custom parameter values.

* Use `Qt::ItemIsUserCheckable` flag for shader list
2025-11-11 22:36:55 +10:00
Stenzek
475b69baa9 Qt: Save/restore painter state in achievements delegate 2025-11-09 22:50:52 +10:00
Stenzek
013cce51c9 Qt: Return size hint for covers 2025-11-09 22:50:52 +10:00
Stenzek
cb609fc6b2 ImGuiOverlays: Polish frame time graph 2025-11-09 22:48:52 +10:00
Stenzek
639aa3c7fc ImGuiOverlays: Fix inconsistent font weight 2025-11-09 22:48:51 +10:00
Stenzek
a1a763cead GameDB: Set tolerance for Tekken 3
Stops polygon glitches when characters go partially offscreen,
probably bit manipulation again.
2025-11-09 22:48:51 +10:00
Stenzek
127cc70ba1 GameDB: Enable PGXP-CPU for Tekken 3
Game fudges vertices by small amounts. Still noticeable, but at least
the Z gets perserved now.
2025-11-09 15:43:46 +10:00
Stenzek
bdeeecefa7 GPU/HW: Clamp after round with round upscaling fix
Stops coordinates possibly ending up off by one, which is mostly
noticeable with sprites in the Crash Bandicoot series.
2025-11-09 15:07:23 +10:00
Stenzek
361bcde48b FullscreenUI: Fix loading screen progress going negative
Mainly during shader compilation, because it uses RenderLoadingScreen()
directly.
2025-11-09 14:38:24 +10:00
Stenzek
26323f4419 GPU/HW: Fix incorrect clamp UV state on setting change 2025-11-09 14:15:01 +10:00
Stenzek
4a246a74a2 GPU: Avoid unnecessary postfx source preprocess when upscaling 2025-11-08 13:04:11 +10:00
Stenzek
63d5c34242 System: Fix use of moved string in error path 2025-11-08 13:04:11 +10:00
Davide Pesavento
bf0c0fd95a GameDB: Decrease cdromMaxReadSpeedupCycles for AITD4 and Dino Crisis 2 2025-11-08 13:03:52 +10:00
Davide Pesavento
540e02a2e6 GameDB: Add various comments 2025-11-08 13:03:52 +10:00
Davide Pesavento
652ce9ef3a GameDB: Set DisableFastForwardMemoryCardAccess for Broken Sword II 2025-11-08 13:03:52 +10:00
Davide Pesavento
fbffdbc960 GameDB: Disable widescreen for Digimon World 2025-11-08 13:03:52 +10:00
Davide Pesavento
326016d1dd GameDB: Set max speedup cycles to 35k for Alundra 2 2025-11-08 13:03:52 +10:00
zkdpower
2059e9bbac Update the Simplified-Chinese Translation. (#3619) 2025-11-08 13:03:40 +10:00
bl@ck_m@ge
00444fd912 GameDB: Max speedup cycles for Discworld II (#3618) 2025-11-08 11:21:21 +10:00
Davide Pesavento
62054ba97c Qt: Fix canceling shader selection dialog (#3617) 2025-11-08 11:21:18 +10:00
Víctor "IlDucci
c2737f953a Spanish (Spain) translation update 2025/11/07 (#3616)
- Translated new terms just so I can return to monthly updates at the beginning or end of each month.
- Removed obsolete entries.
2025-11-08 11:21:02 +10:00
Daniel Nylander
859e1908bd Updated Swedish translation (#3614)
* Updated Swedish translation

* Updated Swedish translation
2025-11-08 02:00:58 +10:00
Anderson Cardoso
93f4e40bfc Ajuste (#3615)
Pequeno ajuste na mensagem OSD de desafio descontextualizada.
2025-11-08 02:00:35 +10:00
Stenzek
c00428669b Qt: Improve shader add dialog
- Use icon instead of text.
- Fix duplicated subdirectory nodes.
- Collapse single item nodes.
- Add on double-click.
2025-11-07 23:03:01 +10:00
Stenzek
de250b86c9 Qt: Increase spacing in game list toolbar 2025-11-07 22:23:28 +10:00
Stenzek
e4797b1ca9 Qt: Add 'Open Directory' button to post-processing settings 2025-11-07 22:20:52 +10:00
Stenzek
ac30cf341b GPU: Display emulated GPU usage in stats 2025-11-07 21:44:50 +10:00
Stenzek
242280d6ed GPU: Rearrange and reduce struct padding 2025-11-07 21:44:50 +10:00
Stenzek
3e25958477 Qt: Add dialog for adding postfx shaders
Better than an overflowing menu.
2025-11-07 21:44:50 +10:00
Stenzek
cb5ab7292e Qt: Fix qrc generation script ordering differently 2025-11-07 20:24:28 +10:00
Stenzek
a49b351db2 CMake: Bump SDL version requirement 2025-11-07 18:45:59 +10:00
Stenzek
8dc0b99ee2 VulkanDevice: Fix off-by-one in assertion 2025-11-07 18:36:03 +10:00
Stenzek
082ba21640 Deps: Update versions
Update to SDL3 3.2.26
Update to Shaderc 2025.4
Update to DXCompiler 1.8.2505.32
Update to SPIV-Cross 1.4.328.1
Update to MoltenVK 1.4.0
2025-11-07 18:35:55 +10:00
Stenzek
8302a6b9e1 Deps: Remove unused CMake argument 2025-11-07 18:27:41 +10:00
Stenzek
d797ca4839 Deps: Don't build qtdeclarative
See previous commit.
2025-11-07 18:27:41 +10:00
Stenzek
9ed5254293 Deps: Patch Linguist to build without Qt Quick
Quick/Declarative takes way too long to build on the CI, and insane
amounts of disk space.
2025-11-07 18:27:40 +10:00
Stenzek
28b911137b Deps: Bump MacOS deployment target to 13.0 2025-11-07 18:27:40 +10:00
Davide Pesavento
dca565a2fe GameDB: Adjust crop area for Gran Turismo 2 (#3613) 2025-11-07 13:32:07 +10:00
Stenzek
fbc99916f8 PostProcessing/Slang: Remap and skip binding unused textures
Hopefully keep us under the limit where it might otherwise go over.
2025-11-07 13:28:30 +10:00
Anderson Cardoso
51726e3be2 Atualização Português do Brasil (#3612)
Atualizado para a última versão.
2025-11-07 04:33:34 +10:00
bl@ck_m@ge
15d70ffb10 GameDB: Max speedup cycles for Discworld and Discworld Noir (#3611) 2025-11-07 04:30:26 +10:00
Stenzek
3d39fe2683 GPU: Don't crash if first frame is interlaced+black
Regression from dd0c7ec9fe.

Fixes crash in Destruction Derby Raw.
2025-11-06 20:14:11 +10:00
Stenzek
42cf66cbd7 FullscreenUI: Fix achievement points placement with short description 2025-11-06 20:14:11 +10:00
Stenzek
d598470de2 Scripts: Remove Flatpak manifest
As I noted in 41b8f2bf77 and #3454, I was
still undecided on how to proceed with the Flatpak going forward, and
was waiting on user feedback.

However, it appears that decision has been made for me. As of the time,
of writing, the page displays "This application is no longer available on
Flathub." "This application is no longer maintained on Flathub", and I
was not notified in any way of the removal.

No idea if this was automated (it's been ~3 months since the last push),
or manual, so I'm not pointing fingers at anyone here. But it is still
completely unprofessional on flathub's part. No other distributor would
remove applications without notifying the developer. Combined with the
constant workflow/CI breakage, new requirements being added and enforced
with little notice, and delisting of anything more than a couple years
old, I would recommend to any application developers considering
flatpak/hub and don't heavily use it themselves: don't, it ain't worth it.

No point keeping it around now, since it was only a copy of the AppImage
anyway, and if I recall correctly there's other tools that can bwrap an
AppImage if you really desire. But IMO the security argument is kinda
weak, if you don't trust the code you're running, don't run it. The app
is still interacting with the rest of the OS regardless...
2025-11-06 20:13:51 +10:00
Stenzek
df4d04c868 Qt: Style patches widget on Mac 2025-11-06 00:11:44 +10:00
Stenzek
8b217b5cc1 GPU: Fix OSD reporting of non-interleaved interlaced resolution 2025-11-05 16:04:10 +10:00
Stenzek
dd0c7ec9fe GPU: Insert null field buffer if display disabled
Don't throw away all buffers. 240p Test Suite flips display disabled
during vblank every frame.
2025-11-05 16:03:34 +10:00
Stenzek
f9cab709bd INISettingsInterface: Use case sensitive storage
Need to replace SimpleIni at some point, want to move the settings
interface to use string_views.
2025-11-05 13:13:17 +10:00
Stenzek
a22d3a794b Qt: Style more widgets in Darker Fusion 2025-11-05 02:38:01 +10:00
Stenzek
d58f2d0222 Qt: Make auto/clear bindings buttons QPushButtons
On the Darker Fusion theme they don't look nearly as ass, so no need to
use QToolButtons here.
2025-11-05 01:42:49 +10:00
Stenzek
14481affba Qt: Bring toolbar checked background closer to combo background 2025-11-05 01:36:10 +10:00
Stenzek
d6f4fc7f18 PostProcessing: Ensure input buffer matches present format 2025-11-05 01:31:01 +10:00
Stenzek
a88cfbee67 PostProcessing/slang: Raise error if too many textures are bound 2025-11-05 01:30:57 +10:00
Stenzek
7080e98bc1 PostProcessing/slang: Don't balk at duplicate option names
Apparently some shaders are like this.
2025-11-05 01:11:06 +10:00
Stenzek
a8e922c458 Qt: Improve Darker Fusion style
Style more elements consistently.
2025-11-05 00:52:04 +10:00
Stenzek
de2e89ea90 Settings: Ensure slang shaders subdirectory is created 2025-11-05 00:51:45 +10:00
Stenzek
cebb1348ab FullscreenUI: Fix button-held colour in menus 2025-11-04 22:00:50 +10:00
Stenzek
2a350960bf FullscreenUI: Fix misdetection of some light themes 2025-11-04 22:00:39 +10:00
zkdpower
a5e20511d9 Update the Simplified-Chinese Translation. (#3606) 2025-11-04 13:44:49 +10:00
Davide Pesavento
0c7e8f3d87 Qt: Fix overlapping widgets in cheat settings (#3607) 2025-11-04 13:44:38 +10:00
Davide Pesavento
a1889a20bb Qt: Add standard shortcut to open settings (#3608)
That is "⌘ ," on macOS.

Also fix a couple of menu roles.
2025-11-04 13:44:18 +10:00
Davide Pesavento
e91db67c79 Qt: Reload icons and tooltips when game list rows change (#3609) 2025-11-04 13:43:47 +10:00
Stenzek
520502dab0 FileSystem: Fix RealPath() with relative paths 2025-11-02 22:40:39 +10:00
Stenzek
f5fc2474a4 Qt: Resolve command line paths before autobooting
Increase the chances of Game Properties still functioning.
2025-11-02 22:11:32 +10:00
Stenzek
70352b69ce Qt: Center windows when they don't have saved positions
Stupid Linux decides to spawn it in the top-left corner of the screen
otherwise.
2025-11-02 22:07:07 +10:00
Stenzek
b4d71cb66c Qt: Save position of settings windows 2025-11-02 21:56:10 +10:00
Stenzek
b0689d54e6 FullscreenUI: Move loading screen progress callback into namespace 2025-11-02 21:32:24 +10:00
Stenzek
85275a1965 Qt: Add missing help text in Interface Settings 2025-11-02 17:34:43 +10:00
Stenzek
49a1446fbe Common: Fix SSE2 build
Tired of having to support processors that are old enough to drink, but
every time I try to remove it someone complains.
2025-11-02 17:12:02 +10:00
Stenzek
5ca35363d4 CPU/Recompiler: Set up frame pointer on Windows ARM64
Required by the ABI. Not tested yet.
2025-11-02 16:30:20 +10:00
Stenzek
042bc7945c ImGuiManager: Use different OSD title/text colours
And add an early out when there's no messages.
2025-11-02 16:30:20 +10:00
Stenzek
b04b87a730 PostProcessing: Use titled OSD messages 2025-11-02 16:30:20 +10:00
Stenzek
4ec6752fe7 GPUPresenter: Handle padding for unscaled/slang input 2025-11-02 16:30:20 +10:00
zkdpower
5da178eb28 Update the Simplified-Chinese Translation. (#3605) 2025-11-02 16:30:09 +10:00
Stenzek
9a5e0c9028 ShaderGen: Fix ImGui rendering with Vulkan 2025-11-01 21:07:37 +10:00
Stenzek
77b1abf5e3 MemoryCard: Fix off-by-one reporting in card number 2025-11-01 16:30:07 +10:00
Stenzek
8a732ded41 PostProcessing: Support loading slang shaders/presets
Compatibility will likely vary quite a bit.
2025-11-01 16:30:07 +10:00
Stenzek
81fb8014a1 PostProcessing: Support unscaled input
Needed for slang support.
2025-11-01 16:30:07 +10:00
Stenzek
fc618b8b62 SPIRVModule: Add class for iterating/manipulating SPIR-V 2025-11-01 16:30:07 +10:00
Stenzek
eb0a8890e2 MetalDevice: Fix creating mipmapped textures with generate flag 2025-11-01 16:30:07 +10:00
Stenzek
d06f306f8f GPUDevice: Ensure clear is committed in MakeReadyForSampling() 2025-11-01 16:30:07 +10:00
Stenzek
af5c3fac42 GPUDevice: Fix mipmap generation on targets
Mainly DX12 that was broken.
2025-11-01 16:30:07 +10:00
Stenzek
9a5eadd86a GPUDevice: Add SRGBA8 texture format 2025-11-01 16:30:07 +10:00
Stenzek
08317d9478 GPUDevice: Set fixed names for UBO/push constants in SPV transpiling
Ensures that name-based binding in GL succeeds.
2025-11-01 16:30:07 +10:00
Stenzek
4729e22573 GPUDevice: Handle non-contiguous texture bindings in SPV transpiling 2025-11-01 16:30:07 +10:00
Stenzek
b43111f36e GPUDevice: Remap input attributes when transpiling to HLSL 2025-11-01 16:30:06 +10:00
Stenzek
47c820455d GPUDevice: Add MultiTextureAndUBOAndPushConstants pipeline layout 2025-11-01 16:30:06 +10:00
Stenzek
916b23f85c GPUDevice: Use separate buffer for push constants 2025-11-01 16:30:06 +10:00
Stenzek
6848f07c57 GPUDevice: Combine draw and push constant functions
Prevents us from being in a situation where the push constants haven't
been uploaded because we couldn't allocate a descriptor or something
else which forced a flush.
2025-11-01 16:30:06 +10:00
Stenzek
683ccbf216 GPUDevice: Swap ImGui rendering to use UBO 2025-11-01 16:30:06 +10:00
Davide Pesavento
863b9b10a0 Qt: Minor layout fixes in analog controller binding widget (#3604) 2025-11-01 16:30:00 +10:00
Stenzek
5de231ca5a System: Fix regtest build
Keep forgetting I'm using these functions here.
2025-11-01 14:46:26 +10:00
Stenzek
899d500d35 GPU: Fix compile warning 2025-11-01 14:44:57 +10:00
Stenzek
3e6dd9b9a2 System: Simplify and polish more OSD messages 2025-11-01 14:32:59 +10:00
Davide Pesavento
22220853de Qt: Fix recommended value for "Challenge Indicators" (#3603)
The default was changed in babf4201d8
but the help text wasn't updated to match.
2025-11-01 14:32:47 +10:00
Stenzek
0d4ffde7c5 Qt: Allow command line boot of device path
Untested.
2025-11-01 01:47:02 +10:00
Stenzek
529da22ef5 System: Use new OSD message variants 2025-11-01 01:44:25 +10:00
Stenzek
b483d2f61f ImGuiManager: Add title variants for OSD messages 2025-11-01 01:43:45 +10:00
Stenzek
dc5b57aa42 Qt: Missed a couple of shutdown -> close messages 2025-11-01 00:14:24 +10:00
Stenzek
c33354e2d6 Qt: Don't hold game list lock on popup 2025-11-01 00:14:20 +10:00
Stenzek
0841ab4b92 Qt: Fix disc swap from game list incorrectly pausing 2025-11-01 00:14:20 +10:00
Stenzek
b797aae28b GPU: Fix a couple instances of reading wrong thread settings 2025-11-01 00:14:04 +10:00
shikulja
a929aaf194 Update Russian translation (#3601)
* Update ts

* Update Russian translation

* more corrections
2025-11-01 00:13:53 +10:00
bl@ck_m@ge
bfc6da2574 GameDB: Disable disc speedup on MDEC for Warcraft II (#3600) 2025-10-31 12:50:13 +10:00
Davide Pesavento
97db72cb2c Achievements: Fix display of game completion time (#3599) 2025-10-31 12:50:05 +10:00
Davide Pesavento
5a49db0717 Qt: Reflect DisableFastForwardMemoryCardAccess trait in the settings UI 2025-10-31 12:49:44 +10:00
Davide Pesavento
d0bbf8ca18 GameDB: Set DisableFastForwardMemoryCardAccess for Tales of Destiny 2025-10-31 12:49:44 +10:00
Anderson Cardoso
5f6b690b9d Atualização Português do Brasil (#3597)
Atualizado para a última versão.
2025-10-31 12:49:16 +10:00
zkdpower
7bba98af3d Update the Simplified-Chinese Translation. (#3596) 2025-10-31 12:49:09 +10:00
Stenzek
8c0878882f Qt: Normalize shut down labels 2025-10-31 12:47:47 +10:00
Stenzek
88802e0d09 GameList: Fix achievement game ID not set for disc sets 2025-10-31 12:44:32 +10:00
Stenzek
b8764e8c1b Qt: Add exit specific message for confirmation dialog 2025-10-29 23:33:28 +10:00
Stenzek
d54234444f Qt: Don't need these functions defined in the header 2025-10-29 23:33:28 +10:00
Stenzek
cd8d6d8387 Qt: Remove game icon extra size
Looks worse because the icon is significantly larger than the text.
2025-10-29 23:33:27 +10:00
Stenzek
f6cdf95b6e Qt: Fix positioning of game list achievements icon 2025-10-29 23:33:27 +10:00
Stenzek
1999b0df6c GameDB: Set DisableFastForwardMemoryCardAccess for Twisted Metal 4 2025-10-29 23:33:27 +10:00
Stenzek
c5d93583da GameDatabase: Add DisableFastForwardMemoryCardAccess trait 2025-10-29 23:33:27 +10:00
Stenzek
efa6e4aeca Common: Use NSAlert for assertion failures/panics 2025-10-29 23:33:27 +10:00
zkdpower
94cfc9ba2e Update the Simplified-Chinese Translation. (#3594) 2025-10-29 23:33:14 +10:00
Davide Pesavento
458ad1334c Qt: Take header width into account for all columns
Seemed inconsistent to do it only for a subset of columns.

Also respect DPR for region icons.
2025-10-29 22:37:29 +10:00
Davide Pesavento
59d0f3c01c Qt: Fix game icon size and row height in game list 2025-10-29 22:37:29 +10:00
Davide Pesavento
49762aa493 Qt: Fix column width estimation in game list
More accurately copy how Qt calculates the width (we were
underestimating it in some cases).
2025-10-29 22:37:29 +10:00
Davide Pesavento
e89ab8311e Qt: Misc code cleanups 2025-10-29 22:37:29 +10:00
Stenzek
d82ae473a4 CI: Bump minimum macOS version to 13.0
Qt's minimum is 13, and I don't particularly feel like debugging issues
created if I work around it for an OS that hasn't been supported in over
a year.
2025-10-29 21:34:32 +10:00
Stenzek
a038c88d24 dep/reshadefx: Work around inability to discard in function in DXC
Need to fix this in SPIRV-Cross instead.
2025-10-29 21:21:33 +10:00
Stenzek
fcde8c7765 dep/reshadefx: Cherry-pick upstream 74e95dd 2025-10-29 21:21:32 +10:00
Stenzek
05701fef41 GPUDevice: Make dyn libs public 2025-10-29 21:21:32 +10:00
Stenzek
cff3ece1a7 VulkanDevice: Fix incorrect struct type 2025-10-29 21:21:32 +10:00
Stenzek
2c2fb1d496 D3D12Device: Fix incorrect StencilBeginningAccess/StencilEndingAccess 2025-10-29 21:21:32 +10:00
Stenzek
b858fe5e94 GPUDevice: Display OSD message if debug settings are enabled 2025-10-29 21:21:32 +10:00
Stenzek
24ae4a5d24 FullscreenUI: Fix uniform push before pipeline set 2025-10-29 21:06:36 +10:00
Stenzek
eefcd90714 GPU/HW: Avoid some redundant calls in Metal 2025-10-29 21:06:36 +10:00
Stenzek
0fec148e02 GPU/HW: Add missing padding to UBOs 2025-10-29 21:06:36 +10:00
Stenzek
a44c8466eb CMake: Fix Xcode project debugging
No more manual resource copying.
2025-10-29 21:06:36 +10:00
Stenzek
de08a2fff5 CMake: Only remap source path in Release builds
Don't make debugging painful.
2025-10-29 21:06:36 +10:00
Stenzek
5a7094b812 Achievements: Use consistent icon style in list 2025-10-25 14:02:36 +10:00
Stenzek
5818a05be3 Achievements: Add point count to unlock popup 2025-10-25 13:58:46 +10:00
Stenzek
b237604ac7 GPUDevice: Don't log warning for WARP driver 2025-10-25 13:58:46 +10:00
Anderson Cardoso
eb23999d6d Atualização Português do Brasil (#3593)
Atualizado para a última versão
2025-10-25 13:58:30 +10:00
zkdpower
7414ed92e4 Update the Simplified-Chinese Translation. (#3592) 2025-10-25 13:58:22 +10:00
Stenzek
326a6e391f CMake: Fix scmversion.cpp always updating on Mac 2025-10-21 23:17:43 +10:00
Stenzek
6432ac103f Qt: Fix non-rounded buttons in achievement login 2025-10-21 22:55:08 +10:00
Stenzek
8775ca0ff9 Qt: Convert more message boxes to window modal 2025-10-21 22:37:16 +10:00
Stenzek
db7598ffa6 Qt: Use message box wrapper functions 2025-10-21 22:34:09 +10:00
Stenzek
d9e363f848 Qt: Add message box helpers
Because the standard Qt message boxes look terrible on MacOS.

Using the helpers prevents the stylesheet from breaking liquid ass.

Also styles the dialog so the title isn't hidden.
2025-10-21 22:33:21 +10:00
Stenzek
2fb3773591 Qt: NativeThemeStylesheetNeedsUpdate() should not apply to Fusion 2025-10-21 21:16:35 +10:00
Stenzek
0776e2f9c3 Qt: Clear style sheet before applying theme 2025-10-21 21:15:23 +10:00
Stenzek
e48649bc26 FullscreenUI: Remove unused variable 2025-10-20 20:56:13 +10:00
Stenzek
9fa8b17cb5 FullscreenUI: Fix a couple of missing strings 2025-10-20 17:55:35 +10:00
Stenzek
3d6c042ffd FullscreenUI: Fix missing lock for settings read 2025-10-20 17:55:35 +10:00
Stenzek
93b4c3467f FullscreenUI: Fix missing logo on landing page 2025-10-20 17:55:35 +10:00
Stenzek
cab6669eb7 DMA: Speed up RAM write with CDROM speedup
Might make it ever-so-slightly more reliable. The number of cycles is
pretty small though, ~500 or so.
2025-10-20 17:55:35 +10:00
Stenzek
751781325c Settings: Remove CD speedup above 6x
In the majority of games it just crashes. Maximum is safer.
2025-10-20 17:55:35 +10:00
zkdpower
b4a868c5c9 Update the Simple-Chinese Translation to latest. (#3591) 2025-10-20 17:55:04 +10:00
Mario
9977e1dca0 FullscreenUI: Disable rewind options when runahead is enabled (#3589) 2025-10-19 12:29:11 +10:00
Stenzek
aa980a44cd GPU: Don't save settings to save state 2025-10-19 01:33:37 +10:00
Stenzek
a52020bcfc DMA: Reduce linked list header read time
Closer to console.
2025-10-19 01:33:34 +10:00
Stenzek
f2dd91c874 RegTest: Compile fix 2025-10-18 23:12:15 +10:00
Stenzek
9ca1c9730f Mini: Compile fix 2025-10-18 22:57:50 +10:00
Stenzek
476c1c5b9d FullscreenUI: Make OpenOrUpdateLoadingScreen() thread safe 2025-10-18 22:48:37 +10:00
Stenzek
45d3c66579 FullscreenUI: Simplify game properties state
Only allow scanned games to be changed like the Qt UI, makes everything
much simpler.
2025-10-18 22:48:37 +10:00
Stenzek
32aa86a608 FullscreenUI: Move achievements to its own file 2025-10-18 22:48:37 +10:00
Stenzek
bed758a75b FullscreenUI: Move translation strings to own file 2025-10-18 22:48:37 +10:00
Stenzek
10a7d8ad4d FullscreenUI: More scope clean up 2025-10-18 22:48:37 +10:00
Stenzek
f4f8aa587e FullscreenUI: Defer more resource loads
That way we're not compiling the background shader (if any) when we're
just using the pause menu.
2025-10-18 22:48:37 +10:00
Stenzek
cc2ee00681 FullscreenUI: Split game list into its own file 2025-10-18 22:48:37 +10:00
Stenzek
dc7a7ed6bb FullscreenUI: Split settings into its own file 2025-10-18 22:48:37 +10:00
Stenzek
ba28a3fb3c Achievements: Cache user badge path 2025-10-18 22:48:36 +10:00
Stenzek
2bc387fe33 FullscreenUI: Fix returning to window that was open
e.g. disc swap hotkey
2025-10-18 22:48:36 +10:00
Stenzek
b1cd5625f2 System: Don't add to the pause timer when we're already paused 2025-10-18 22:48:36 +10:00
Stenzek
983cde33bc FullscreenUI: Make notifications/toasts thread-safe 2025-10-18 22:48:36 +10:00
Stenzek
8c25144abb FullscreenUI: Always initialize widgets
That way notifications etc can be used independently of FSUI.
2025-10-18 22:48:36 +10:00
Stenzek
9cbcf78090 FullscreenUI: Move transition handling to widgets file 2025-10-18 22:48:36 +10:00
Stenzek
e36ea9e3a8 FullscreenUI: Remove more redundancy 2025-10-18 22:48:36 +10:00
Stenzek
fab4b05bc8 FullscreenUI: Remove ImGuiFullscreen namespace 2025-10-18 22:48:36 +10:00
Stenzek
836fd9bcfb FullscreenUI: Make file naming consistent 2025-10-18 22:48:36 +10:00
Stenzek
1fbf083987 FullscreenUI: Move ImGuiFullscreen to core 2025-10-18 22:48:36 +10:00
Stenzek
2c03fb915c ImGuiManager: Use static key map
No need to dynamically look it up now, since we're using USB key codes
everywhere.
2025-10-18 22:48:36 +10:00
Stenzek
5653f8dd64 ImGuiManager: Don't let non-imgui keys through
Stops hotkeys bound to some keys from activating in pause menu.
2025-10-18 22:48:36 +10:00
Stenzek
bae05a7f67 SDLInputSource: Change default for WGI to off
Changed in SDL 3.2.24.
2025-10-18 22:48:36 +10:00
Stenzek
7deb374cf9 Deps: Hopefully work around path length limits 2025-10-16 20:50:37 +10:00
Stenzek
33a342751a Deps: Remove build directory after each library
Hopefully work around running out of space on the runners.
2025-10-16 19:23:56 +10:00
Stenzek
f2291eaaff Deps: Build Qt Declarative/ShaderTools
Needed for Linguist now.
2025-10-16 18:19:52 +10:00
Stenzek
8520e3f94d System: Work around lupdate bug causing hang 2025-10-16 17:55:45 +10:00
Stenzek
a49d0b665f PostProcessing/GLSL: Skip recompile on target size change
This is specific to reshade.
2025-10-16 16:32:26 +10:00
Stenzek
41b8f2bf77 CI: Remove Flatpak builds
Now they're getting random timeouts updating the SDKs, just tired of it.

The workflow to publish is still in the tree, but I haven't updated
Flathub in months, and it's arguably kinda pointless since the Flatpak
is literally just a wrapper of the AppImage now...

So, still undecided what to do about that. If you are using it, please
let me know, because in the months that it's been deprecated only a
couple of people mentioned that they were using it. Therefore, as best I
can tell there's basically no userbase.
2025-10-16 16:00:18 +10:00
Stenzek
2a0fe0a753 GameDB: Add disc set for GT2 US
Match Europe/Japan.
2025-10-16 15:56:11 +10:00
Stenzek
bd6e747c65 GameDB: Fix serials for Black-Matrix + 2025-10-16 15:56:11 +10:00
Anderson Cardoso
e96a85d29f Atualização Português do Brasil (#3588)
Atualizado para a última versão
2025-10-15 19:32:40 +10:00
shikulja
70185cb693 Update Russian translation (#3587)
* Update ts

* purge ts

* Update Russian translation

* typo
2025-10-15 19:32:32 +10:00
Stenzek
2ff9c67c71 Qt: Replace table widget in Game List Settings 2025-10-15 19:16:24 +10:00
Stenzek
2b3c7e00c8 Qt: Initialize COM before Qt
Ensures we're consistent regardless of whether Qt initializes it or not.

Currently, it initializes it through OLE -> COM.
2025-10-15 19:07:13 +10:00
Stenzek
89e3ba29a5 Qt: Fix warning 2025-10-15 19:06:55 +10:00
Stenzek
3d2c3c919d GameList: Avoid a couple of heap allocations 2025-10-14 15:01:23 +10:00
Stenzek
a035c48721 GameList: Fall back to achievement badges for game icons 2025-10-14 00:16:39 +10:00
Stenzek
ac4634c289 Add StringPool and BumpStringPool classes 2025-10-14 00:06:56 +10:00
Stenzek
84806d3055 GameList: Use LockedFile class 2025-10-14 00:06:56 +10:00
Stenzek
e7f4034678 FileSystem: Add LockedFile helper class 2025-10-14 00:06:56 +10:00
Stenzek
8f0c9dd171 Qt: Fix disabled menu items in MacOS native theme 2025-10-14 00:06:50 +10:00
Stenzek
3c632c896d Qt: Fix hang on theme change on MacOS 2025-10-14 00:06:29 +10:00
Stenzek
114c26307d Qt: Fix initial button state in memory card editor 2025-10-13 18:29:03 +10:00
Víctor "IlDucci
a08996d55f Spanish (Spain) 2025/10/12 translation update (#3586)
- Translated the new strings.
 - Corrected major misunderstandings related to Safe Mode and RetroAchievements' hardcore mode.
 - Changed "shaders" translation from "sombreador" to the English word. Computer graphics shader's name has become a lost war to English.
2025-10-12 23:29:14 +10:00
Stenzek
8ed329ff1f Qt: Fix serial mismatch error when verifying 2025-10-12 23:28:24 +10:00
Stenzek
c117059c82 GPU/HW: Fix crash when preloading texture replacements 2025-10-12 13:40:51 +10:00
Stenzek
90e6078543 Cheats: Show OSD warning when parsing fails 2025-10-12 13:26:27 +10:00
Stenzek
ec96dd70f9 Qt: Don't use hash cheat list when PPFs exist 2025-10-12 13:21:00 +10:00
Stenzek
c4c6357be3 Qt: Improve column width behaviour in cheat list
Prevent long cheats being truncated after addition/editing.
2025-10-12 13:08:07 +10:00
Stenzek
286f9dddec Qt: Validate cheats before saving edits 2025-10-12 12:38:37 +10:00
Stenzek
bfcd3d4220 Cheats: Strip whitespace on code body when editing 2025-10-12 12:37:11 +10:00
Stenzek
08556f3143 Qt: Normalize line endings in cheat edit dialog 2025-10-12 12:16:40 +10:00
Stenzek
f8c720a5ef Qt: Tab should change focus in edit cheat dialog 2025-10-12 12:04:43 +10:00
Stenzek
adbfe7f184 Qt: Display hash in game properties summary 2025-10-12 12:04:25 +10:00
Stenzek
00042a5ea4 Qt: Default to native theme on MacOS 2025-10-12 01:09:48 +10:00
Stenzek
a654ce63bf Qt: Style QMenu and QToolButton with stylesheet on MacOS
Using a QStyleProxy would be preferable, but this is fast enough and
stops the native theme from looking so ugly.
2025-10-12 01:09:47 +10:00
Stenzek
e0e245d59a Qt: Swap most out-of-toolbar QToolButtons to QPushButtons
Styles better on MacOS.
2025-10-12 01:09:47 +10:00
Stenzek
b5e1087e2a Qt: Fix submenu accessibility on MacOS 2025-10-12 01:09:47 +10:00
Stenzek
f0f7475c39 FullscreenUI: Modernize blocking loading dialog
And add a time estimate.
2025-10-11 18:08:20 +10:00
Stenzek
a1c177402b CI: Fix AppImage build (again)
So tired of this silly OS...
2025-10-11 15:43:50 +10:00
Stenzek
4587c45d93 MediaCapture: Improve FFmpeg load error message 2025-10-11 14:51:24 +10:00
Stenzek
505753da48 Deps: Update to FFmpeg 8.0 2025-10-11 14:51:24 +10:00
Stenzek
3552a5b001 Qt: Fix rare bug where covers get stuck in loading state
When quickly changing cover scale.
2025-10-11 12:25:16 +10:00
Stenzek
50a9f04dd9 dep/rcheevos: Bump to 6755915 2025-10-10 20:23:29 +10:00
Stenzek
330eb057d5 Scripts: Hopefully fix AppImage build 2025-10-09 23:06:12 +10:00
Stenzek
29d73cb18c GameDB: Remove PGXP vertex cache from Touge Max G
No longer needed with the earlier fix. But add CPU mode, since that
helps the sprite jitter.
2025-10-09 23:06:12 +10:00
Stenzek
4d516c5247 dep/rcheevos: Bump external client image URL buffer size
Works around invalid parameter being triggered on long usernames.
2025-10-09 23:06:12 +10:00
Stenzek
27d26794d9 CPU/GTE: Remove unnecessary struct padding 2025-10-09 23:06:12 +10:00
Stenzek
8bce5b0a55 CPU/PGXP: Make register writes more readable 2025-10-09 23:06:12 +10:00
Stenzek
05a58285aa CPU/PGXP: Handle SXYP mirror reads
Fixes PGXP on some parts of geometry in Legend of Legaia.

Also fixes broken PGXP in Boxing and Touge Max G.
2025-10-09 23:06:12 +10:00
Stenzek
cd37cd741c Deps: Update to Qt 6.10.0 2025-10-09 21:22:35 +10:00
Stenzek
00a2f5a2ce FullscreenUI: Fix crash opening settings
Regression from 76facb3. Derp.
2025-10-09 18:22:59 +10:00
zkdpower
550858104f Update the Simplified Chinese Translation. (#3585) 2025-10-08 20:57:56 +10:00
Daniel Nylander
c039a946fb Updated Swedish translation (#3584) 2025-10-08 20:57:32 +10:00
Stenzek
4f0d35c2ef VulkanDevice: Make current command buffer lookup consistent 2025-10-08 19:37:45 +10:00
Stenzek
97c49a9e36 CDImageDevice: Use g_settings for ignore host subcode 2025-10-08 19:31:59 +10:00
Stenzek
76facb3da7 FullscreenUI: Fix default value for theme 2025-10-08 19:28:32 +10:00
Stenzek
5afa6b2d67 Controller: Remove unused helper function 2025-10-08 19:28:14 +10:00
Stenzek
98761961bc Cheats: Remove unnecessary std::move() 2025-10-08 19:27:58 +10:00
Stenzek
dbf2849803 Misc: Move SettingInfo declaration to input_types.h
267b74c breaks on cross-compiled Linux otherwise, and I can't be
bothered to set it up locally to debug.
2025-10-07 01:31:20 +10:00
Anderson Cardoso
267b74cab8 Atualização Português do Brasil (#3583)
Atualizado para a última versão
2025-10-07 01:17:32 +10:00
Stenzek
7575050b00 Controller: Don't indirectly include settings.h 2025-10-07 01:14:06 +10:00
Stenzek
39eb2c564f Qt: Don't include git hash in window title
It's too verbose and meaningless to the user. Still shown in the about
dialog for reference purposes.
2025-10-07 01:14:06 +10:00
Stenzek
733df6a0ce Qt: Show screenshot in resume game popup 2025-10-06 13:45:48 +10:00
zkdpower
1b7e42920b Update the Simplified Chinese Translation to latest. (#3582) 2025-10-06 02:51:14 +10:00
Stenzek
3a806738b9 Qt: Fix cover title being clipped 2025-10-05 23:09:11 +10:00
Stenzek
848833b687 CI: Fix Windows build symbol upload 2025-10-05 01:32:50 +10:00
Stenzek
24a3dcb412 InputManager: Sync effect state on connection
Fixes mic/RGB LED not synchronizing on new device connection.

Apparently I forgot that it doesn't reload bindings, only when the
InputSource list changes.
2025-10-05 00:58:57 +10:00
Stenzek
e373be9fd3 CMake: Bump required dependency versions 2025-10-05 00:58:57 +10:00
Stenzek
4e797f398f CI: Remove redundant prefix on AppImage cross job 2025-10-05 00:58:55 +10:00
Stenzek
9cc29fb603 Qt: Use QSize throughout GameListWidget 2025-10-05 00:24:12 +10:00
Stenzek
7b991def42 Qt: Bump currently-visible covers to front on scale change
Fixes flicker when very quickly changing scales from small to large.
2025-10-05 00:17:35 +10:00
Stenzek
78db5addcd Qt: Fix flicker when changing cover size
By scaling images instead of tossing the whole cache.
2025-10-04 23:52:55 +10:00
Stenzek
f219c2ca98 AnalogController: Fix sync/readback value for vibration 2025-10-04 22:59:53 +10:00
Stenzek
1665cb6953 InputManager: Refactor and simplify vibration mapping
Now multiple devices can be bound if anyone wants to do that for some
reason...

Current strength will also synchronize on binding reload instead of
getting lost.
2025-10-04 22:53:36 +10:00
Stenzek
f57eeb349c CI: Simplify Windows/Linux workflows
Use matrix instead of duplicating.
2025-10-04 19:18:17 +10:00
Stenzek
22399c25a1 FullscreenUI: Fix localization of 'None' background 2025-10-04 19:17:32 +10:00
Stenzek
e6788b313e System: Add 'Runahead for Analog Input' option
Mitigates the performance impact of serializing PGXP state.
2025-10-04 19:17:31 +10:00
Stenzek
cf0b602476 Settings: Rearrange fields
To make space in the bitfield.
2025-10-04 19:17:31 +10:00
zkdpower
95e9cba79b Update the Simple-Chinese Translation to latest. (#3581) 2025-10-04 19:17:20 +10:00
Stenzek
3966a9eea7 System: Serialize PGXP state for runahead 2025-10-04 17:51:25 +10:00
Stenzek
10f9039dea Controller: Skip runahead replay when analog is unchanged
Slight CPU usage reduction at idle.
2025-10-04 17:44:33 +10:00
Stenzek
424f9a9db9 Controller: Simplify deadzone calculation
Use Pythagoras to measure distance from center. Fixes incorrect results
very close to the center.
2025-10-04 17:38:20 +10:00
Stenzek
1b49f82c98 Controller: Merge all binds into one index space
Simplifies things a bit.
2025-10-04 16:52:26 +10:00
Stenzek
9d8d81d092 InputManager: Only update vibration once per frame 2025-10-04 16:39:40 +10:00
Stenzek
f0c67e998b Controller: Remove GetInputOverlayIconColor()
Use the bind state instead.
2025-10-04 16:39:40 +10:00
Stenzek
3624474b91 Controller: Remove unused InAnalogMode() 2025-10-04 16:39:24 +10:00
Stenzek
2adf7a1663 CI: Bump MacOS runner to macos-15 + Xcode 26 2025-10-04 16:39:21 +10:00
Stenzek
570f0416b1 Deps: Bump to Qt 6.9.3 2025-10-04 13:51:25 +10:00
Stenzek
21c83440b3 Misc: Add error checking to LocalTime() 2025-10-04 13:51:25 +10:00
Stenzek
6cb727f383 GameDB: Disable auto analog in Alien Resurrection
Game enables analog mode itself, and ends up in a state where
vibration does not function until manually toggled if forced.
2025-10-03 00:49:49 +10:00
Stenzek
a048e092b2 Qt: Make LED settings clearer 2025-10-03 00:10:52 +10:00
Stenzek
982753d7ce Qt: Allow binding both active and inactive LED colours 2025-10-02 11:55:10 +10:00
Stenzek
cf8b1a58ca Qt: Re-introduce FlowLayout 2025-10-02 11:55:10 +10:00
Stenzek
ffa0e8d131 Qt: Refactor LED bindings
Make it more general and bindable to both the mode and RGB LED, that way
it can be used on Dualshock 4 as well.
2025-10-02 11:54:41 +10:00
Ariel Nogueira Kovaljski
51942df7dd Use DualSense Mic Mute LED for Analog Mode (#3574)
* Use DualSense Mic Mute LED for Analog Mode

* Fix function casing and move function call outside loop

* Refactored code to use binds

- `InputManager` no longer uses API specific logic
- The Mic Mute LED gets bound as `ModeLED = SDL-0/ModeLED` only for DualSense controllers
- Changed DualSense detection to use Vendor & Product ID
2025-10-02 11:54:13 +10:00
Stenzek
c790972265 System: Warn if geometry tolerance is not default 2025-09-30 18:18:22 +10:00
Stenzek
e5c17880cb Qt: Fix vibration binding not applying immediately 2025-09-29 00:48:17 +10:00
Stenzek
975b9b18e0 AnalogController: Fix inverted motor display in OSD 2025-09-29 00:48:17 +10:00
Stenzek
9807948ac1 Qt: Remove old vsync mode migration function
Been over a year.
2025-09-29 00:35:39 +10:00
Daniel Nylander
5c9e28f115 Updated Swedish translation (#3580)
* Updated Swedish translation

* Add files via upload
2025-09-28 23:03:59 +10:00
Stenzek
38bb240a44 Qt: Avoid extra string storage 2025-09-28 20:27:47 +10:00
Stenzek
a50997a554 Qt: Fix app icon ending up as null 2025-09-28 20:27:47 +10:00
Stenzek
3d4115613c Achievements: Fix unused variable warning 2025-09-28 20:27:47 +10:00
zkdpower
3fada38b57 Update the Simple-Chinese Translation to latest. (#3579) 2025-09-28 16:53:29 +10:00
Anderson Cardoso
0a25dd0693 Atualização Português do Brasil (#3578)
Atualizado para a última versão
2025-09-28 16:51:43 +10:00
Stenzek
eadca6cd7b Settings: Prefer widescreen patches over GTE hack
Since they tend to work better.
2025-09-28 16:43:34 +10:00
Stenzek
fa8a995d7e Cheats: Fix uninitialized data read in parsing 2025-09-28 16:43:34 +10:00
Stenzek
fb60691afc Cheats: Pack state in struct 2025-09-28 16:43:34 +10:00
Stenzek
c5d309f320 Settings: Avoid log.h include 2025-09-28 16:43:34 +10:00
Stenzek
6c1ee0ca87 Settings: Store custom aspect ratios in main key
What a pain. But allows patches to override aspect ratio to any
arbitrary value.
2025-09-28 16:43:34 +10:00
Stenzek
3832b39576 Qt: Fix disabling patches not removing empty ini 2025-09-28 16:43:34 +10:00
Stenzek
ea57a428f9 Qt: Don't use static storage for app icon
Wastes TLS space apparently.
2025-09-28 12:27:47 +10:00
Stenzek
daf5fee9ff Qt: Don't bother using worker for background resize
Ends up looking jankier.
2025-09-28 12:13:59 +10:00
Stenzek
50c9f63e8e Qt: Hackfix game list background on stylesheet themes 2025-09-28 12:13:43 +10:00
Stenzek
bb9dbf9a33 Qt: Avoid casts on animation delegate 2025-09-27 22:00:06 +10:00
zkdpower
a904544c64 Update the Simple-Chinese translation to latest. (#3577) 2025-09-27 17:47:58 +10:00
Stenzek
b40ff8b0bd Qt: Add optional animation of icons in game list
Disabled by default.
2025-09-27 17:45:24 +10:00
Stenzek
da471120c4 Qt: Link memory scanner address double-click to editor 2025-09-26 22:44:22 +10:00
Stenzek
ecf13ded23 Qt: Add Memory Editor window 2025-09-26 22:44:01 +10:00
Stenzek
4ee8738771 FullscreenUI: Stop icons leaking into cover cache 2025-09-26 20:02:08 +10:00
Stenzek
93a13a6fa2 FullscreenUI: Draw generated covers when not present 2025-09-26 20:02:08 +10:00
Stenzek
5caa560134 FileSystem: Disallow control characters on Linux/Mac as well
Technically allowed, but just asking for trouble.
2025-09-26 20:02:08 +10:00
Stenzek
d4c6905cfa Tests: Linux build fix 2025-09-26 20:02:08 +10:00
Stenzek
ea11ce2dd5 Tests: Add for CueParser and ElfFile 2025-09-26 20:02:08 +10:00
Stenzek
8e65beb736 GameList: Save APNGs for memory card icons 2025-09-26 20:02:08 +10:00
Stenzek
102af48b6b AnimatedImage: Add class for reading APNGs
And probably GIFs in the future.
2025-09-26 20:02:08 +10:00
Stenzek
9d14a4a57f Tests: Add tests for Image class 2025-09-26 20:02:08 +10:00
Stenzek
8f78f83587 Image: Don't use png_read_image()
Avoids a temporary buffer allocation.
2025-09-26 20:02:08 +10:00
Stenzek
bcc066a2e0 Image: Fix a couple of random bugs 2025-09-26 20:02:08 +10:00
Stenzek
f2cee19002 HeapArray: Add size_bytes() 2025-09-26 20:02:08 +10:00
Stenzek
2624914628 Deps: Patch libpng for apng support 2025-09-26 20:02:08 +10:00
Stenzek
29aa0faa6c Deps: Update Harfbuzz to 11.5.0 2025-09-26 20:02:07 +10:00
Stenzek
7e4f0ce119 Deps: Update to FreeType 2.14.1
And use dynamic Harfbuff loading.
2025-09-26 20:02:07 +10:00
Stenzek
86f36ad339 Deps: Remap paths in libbacktrace
File path creeps in otherwise, we want reproducible builds.
2025-09-26 20:02:07 +10:00
Stenzek
7df21b216d Deps: Bump cpuinfo version 2025-09-26 20:02:07 +10:00
Stenzek
94efd0089f Qt: Add fallback if system colour scheme is unknown 2025-09-23 22:58:06 +10:00
Stenzek
5b4cf75c74 Qt: Fix game list icon colours on theme change 2025-09-23 22:35:32 +10:00
Stenzek
65d6ecc4ca Qt: Don't use style hints as source of truth for dark mode
Apparently this doesn't work on Linux. Typical.
2025-09-23 22:35:11 +10:00
Stenzek
598d393ae9 System: Don't create any memory cards in PSF/GPU Dump mode 2025-09-22 20:50:37 +10:00
Víctor "IlDucci
36ebaf87a7 Spanish (Spain) translation update 2025/09/22 (#3576)
- Added latest translation changes.
 - Resorted all of Qt->View->keyboard shortcuts to include the newest additions.
2025-09-22 20:50:31 +10:00
Stenzek
dc1882dd3e System: Fix patch setting override desync on safe mode toggle 2025-09-22 20:46:12 +10:00
Stenzek
c2bbef066d System: Simplify memory card opening
Now cards no longer reopen when changing discs in a multi-disc game.
2025-09-22 20:37:45 +10:00
Stenzek
790ac23515 GPU: Get present parameters before allocating command
Fixes corruption/crash when video frame rate changes with capture
active.
2025-09-22 17:12:16 +10:00
Stenzek
03cbfc2e3f CI: Auto-retry patch download
Should hopefully work around random failures at the download endpoint.
2025-09-22 16:18:16 +10:00
Stenzek
fcf67396cd Qt: Require non-zero displacement for reverse axis binding
Should hopefully work around controllers with digital triggers getting
flagged as inverted bindings.
2025-09-22 16:18:16 +10:00
Stenzek
055caf5cbe Qt: Log input state when binding 2025-09-22 15:32:04 +10:00
Stenzek
9baa09aace InputManager: Use TinyString for key-to-string function 2025-09-22 15:32:04 +10:00
Stenzek
ba0390f6e0 System: Fix patch settings not clearing on game change
Also the redundant memory card notification when loading state.
2025-09-22 15:32:03 +10:00
Stenzek
7de84817f8 System: Fix changing GPU thread state when inactive 2025-09-21 19:00:03 +10:00
Stenzek
0de2aafdb9 CPU/Interpreter: Memory read failures are unlikely 2025-09-21 19:00:03 +10:00
Stenzek
b106392da0 CPU/PGXP: Implement lwl/lwr/swl/swr
Fixes gaps in sky geometry in Kingsley's Adventure.
2025-09-21 19:00:03 +10:00
Stenzek
e183ec307a CPU/Interpreter: Use aligned address for membps in lwl/lwr 2025-09-21 16:29:39 +10:00
Stenzek
109bbf6289 GameDB: Recompiler ICache for Dotchi Mecha! 2025-09-21 16:26:46 +10:00
Stenzek
49b5ea3d07 DMA: Skip chopping on tiny blocks
My theory is if the DMAC uses burst transfers, then chopping will have
no effect.

Dotchi Mecha! transfers out the CD header then data separately, and if
the first transfer is delayed ends up in a read loop.

I suspect our handling of chopping is wrong anyway, since the calculated
cycle counts for a sector transfer are way too high regardless...
2025-09-21 16:25:10 +10:00
Stenzek
e877ae41b0 Qt: Fix display of uncompressed size
Derp.
2025-09-20 20:07:05 +10:00
Stenzek
85c4e02493 Qt: Remove redundant title update in Game Properties 2025-09-20 18:32:15 +10:00
Stenzek
77bc1ae3ca Qt: Fix incorrect size hint in FolderSettingsWidget 2025-09-20 18:32:15 +10:00
Stenzek
f1047afdac Qt: Make checked menu item visible in Darker Fusion 2025-09-20 18:32:14 +10:00
Stenzek
24bf2bc453 Qt: Default to darker fusion theme 2025-09-20 15:37:26 +10:00
Stenzek
5e32871288 CI: Remove unneeded install on Mac 2025-09-20 15:34:44 +10:00
Stenzek
c4069eed02 CMake: Avoid search path conflicts 2025-09-20 15:34:44 +10:00
Stenzek
81f5b7440f Qt: Add icon for multi-disc games 2025-09-20 14:25:18 +10:00
Stenzek
41a4f07cc5 CI: Remove Flatpak verification steps
Tired of flathub breaking my build.
2025-09-19 21:25:03 +10:00
Stenzek
e6c49f0b33 Qt: Fix uncentered toggle widget thumb 2025-09-19 20:47:14 +10:00
Stenzek
bb63bf92f0 Qt: Remove multiple sources of truth for dark theme 2025-09-19 20:40:16 +10:00
Stenzek
0d3c7751f1 Qt: Fix Cheats menu shortcut 2025-09-19 20:40:16 +10:00
Stenzek
95bcff8c06 Qt: Darker Fusion tweaks 2025-09-19 20:40:15 +10:00
Stenzek
fb318ca4b0 Qt: Fix toggle button not updating 2025-09-19 01:18:31 +10:00
Stenzek
a90184a658 CDROM: Tidy up warnings 2025-09-19 00:54:43 +10:00
Stenzek
5e253d0c2a Qt: Add toggle button class
And use it for patches
2025-09-19 00:54:43 +10:00
Stenzek
f1fe00c1cb Data: Update SDL game controller database 2025-09-19 00:54:43 +10:00
Stenzek
e3c4f77a05 Qt: Fix tab order in settings pages 2025-09-19 00:08:31 +10:00
Stenzek
1a4ca3be11 Qt: Add 'Darker Fusion' theme 2025-09-19 00:08:28 +10:00
Stenzek
749ce48b65 Qt: Theme colours can be constexpr 2025-09-19 00:08:28 +10:00
Stenzek
83d518c707 Qt: Fix about dialog link colour 2025-09-19 00:08:28 +10:00
Stenzek
1ac7fc258a SaveStateSelectorUI: Scale save state selector to LayoutScale
And some minor visual polish.
2025-09-18 22:58:24 +10:00
Stenzek
073335c09b Qt: Don't break size of larger game icons 2025-09-18 22:57:59 +10:00
jorge-607
a13aa8f292 Adicionada uma atualização da tradução para português europeu 2025-09-18 18:13:19 +10:00
Davide Pesavento
4c81a98213 Qt: Fix detection of system language (#3573) 2025-09-18 18:10:43 +10:00
Stenzek
6caf2d567b Qt: Resize fixed columns on theme change
Fixes columns being too small after change on MacOS.
2025-09-17 20:09:48 +10:00
Stenzek
3724a38d38 Qt: Remove MainWindow::updateTheme()
Instead pipe it through themeChanged().
2025-09-17 20:09:48 +10:00
Stenzek
ea3c8a3654 Qt: Add a theme changed event and use it for hotkey rows
Fixes black text when window inactive on MacOS.
2025-09-17 20:09:48 +10:00
Stenzek
05af0c1288 FullscreenUI: Fix title display in game properties 2025-09-17 20:09:48 +10:00
Stenzek
2369b329eb Qt: Partially revert "Remove Q_OBJECT where unnecessary"
This reverts commit 31c75a2b5a.

tr()'s context is defined by Q_OBJECT, so removing Q_OBJECT here
sadly breaks translations.
2025-09-17 20:09:48 +10:00
Stenzek
a39d370c51 Qt: Don't show main window when changing setup wizard options 2025-09-17 20:09:48 +10:00
Stenzek
ceb6757524 Qt: Work around broken dialogs in MacOS 26 2025-09-17 20:09:48 +10:00
Anderson Cardoso
1e41408753 Atualização Português do Brasil (#3571)
Atualizado para a última versão.
2025-09-17 20:09:45 +10:00
zkdpower
4bf2aa5620 Update the Simple-Chinese translation. (#3570) 2025-09-16 23:20:01 +10:00
Daniel Nylander
e138030f8f Updated Swedish translation (#3569) 2025-09-16 23:19:40 +10:00
Connor McLaughlin
eeb1555905 Qt: Fix tooltip typo 2025-09-16 23:19:10 +10:00
Stenzek
9a1a8c226a Qt: Allow transparent padding for covers
Need to use a custom paint delegate instead...
2025-09-16 02:16:04 +10:00
Stenzek
bb50fc9056 CDROM: Improve subchannel file detection
Look in the subchannels directory for serial, file title, game title and
save title.
2025-09-15 20:45:08 +10:00
Stenzek
8a431b7d22 GameDB: Disable PGXP on 2D polygons in Wipeout games
Fixes misaligned text.
2025-09-15 20:45:07 +10:00
Stenzek
ff23462113 dep/rcheevos: Bump to fae1e23 2025-09-15 20:45:07 +10:00
Ariel Nogueira Kovaljski
0088bb0abb Qt: Make titlebar match current UI theme (Light/Dark) (#3568) 2025-09-15 20:44:41 +10:00
Stenzek
66bef3e3ed Achievements: Allow background reads 2025-09-14 19:45:52 +10:00
Stenzek
9e3dda675c Qt: Remove unused variables 2025-09-14 17:56:11 +10:00
Stenzek
31c75a2b5a Qt: Remove Q_OBJECT where unnecessary
Shaves another 20KB off the binary, and more importantly improves
compile time since moc doesn't need to run for as many files.
2025-09-14 17:55:14 +10:00
Stenzek
339f4252ec Qt: Remove named slot declarations
Knocks 70KB or so off the release binary, ~0.8%.
2025-09-14 17:12:41 +10:00
Stenzek
577863077e Qt: Replace named slot usage with functors 2025-09-14 16:56:26 +10:00
Stenzek
328c93b786 FullscreenUI: Fix OOB on start+load state 2025-09-14 16:30:09 +10:00
Stenzek
2346f67c8c dep/fmt: Update to v11.2.0 2025-09-14 16:19:09 +10:00
Stenzek
ae77a82ba3 Common: Add helper for thread-safe localtime()
And use it with fmt instead of fmt::localtime.
2025-09-14 16:19:06 +10:00
Stenzek
aa929370ba Host: Pack locals in struct 2025-09-14 16:19:06 +10:00
Stenzek
640769c2b2 System: Remove unnecessary c_str() 2025-09-14 16:19:06 +10:00
Stenzek
cb7c33cf27 Qt: Synchronize horizontal header with sort actions 2025-09-14 15:17:17 +10:00
Stenzek
7807a6847b Misc: Fix a couple of code analysis warnings 2025-09-14 14:56:41 +10:00
Stenzek
ae570b0aca Qt: Remove multiple source of truth for column titles 2025-09-14 13:59:01 +10:00
Stenzek
08d54487e0 Qt: Disable capture frame option if not running 2025-09-14 13:48:37 +10:00
Stenzek
3554467988 Qt: Set status tip for actions to tooltips 2025-09-14 13:47:53 +10:00
Stenzek
f39a067260 Qt: Add tooltips to menu actions
Sorry translators.
2025-09-14 13:47:40 +10:00
Stenzek
9877cc0c2c Qt: Move list background config logic to GameListWidget 2025-09-14 13:02:40 +10:00
Stenzek
4d5b0473cf Qt: Don't show fractional sizes in game list
Arguably not very useful.
2025-09-14 12:54:50 +10:00
Stenzek
e038a1d355 Qt: Fix some size values truncated in game list 2025-09-14 12:54:50 +10:00
Stenzek
a790f521a0 Qt: Don't try to replace AppImage when running as Flatpak 2025-09-14 12:54:50 +10:00
Daniel Nylander
cdcfbea6d0 Updated Swedish translation (#3566) 2025-09-14 12:54:28 +10:00
ANK-dev
a9c36f39ad Use statusTip instead of toolTip for menus 2025-09-14 12:54:09 +10:00
ANK-dev
17a1b231af Keep Game List/Grid view options enabled if rendering to separate window 2025-09-14 12:54:09 +10:00
ANK-dev
df49eba478 Added icons and mnemonics in View menu
- Icons for Zoom In and Zoom Out
- Adjusted and added missing mnemonics
2025-09-14 12:54:09 +10:00
ANK-dev
1f07bfc9c7 Added "View > Sort By" menu
- Allows sorting by any column even when hidden
- Allows sorting in grid view
2025-09-14 12:54:09 +10:00
ANK-dev
456d341ec2 Enable/Disable View menu items according to state
- Disable all Game List/Grid related options while System Display is active.
  Reenable when switching back to List/Grid.
- Disable Game List/Grid exclusive options when switching to the opposite view;
- Disable "Clear List Background" when a background is not set;
- Enable tooltips for menu items;
2025-09-14 12:54:09 +10:00
Stenzek
ee9f32185e dep/rcheevos: Remove files deleted upstream 2025-09-13 16:52:42 +10:00
Stenzek
6126209a25 CMake: Remove Flatpak specific commands
Also no longer needed.
2025-09-13 16:52:42 +10:00
Stenzek
84c6be74d3 Deps: Simplify Linux build scripts
Optional system libs no longer needed since Flatpak specific build is
gone.
2025-09-13 16:52:42 +10:00
Stenzek
e0a51e117d CI/Flatpak: Replace with a wrapped AppImage
One less thing to maintain, fewer things to go wrong.

Especially since the number of users can apparently be counted
on one hand.

It's this or I remove it completely.
2025-09-13 16:52:30 +10:00
Stenzek
78bc53ff43 Qt: Stop slider tooltip showing on keyboard shortcut 2025-09-13 13:52:01 +10:00
Stenzek
8f247c909a Qt: Move zoom logic entirely to game list widget 2025-09-13 13:51:27 +10:00
Stenzek
56665d64af Achievements: Simplify hash-to-string routine 2025-09-13 13:39:18 +10:00
Stenzek
fe09b5d16f ISOReader: Allow zero-length root directory entries
BIOS can read them, so should we.
2025-09-13 13:39:18 +10:00
Stenzek
d8912cb3c3 System: Allow RVO in GetExecutableNameForImage() 2025-09-13 13:39:18 +10:00
Stenzek
edeaae613a dep/rcheevos: Bump to 4570cb7 2025-09-13 13:39:18 +10:00
Ariel Nogueira Kovaljski
c6666a388f Qt: Show tooltip when adjusting icon/cover scale (#3563)
* Qt: Show tooltip when adjusting icon/cover scale

* Qt: removed tooltip on hover, handle zoom via View menu and more

- Tooltip only shows when changing the scale;
- "View > Zoom In/Out" also works for the list view;
- Grid View scale percentage display value adjusted (10%-200%);
- Added translation support for the scale tooltip;
2025-09-13 13:39:08 +10:00
Anderson Cardoso
b95f2b16f2 Atualização Português do Brasil (#3564)
Atualizado para a última versão
2025-09-13 13:34:43 +10:00
Davide Pesavento
66d6e2827d GameDB: PGXP CPU mode for Tony Hawk's Pro Skater
And add a sort title for the PAL version of the first game so that
it gets sorted before the sequels.
2025-09-13 13:34:28 +10:00
Davide Pesavento
d694bc201b GameDB: Various fixes for Mega Man games 2025-09-13 13:34:28 +10:00
Davide Pesavento
9ae09a7693 GameDB: Disable widescreen and enable PGXPPreserveProjFP for Evil Dead 2025-09-13 13:34:28 +10:00
Davide Pesavento
65f6209010 GameDB: Various fixes for Einhänder 2025-09-13 13:34:28 +10:00
Stenzek
f0ff520a9d GameList: Improve custom title cover handling
Prefer the custom title path over the serial if one is present.

Also use sanitized names.
2025-09-12 23:29:47 +10:00
Stenzek
f45350898b GameList: Don't balk on cover titles that end in dot 2025-09-12 23:29:46 +10:00
Stenzek
1cdde2cab6 Path: Add IsFileNameValid() 2025-09-12 23:29:46 +10:00
Stenzek
a8bbd2c4a9 CrashHandler: Catch exceptions and std::terminate 2025-09-12 23:29:46 +10:00
Connor McLaughlin
2459ac7cc5 Achievements: Fix crash on unknown game 2025-09-12 14:13:10 +10:00
Daniel Nylander
5c7b976367 Updated Swedish translation (#3562) 2025-09-10 21:56:00 +10:00
Stenzek
96c90a4acd Qt: Use colorScheme() for dark mode detection on system themes 2025-09-10 21:52:43 +10:00
Stenzek
7bf3b7931b Qt: Fix hotkey alt row colours on Mac 2025-09-10 21:44:52 +10:00
Stenzek
aca4e6be42 Qt: Use Roboto for cover captions too
And don't do a full refresh when scale changes.
2025-09-09 20:56:51 +10:00
Stenzek
e2142419e1 Qt: Use Roboto for cover placeholder text
Consistency across platforms.
2025-09-09 20:47:58 +10:00
Stenzek
17aa588736 Qt: Add shadow to placeholder cover text 2025-09-09 20:47:58 +10:00
Stenzek
c9156fd7b5 Qt: Pack host local state in struct 2025-09-09 20:47:58 +10:00
Stenzek
c4ac3d195c Qt: Improve padding in hotkey rows
And fix incorrect parent widgets.
2025-09-09 20:47:58 +10:00
Stenzek
022d9f3083 Qt: Pass game list entry to settings window
Simplfies everything, makes restoring custom properties more reliable.
2025-09-09 20:47:58 +10:00
Ariel Nogueira Kovaljski
d367e7e4e0 Qt: Alternating row colors for Hotkeys settings (#3559) 2025-09-09 19:56:15 +10:00
Davide Pesavento
aee897e44a Qt: Disable UI of settings forced via gamedb, part two (#3561)
Missed these in the previous commit.
2025-09-09 19:53:06 +10:00
Stenzek
d0840c0615 GameList: Don't save custom titles to cache
Stops custom titles from being unremovable.
2025-09-09 19:15:04 +10:00
Stenzek
dc7eec7eac Qt: Use hasAlphaChannel() for ARGB32 check 2025-09-09 18:47:32 +10:00
Stenzek
e470269d01 FileSystem: Remove now-unused function 2025-09-09 14:17:20 +10:00
Stenzek
d944966db6 Qt: Use ARGB32_Premultiplied for transparent covers 2025-09-09 13:58:27 +10:00
Stenzek
6e4da72552 System: Remove use of CDImage title metadata
This way memory card filenames are consistent regardless of the
image format.

Also make GetGameMemoryCardPath() and GetMemoryCardForSlot()
behave the same.
2025-09-09 13:57:52 +10:00
Ariel Nogueira Kovaljski
caa865628d Qt: Expand Gamelist background to fill available area (#3560) 2025-09-09 13:53:17 +10:00
Davide Pesavento
0296c84add Qt: Disable UI of settings forced via gamedb traits (#3558) 2025-09-08 22:41:15 +10:00
Stenzek
ad3ad6065e Qt: Update Korean translation by Hack茶ん 2025-09-08 22:40:21 +10:00
Davide Pesavento
0be0500805 GameDB: Disable auto analog for Persona 2 - Innocent Sin (#3556) 2025-09-08 22:13:40 +10:00
Anderson Cardoso
5794746fa0 Atualização Português do Brasil (#3557)
Atualizado para a última versão
2025-09-08 22:13:29 +10:00
Stenzek
627fec4e30 FullscreenUI: Tweak text colours slightly 2025-09-08 22:11:39 +10:00
Stenzek
dfc650410e Qt: Use RGB32 format for covers/background
As per QPainter documentation, ARGB32 etc is not optimal.

https://doc.qt.io/qt-6/qpainter.html#performance
2025-09-08 22:11:39 +10:00
Stenzek
ec6a411bdf Qt: Use Window/AutoFillBackground for game list background
Fixes scrolling glitching out, as well as the background not showing in
the Qt Windows 11 theme.
2025-09-08 22:11:39 +10:00
Stenzek
0136f721c4 SDLInputSource: Fix possible negative input to SDL_GetJoystickButton() 2025-09-07 23:34:18 +10:00
Stenzek
babf4201d8 Settings: Default to notification achievement indicator mode
Makes more sense than an icon in the corner of the screen that you don't
notice half the time, and the other half is arguably annoying.
2025-09-07 15:16:09 +10:00
Davide Pesavento
81dca60aa9 GameDatabase: Use correct titles in compatibility report (#3555) 2025-09-07 15:15:25 +10:00
Stenzek
c3e5075c60 Achievements: Show notification when challenge fails
If mode is set to notifications.
2025-09-07 15:11:34 +10:00
Stenzek
d7ed9a736d Achievements: Show most recent progress update in pause menu 2025-09-07 15:04:31 +10:00
Ariel Nogueira Kovaljski
1275eb1f9b GPU/ShaderGen: Added Hybrid Bilinear scaling (#3554)
Middle ground between Smooth Bilinear and Sharp Bilinear.
Smooth horizontally and sharp vertically like a raster scan.
2025-09-07 11:54:27 +10:00
Stenzek
78d22b8852 Qt: Swap point size for pixel size in a few places
Make sizes consistent between Windows and MacOS.
2025-09-06 14:35:28 +10:00
Stenzek
4c6375adc9 Qt: Fix inconsistent cover caption size at startup 2025-09-06 13:39:07 +10:00
Stenzek
ca504bd0ed CMake: Set -fmacro-prefix-map and -ffile-prefix-map 2025-09-06 13:37:12 +10:00
Stenzek
843234f817 MSBuild: Set /d1trimfile and /PDBALTPATH
More steps to reproducible builds.

/d1trimfile only works on MSVC, so set -fmacro-prefix-map and
-ffile-prefix-map on Clang.
2025-09-06 13:21:11 +10:00
Stenzek
da64db69f2 System: Don't print __DATE__/__TIME__
Inhibits reproducible builds.
2025-09-06 13:11:40 +10:00
Stenzek
26c4eec874 Qt: Fix another compiler warning 2025-09-06 13:11:24 +10:00
Stenzek
0aa8374f73 MSBuild: Don't merge qt_LANG.qm when qtbase_LANG.qm exists
Stops qt_sv.qm being generated which references files that do not exist,
e.g. qtscript_sv.qm.
2025-09-06 12:38:15 +10:00
Stenzek
14b2302e29 Qt: Fix compile warning 2025-09-06 12:38:15 +10:00
Stenzek
5cd8444ad6 Qt: Consider title when sizing icon column 2025-09-06 12:35:44 +10:00
Ariel Nogueira Kovaljski
587e73d71d Sharper icon scaling (#3553)
* take ceiling instead of truncation for icon scaling

* #include <cmath> and change std::ceilf to std::ceil
2025-09-06 12:34:28 +10:00
Stenzek
3ff6287a82 GameList: Use size_t for indexing 2025-09-04 20:47:47 +10:00
Stenzek
7e04671644 GameList: Use fixed size for icon column
Fixes sluggish icon size change and speeds up startup since we
no longer need to load every icon.
2025-09-04 20:23:05 +10:00
Stenzek
393724abdc Qt: Save one lookup when loading covers 2025-09-04 20:22:34 +10:00
Stenzek
b5d5cfd9c2 GameList: Pack state in struct 2025-09-04 19:32:25 +10:00
Stenzek
f7edbdec22 Qt: Remove unused signal 2025-09-04 19:29:30 +10:00
Stenzek
21bede8123 ImGuiManager: Initialize to default text font order 2025-09-04 12:35:34 +10:00
Stenzek
979e850ea5 Qt: Include full binding text in tooltip 2025-09-04 12:29:21 +10:00
Stenzek
78fa54344e SmallString: Make constructors explicit
Catch more errors at compile-time.
2025-09-04 12:25:00 +10:00
Stenzek
d9dc5074df InputManager: Map 'old' key names to new on load
Can't really automigrate settings because of input profiles, but this
will keep the old ones loading.
2025-09-04 12:00:03 +10:00
Stenzek
c33131d153 InputManager: Use scancodes for key mapping 2025-09-04 11:59:28 +10:00
Stenzek
08901c0638 Qt: Fix scroll bar desyncing on icon size change 2025-09-03 22:33:00 +10:00
Stenzek
fb1bd1e283 FullscreenUI: Fix crash when toggling localized titles 2025-09-03 22:33:00 +10:00
Stenzek
76e386c2f6 CrashHandler: Debug break on abort() if debugger attached 2025-09-03 22:33:00 +10:00
Stenzek
8327282143 GameList: Fix covers for disc sets sometimes missing
Path field needs to be unique.
2025-09-03 22:33:00 +10:00
Stenzek
3d73c5cacc Qt: Fix possible cover loss during load 2025-09-03 22:33:00 +10:00
Davide Pesavento
e573f18b01 GameDB: Disable auto analog for Hellnight (#3551) 2025-09-03 20:01:24 +10:00
Stenzek
e02c991924 Deps: Patch Qt fusion style
Stop the checkboxes having such bright outlines, it looks terrible.
2025-09-03 20:00:33 +10:00
Stenzek
7c2585d265 Deps: Make Qt build options more consistent 2025-09-03 19:59:53 +10:00
Stenzek
25b44f4283 Qt: Wire up new key glyphs 2025-09-02 23:42:09 +10:00
Stenzek
a390797213 Data: Add new PromptFont glyphs 2025-09-02 23:42:09 +10:00
Stenzek
59542b0397 Deps: Update Qt, SDL and zlib-ng 2025-09-02 22:28:29 +10:00
Stenzek
2d3ebc867c System: Fix safe mode details not showing 2025-09-02 12:26:22 +10:00
zkdpower
d2a2a78237 Update the Simple-Chinese Translation to latest. (#3547) 2025-09-02 12:19:28 +10:00
Anderson Cardoso
fd9c3cd2fd Update duckstation-qt_pt-BR.ts (#3548) 2025-09-02 12:19:18 +10:00
Davide Pesavento
6d2f3dc6c2 Qt: Fix zooming with mouse wheel in game list (#3549) 2025-09-02 12:19:13 +10:00
Davide Pesavento
2514814bbb GameDB: A few more sort names 2025-09-02 12:18:55 +10:00
Davide Pesavento
2215f413e0 GameDB: Restore "(Soviet)" suffix on disc 2 of some C&C games
Accidentally dropped in 6e421b9d4a.
2025-09-02 12:18:55 +10:00
Stenzek
fc29fbab50 Qt: Don't try to load directory as background image 2025-09-02 12:12:10 +10:00
Stenzek
4b472dd51b GameList: Improve grid size calculations
Can't seem to get the width to compute incorrectly on my machine
anymore.
2025-09-02 12:07:39 +10:00
Stenzek
ddaac7eb4c GameList: Use save title for cover image lookup 2025-09-01 20:22:56 +10:00
Stenzek
0867decc87 Qt: Use widget-local device pixel ratio for game list
Fixes blurry icons in mixed DPI environments.

At least on Windows.
2025-09-01 20:16:13 +10:00
Stenzek
019636b71f Qt: Use DevicePixelRatioChange for DisplayWidget 2025-09-01 19:55:20 +10:00
Stenzek
126171f5de Qt: Fix memory card icons drawing on themselves
Also disable column title highlighting, and fix the width of the icon
column.
2025-09-01 19:39:43 +10:00
Stenzek
6dd78b1593 MediaCapture: Fix default video codec on MacOS 2025-09-01 19:39:43 +10:00
AM_Erizur
91f25b602e Controller: Add Start/Select bindings for the Pop'n Controller (#3546)
The Pop'n Controller has two small white buttons on the top which represent the normal PS Digital Start/Select buttons. These are needed for disc swaps inside Pop'n Music 2/5/6 as the game requests that you press the Start button (not the Red button) to startup the new disc inserted.
2025-09-01 19:39:34 +10:00
Davide Pesavento
6a0249b039 Qt: Hide game list vertical header (#3545)
Got lost in the refactoring in 5f8716a9f0.

Also remove two no-op function calls.
2025-09-01 19:20:30 +10:00
Davide Pesavento
e933716d21 GameDB: Add sort name to several more game series (#3544) 2025-09-01 19:20:24 +10:00
Stenzek
44908fe7f4 Qt: Respond to DPR change in memory card editor 2025-08-31 23:37:58 +10:00
Stenzek
e89590be4f Qt: Avoid QPixmap -> QIcon conversion in getIconForGame() 2025-08-31 23:02:13 +10:00
Stenzek
d69935eef0 Qt: Fix warning 2025-08-31 20:36:42 +10:00
Stenzek
e32e64420e StringUtil: Fix logical errors 2025-08-31 20:36:42 +10:00
Stenzek
faa75991a0 Tests: Add more unit tests for common classes 2025-08-31 20:36:42 +10:00
Stenzek
db2f563db6 dep/googletest: Update to v1.17.0 2025-08-31 18:34:49 +10:00
Stenzek
b8952dafac Qt: Don't use memcard icon cache for window icon when scaled
It'll get scaled up and down again otherwise.
2025-08-31 15:03:34 +10:00
Davide Pesavento
3cb275d878 Qt: Use grid layout in cheat code editor (#3543) 2025-08-31 14:55:22 +10:00
Stenzek
e1c0753d3d Qt: Use path as tie breaker when sort titles equal 2025-08-31 14:54:51 +10:00
Stenzek
f2f06a746b FullscreenUI: Fix game properties title 2025-08-31 14:46:37 +10:00
Stenzek
5f8716a9f0 Qt: Simplify icon scaling
- Merge the two sliders into one.
- Scale the type icons as well as the game icons.
- Remove redundant slots.
2025-08-31 14:46:36 +10:00
Stenzek
48ac353210 Qt: Disable game list toolbar when no games found 2025-08-31 14:45:43 +10:00
Stenzek
abde6e4316 Qt: Move scaling helper to cpp file 2025-08-31 14:45:43 +10:00
Davide Pesavento
d499d8e2d8 Qt: Avoid a full reset when toggling show cover titles / localized titles 2025-08-31 13:05:41 +10:00
Davide Pesavento
6765b2feb0 Qt: Delete some redundant code in GameListModel
The settings are already modified by the caller.
The cover cache is cleared by refreshCovers().
2025-08-31 13:05:41 +10:00
Ariel Nogueira Kovaljski
b0dd909cf8 Qt: Resizable game list icons (#3539)
* Qt: Sharp Bilinear scaling for gamelist icons

* Single function for Sharp Bilinear scaling of icons

* Qt: Resizable game list icons [PoC]

* Fixed dynamic row scaling and size slider

* fix some duplicate lines

* made scaleMemoryCardIconWithSharpBilinear inline and added constant for icon padding

* removed resizeEvent from GameListListView
2025-08-31 12:37:20 +10:00
Stenzek
56e1713e27 GameList: Support scanning and caching relative paths 2025-08-31 12:32:15 +10:00
Stenzek
0a271cd7d5 StringUtil: Fix CompareNoCase for prefixes 2025-08-31 12:05:45 +10:00
Stenzek
7cd0d412eb Settings: Fix portable mode for AppImages 2025-08-31 12:05:45 +10:00
Stenzek
c1bb183caa FullscreenUI: Fix selecting disc set entries in list/grid 2025-08-31 01:40:18 +10:00
zkdpower
92c056107c Update the Simple-Chinese translation to latest. (#3540) 2025-08-31 01:33:10 +10:00
Stenzek
d77c92de33 FullscreenUI: Fix incorrect disc set window title 2025-08-31 01:32:38 +10:00
Stenzek
86333e9977 System: Fix crash on starting non-database game 2025-08-31 01:32:36 +10:00
Stenzek
dec06fa67d GameDatabase: Use once_flag for thread-safe initialization 2025-08-30 23:50:39 +10:00
Stenzek
2b519b1a94 GameDatabase: Check timestamp of discsets.yaml 2025-08-30 23:30:24 +10:00
Stenzek
e35b49d6e5 GameDB: More instances of sort titles 2025-08-30 23:30:22 +10:00
Stenzek
17872fec89 Qt: Fix compile warning 2025-08-30 22:06:11 +10:00
Stenzek
970f2ed9d6 GameDB: Fix lint errors 2025-08-30 22:06:11 +10:00
Stenzek
39fcbf7a19 GameDB: Add sort name to Crash/Final Fantasy games
Now they're shown in chronological order.
2025-08-30 21:52:57 +10:00
Stenzek
2ed8c024a3 Qt: Show English and localized names in tooltip 2025-08-30 21:41:54 +10:00
Stenzek
29327b3e22 GameDB: Add localized names
Sourced from a combination of manual lookups, the Redump database
and the Retool clone list metadata.
2025-08-30 21:33:47 +10:00
Stenzek
8bfc31a59c GameDatabase: Refactor disc sets
Store the sets in a separate file, and use pointers to reference instead
of string matching. This allows us to use the unsuffixed display names.
2025-08-30 21:33:47 +10:00
Stenzek
d00b897257 GameDB: Add sortName for games starting with 'The' 2025-08-30 21:33:47 +10:00
Stenzek
6e421b9d4a GameDB: Add unsuffixed display names
No more '(USA)' and '(Europe)' suffixes.
2025-08-30 21:33:46 +10:00
Stenzek
a8b4bb3fce GameDatabase: Add sort title, localized title, and save title fields 2025-08-30 21:33:46 +10:00
Stenzek
1aa92c7667 GameDB: Normalize multi-line strings 2025-08-30 21:33:46 +10:00
Stenzek
d13d3d89f9 Resources: Relocate PromptFont key glyphs to high range
Stops them clashing with full-width characters used in Japanese titles.
2025-08-30 21:33:45 +10:00
Stenzek
4738fceb43 Updater: Fix pause until mouse move on Mac 2025-08-28 22:23:31 +10:00
zkdpower
2182a0d84d Update the Simple-Chinese Translation to latest. 2025-08-28 22:22:54 +10:00
Anderson Cardoso
f6fd1e9822 Atualização Português do Brasil (#3538)
Atualizado para a última versão
2025-08-28 22:21:01 +10:00
Stenzek
835390fa99 Cheats: Make message OSD key consistent 2025-08-27 22:31:24 +10:00
GregoireLD
2c28e457bc Updater Application Icon Update (#3535)
* Update Updater icons

* Small correction

* Shadow correction

* Box correction
2025-08-27 22:27:44 +10:00
AnthonyRyuki
7f36401145 Update duckstation-qt_it.ts (#3534) 2025-08-27 22:26:57 +10:00
Ariel Nogueira Kovaljski
b0a63f95c9 Qt: Sharp Bilinear scaling for memcard icons (#3536) 2025-08-27 22:18:46 +10:00
Davide Pesavento
f303d57447 GameDB: Disable auto analog mode on several SMT games (#3532) 2025-08-26 17:32:41 +10:00
zkdpower
c76a8911d2 Update the Simple-Chinese Translation to latest. (#3533) 2025-08-26 17:32:05 +10:00
Davide Pesavento
a46e43fb7e GameDB: Enable PGXPPreserveProjFP for Ghost in the Shell (#3531)
And add AnalogController to the NA version, the left stick works just fine.
2025-08-26 17:31:54 +10:00
Stenzek
87f2c54ddd FullscreenUI: Unify Prefer GLES option name 2025-08-26 17:31:22 +10:00
Stenzek
e5fd12acb3 Qt: Disable game widget while system is starting 2025-08-25 21:29:34 +10:00
Stenzek
eedf417f23 CMake: Add possible missing include directory 2025-08-25 21:29:34 +10:00
Stenzek
63350c3d83 GPU/HW: Fix uninitialized pipeline fields 2025-08-25 21:29:33 +10:00
Stenzek
de39ff5e9b GPUDevice: Fix ROV support being disabled
Regression from 6e926041e5
2025-08-25 21:29:33 +10:00
Ariel Nogueira Kovaljski
2bd7fe8786 Qt: Disable column sorting indicator and adjust labels in memcard editor (#3528) 2025-08-25 21:29:11 +10:00
Davide Pesavento
f0c0ca3e09 GameDB: Fix metadata for Nightmare Creatures I & II 2025-08-25 21:28:53 +10:00
Davide Pesavento
7c398c4a99 GameDB: Turn PGXPPreserveProjFP off for Persona 2025-08-25 21:28:53 +10:00
Víctor "IlDucci
dcb6730cd8 Spanish (Spain) translation update 2025/08/25 (#3530)
- Translated latest changes.
2025-08-25 21:28:31 +10:00
Stenzek
1ef1a2d3f4 System: Add XZ save state compression
For when space is really at a premium.

Also use CompressHelpers to reduce duplication.
2025-08-24 15:10:28 +10:00
Stenzek
bbd150823c CompressHelpers: Tidy up and add Deflate 2025-08-24 15:10:28 +10:00
Davide Pesavento
2f39820305 GameDB: PGXP CPU mode for Nightmare Creatures II 2025-08-24 15:10:08 +10:00
Davide Pesavento
fb56c99993 GameDB: Disable widescreen in Fear Effect 2
FMV backgrounds as in the first game.
2025-08-24 15:10:08 +10:00
Davide Pesavento
24e496164e GameDB: Fix metadata for Darkstone
And genre for a couple other games.
2025-08-24 15:10:08 +10:00
Davide Pesavento
4e96fde477 GameDB: Disable disc speedup on MDEC for Diablo
Also add AnalogController, which is technically supported by the game,
but disable auto analog mode because the sticks don't do anything.
2025-08-24 15:10:08 +10:00
Davide Pesavento
b3d6b3708b GameDB: PGXP CPU mode for Azure Dreams 2025-08-24 15:10:08 +10:00
Stenzek
8533ab7f21 Qt: Fix editing second memory card 2025-08-24 01:49:57 +10:00
Stenzek
3b1dcde36f Qt: Force memory card editor icons to 32x32 2025-08-24 01:31:58 +10:00
Stenzek
d4b85ef6f1 InputManager: Increase macros per pad
No overhead to doing so now.
2025-08-23 22:48:06 +10:00
Stenzek
7d8e11d3c0 InputManager: Make macro button storage dynamic 2025-08-23 22:48:06 +10:00
Stenzek
a1f81d99a9 InputManager: Pack state in struct 2025-08-23 22:17:01 +10:00
Stenzek
b67bf20335 Mini: Fix missing format in FormatNumber() 2025-08-23 21:29:27 +10:00
Stenzek
fda28eaea0 DMA: Decrease slice size when MDEC is active/decoding
Prevents the FIFO getting too large, which causes too large chunks of
CPU time to be stolen and leads to games losing interrupts.

Strangely, this doesn't seem to affect performance in most games, except
the one that it fixes which has a 10-15% hit.

Fixes videos locking up in Cinema Eikaiwa Series Dai-1-dan - Tengoku ni
Ikenai Papa.

Also fixes hangs in Simple 1500 Series Vol. 57 - The Meiro.
2025-08-23 21:29:27 +10:00
Stenzek
6bef5a41aa OpenGLDevice: Disable PBOs on Panfrost driver
On RK3588, it's almost twice as fast to not use PBOs with the
software renderer.

Prop driver is still about 20% faster.
2025-08-23 19:14:42 +10:00
Stenzek
e551a96278 Qt: Don't disable debugger code view while running
Gets rid of the flicker.
2025-08-23 15:53:36 +10:00
Stenzek
da18a9508b Qt: Sync debugger breakpoint list with main
Simpler, less error prone.
2025-08-23 15:48:38 +10:00
Stenzek
686c4b81c1 Qt: Add custom code view for debugger
Branch arrows, syntax highlighting.
2025-08-23 15:39:14 +10:00
Stenzek
e907bbf831 Qt: Use a delegate to lazily resize/render icon pixmaps 2025-08-23 14:53:02 +10:00
Ariel Nogueira Kovaljski
645344b8ff Animated icon in memcard editor (#3526) 2025-08-23 14:44:27 +10:00
Stenzek
19f17007ec GameDB: Max speedup cycles for Driver/Driver 2 2025-08-23 13:18:40 +10:00
Stenzek
80fcd14a26 CPU/Recompiler/RISCV64: Replace lwu with lw in a couple of places
Consistency.
2025-08-23 13:09:36 +10:00
Stenzek
7de367fc2b CPU/Recompiler: Remove unused function pointer 2025-08-23 13:00:46 +10:00
Stenzek
34e0eab9f1 CPU/Recompiler: Check downcount in interpret block
Fixes application locking up with CDS=Max in Driver.
2025-08-23 12:59:29 +10:00
Stenzek
6e926041e5 GPUDevice: Move options to create flags
And add prefer-GLES-context as a config setting, instead of
environment variable.
2025-08-20 23:07:56 +10:00
Stenzek
c1d0cf3906 GameDB: Titan Wars overrides
Game's CD code appears to be super dodgy, and relies on ack timing
being varingly significantly higher than the average on console.

If seeks are too fast, the game will crash too.

Underclocking by 5% apparently makes it run consistently.
2025-08-20 23:07:56 +10:00
Stenzek
6e864a36ed GameDatabase: Allow CPU overclock override 2025-08-20 23:07:56 +10:00
Stenzek
86006e3d0c System: Apply setting restrictions before gamedb
Allows overriding of more options.
2025-08-20 23:07:56 +10:00
Davide Pesavento
826eff35e8 GameDB: Set max speedup cycles to 70k for Resident Evil 3 too (#3524)
Same issues as RE2.
2025-08-20 16:45:56 +10:00
Davide Pesavento
c1e71820d7 Qt: Disable UI for fast boot & disc speedup if marked incompatible in the DB (#3525) 2025-08-20 16:45:10 +10:00
bl@ck_m@ge
28db2be7f6 GameDB: Disable auto analog on more games (#3523) 2025-08-20 16:44:22 +10:00
Davide Pesavento
0ff6a5c647 GameDB: Add compatibility rating to a few games 2025-08-20 16:43:59 +10:00
Davide Pesavento
ae99e8d31d GameDB: Disable widescreen on Suikoden 2025-08-20 16:43:59 +10:00
Davide Pesavento
40383f58f7 GameDB: Increase max speedup cycles for Breath of Fire III 2025-08-20 16:43:59 +10:00
Davide Pesavento
d3024019bd GameDB: Increase max speedup cycles for Brave Fencer Musashi 2025-08-20 16:43:59 +10:00
bl@ck_m@ge
e00d6960d2 GameDB: Disable auto analog mode on Backstreet Billiards (#3521) 2025-08-20 16:43:44 +10:00
Stenzek
c7a4505ad8 Qt: Check screen bounds when restoring window positions
Ensure that the geometry is not off-screen.

It won't work on Wankland, and apparently doesn't support multiple monitors on X11.

So I'm just going to disable the whole thing on Linux, not just because my care
levels are practically non-existant, but also because I don't want to deal with
people moaning that their window manager's behavior is causing positions to
revert to the primary monitor. Just yolo it and hope for the best....
2025-08-20 16:43:12 +10:00
Davide Pesavento
4c349ffd44 GameDB: Disable widescreen and speedup on MDEC for Legend of Mana (#3520) 2025-08-19 00:10:12 +10:00
Davide Pesavento
f5d668fea9 GameDB: Disable auto analog mode on Armored Core games (#3519) 2025-08-19 00:09:58 +10:00
bl@ck_m@ge
0fe6928d62 GameDB: disable auto analog for some shoot'em up games (#3518) 2025-08-19 00:09:47 +10:00
Stenzek
4e39c3061f GameDB: Rollcage Stage II
PGXP-CPU to fix gaps in geometry.
2025-08-17 18:02:58 +10:00
Stenzek
bcb6f98cbd Common: Eliminate more static functions in headers 2025-08-17 13:15:56 +10:00
Davide Pesavento
d526818d33 GameDB: Disable auto analog mode on Shadow Tower (#3516) 2025-08-17 12:15:43 +10:00
Anderson Cardoso
921190ae1b Atualização Português do Brasil (#3517)
Atualizado para a última versão.
2025-08-17 12:15:34 +10:00
Stenzek
a8fdeb82d7 GameDB: Tighten DMA for Hot Wheels Turbo Racing
Apparently it helps, but I couldn't reproduce this myself.
2025-08-17 12:15:05 +10:00
Stenzek
1743bfa5fe Qt: Fix double translation in GameListWidget 2025-08-17 12:15:05 +10:00
zkdpower
1bc9f1efe7 update the Simple-Chinese translation to latest. (#3515) 2025-08-17 02:17:43 +10:00
Davide Pesavento
276211b9fc GameDB: Disable auto analog mode on Echo Night (#3514) 2025-08-16 15:56:13 +10:00
Davide Pesavento
f7c334bd46 GameDB: Disable PGXP and widescreen on Lunar games 2025-08-16 15:56:03 +10:00
Davide Pesavento
edf9b53bf7 GameDB: Disable PGXP and widescreen for Chrono Trigger 2025-08-16 15:56:03 +10:00
Stenzek
414ddf78cc Achievements: Display warning for unsupported achievements 2025-08-16 13:32:21 +10:00
Stenzek
95ccd7cea2 FullscreenUI: Update translation strings 2025-08-16 13:28:51 +10:00
Stenzek
7a359e54be GPU: Add separate scaling and FMV scaling options 2025-08-16 13:11:36 +10:00
Stenzek
006de3a6df Qt: Don't manually populate combos for enums 2025-08-16 13:05:53 +10:00
Davide Pesavento
962198f769 GameDB: Adjust crop area for Final Fantasy IV (#3510) 2025-08-15 19:54:13 +10:00
Davide Pesavento
13ce6469f2 GameDB: Disable widescreen on Alone in the Dark - The New Nightmare (#3509) 2025-08-15 19:53:59 +10:00
Davide Pesavento
f340bdb2bc CI: Bump actions/checkout to v5 (#3508) 2025-08-15 19:53:44 +10:00
bl@ck_m@ge
d9d3b6a658 GameDB: disable auto analog mode for Pepsiman (#3511) 2025-08-15 19:53:07 +10:00
Connor McLaughlin
8597873330 SDLInputSource: Fix DirectInput 2025-08-15 01:02:23 +10:00
Stenzek
327e9b5ce0 XInputSource: Set initial state on connection
Instead of after polling.
2025-08-13 16:39:01 +10:00
Stenzek
c0c022591c System: Synchronize input binding state on startup
This means that buttons which are pushed should register as pushed when
the system starts, rather than requiring them to be released and pressed
again.

Hopefully will allow passthrough of controllers that ground/press button
combinations to indicate the type of controller present.
2025-08-13 16:39:01 +10:00
Stenzek
33b3a6efda InputSource: Support querying current values 2025-08-13 16:39:01 +10:00
Stenzek
5bdcde76ab Qt: Expose advanced SDL options 2025-08-13 16:39:01 +10:00
Stenzek
54ab073f1a SDLInputSource: Add options for XBox HIDAPI/rawinput 2025-08-13 16:39:01 +10:00
Stenzek
09a3c99c3b AudioStream: Fix crash with timestretch disabled 2025-08-13 16:39:01 +10:00
Davide Pesavento
0a53bc47c3 Qt: Remove redundant layout from AchievementSettingsWidget 2025-08-12 21:48:24 +10:00
Davide Pesavento
0fc9de781f Qt: Fix crash toggling achievements in per-game settings 2025-08-12 21:48:24 +10:00
Stenzek
47e8d90e25 GPU: Fix screenshot size when showing VRAM 2025-08-12 00:33:59 +10:00
Stenzek
a2c015b907 GameDB: Disable WS/PGXP on 2D Final Fantasy games 2025-08-11 22:39:01 +10:00
Stenzek
fc129a9733 GameDB: Alien Resurrection
Needs PGXP-CPU for gaps in geometry.
2025-08-11 13:20:04 +10:00
Stenzek
cdd0086c54 Qt: Fix toggling read/write breakpoints 2025-08-11 12:10:14 +10:00
Davide Pesavento
9576a3adf1 Achievements: Fix "beaten" condition (#3506)
Apparently there are sets (e.g. Colin McRae Rally) with zero
progression achievements.
2025-08-11 12:10:01 +10:00
Davide Pesavento
de2d6d1aa0 Qt: More accurate game list column width estimation (#3505)
Three main changes:
1. Use the pixel metrics of the style instead of hardcoded values.
2. Account for the potential sort indicator in the column header.
3. In the two "Size" columns, the largest numerical value does not
   necessarily result in the widest text string, so just use the
   value 8888.88 to estimate the width (we assume that 8 is the
   widest digit, which is true for many proportional fonts).
2025-08-11 12:09:52 +10:00
Stenzek
c519d3ca76 GameDB: Add analog joystick to supported games
Data from manual testing and https://docs.google.com/spreadsheets/d/11xMh5utlKDukC3sWWQUUWPj4NSrJH5ouvOsHFRC_egs/edit?usp=sharing
2025-08-10 14:41:00 +10:00
Stenzek
2a2a011854 FullscreenUI: Improve title padding of achievements
Need to redo this whole dialog's layout, but this'll do for now.
2025-08-09 21:19:43 +10:00
Davide Pesavento
d65c8a3073 Achievements: Keep track of the earliest unlocked win condition (#3504)
For sets that have more than one win condition, e.g. RE2.
2025-08-09 18:01:01 +10:00
Stenzek
9b99d997f5 Achievements: Fix display of game completion date 2025-08-09 17:03:50 +10:00
Davide Pesavento
b75be05971 Achievements: Fix counting progression achievements (#3503) 2025-08-09 16:40:31 +10:00
Stenzek
a84d583c42 CI: Missed one workflow 2025-08-09 16:40:10 +10:00
Stenzek
7830a6d236 Deps: Bump to SDL3 3.2.20 2025-08-09 13:53:26 +10:00
Davide Pesavento
a5c61383a8 GameDB: Disable disc speedup on MDEC for Star Ocean - The Second Story 2025-08-09 12:47:36 +10:00
Davide Pesavento
4e662f1fff GameDB: Add compatibility rating to a couple of games 2025-08-09 12:47:36 +10:00
Davide Pesavento
474d5dc9db GameDB: Delete obsolete comment
Works fine for me with fast boot and even with maximum disc speedup.
2025-08-09 12:47:36 +10:00
Davide Pesavento
2f8460b90c GameDB: Disable disc speedup on MDEC for Chrono Cross 2025-08-09 12:47:36 +10:00
Davide Pesavento
1984d8c85b GameDB: Disable widescreen for Arc the Lad II 2025-08-09 12:47:36 +10:00
KamFretoZ
20e9b8d271 Qt: Fix buffer size help text (#3501) 2025-08-09 12:47:16 +10:00
Stenzek
42dc5e416d CI: Fix PR builds failing 2025-08-09 12:46:45 +10:00
Stenzek
09e785555d Qt: Fix updater download size display 2025-08-08 23:54:39 +10:00
Stenzek
45a2257436 CMake: Update version requirements 2025-08-08 23:54:39 +10:00
Stenzek
5fc4fbcf36 Qt: Improve display of version in updater 2025-08-08 23:37:25 +10:00
Stenzek
aa2a0cddb5 Data: Update SDL game controller database 2025-08-08 23:32:33 +10:00
Stenzek
e38039873e Achievements: Infer and display beaten/completed time 2025-08-08 23:32:33 +10:00
Davide Pesavento
5c48f853da GameDB: Fix cropping in Tomb Raider 4 & 5 (#3500) 2025-08-08 23:15:26 +10:00
KamFretoZ
ebbc1e98b6 Qt/Updater: Move Download Size indicator to the top (#3499) 2025-08-08 23:15:08 +10:00
Stenzek
edd63dfd9c Qt: Remove now-unused resize column helpers 2025-08-07 21:26:40 +10:00
Stenzek
670027107e Qt: Use header resize mode for disc windows 2025-08-07 21:26:40 +10:00
Stenzek
93d6fc64da Qt: Use header resize mode for memory card editor 2025-08-07 21:26:40 +10:00
Stenzek
c6c8039211 Qt: Use header resize mode for settings panels 2025-08-07 21:26:40 +10:00
Stenzek
bb7833168e Qt: Use header resize mode for memory scanner 2025-08-07 21:03:06 +10:00
Stenzek
73f326cd75 Qt: Use header resize mode for game list column widths
Simpler code, no need for workarounds in showEvent() either.
2025-08-07 21:00:22 +10:00
Stenzek
76fdbb0b38 Qt: Add tooltips for more fields in game list 2025-08-07 20:49:46 +10:00
Stenzek
a080228ee5 Qt: Don't reset model for every scanned game
Make the UI a little more responsive.
2025-08-07 20:49:46 +10:00
Davide Pesavento
2669b026d7 Qt: Remove obsolete comment
The logic was changed in 281119b812
2025-08-07 20:49:36 +10:00
Davide Pesavento
bc908aa4cc GameDB: Adjust crop area for Silent Hill 2025-08-07 20:49:36 +10:00
Stenzek
d2caabd04a Qt: Fix exit on separate window close with FSUI active 2025-08-03 15:15:47 +10:00
Stenzek
a2222d805b Qt: Fix inability to exit with HC mode active 2025-08-03 15:15:47 +10:00
Stenzek
501380ec7c Achievements: Split up overlay setting
Split into challenge indicator modes, leaderboard trackers, and progress
indicators.
2025-08-03 15:15:47 +10:00
Stenzek
e98871ad47 Settings: Remove middle padding
Why did I do this...
2025-08-03 12:27:14 +10:00
Stenzek
5c682d2325 ImGuiOverlays: Frame time history is aligned 2025-08-02 17:44:53 +10:00
Stenzek
628e41f849 ImGuiManager: Don't render when skipping present
Fixes very slow scrolling in save state selector when fast forwarding,
and generally just giving a "true" DeltaTime is probably a good thing.
2025-08-02 14:41:01 +10:00
Stenzek
fe11c658ee ImGuiOverlays: Fix save state selector out-of-order drawing
Specifically the animated background appearing in front of the
thumbnails.
2025-08-02 14:41:01 +10:00
Stenzek
be48e5c681 dep/imgui: Demo window should not enabled 2025-08-02 14:41:01 +10:00
Stenzek
143ae49f2c AudioStream: Use larger target size only when intentionally running slow
Fixes buffer underruns at fast or slow speed settings.
2025-08-02 14:41:01 +10:00
Stenzek
d3f04dcda9 AudioStream: SIMD averaging window calculation 2025-08-02 14:15:43 +10:00
Stenzek
9b4698d48c AudioStream: Back off resets that don't pass threshold over time
That way a very occasional lag/overflow doesn't cascade into
unnecessary tempo adjustment.
2025-08-02 14:15:41 +10:00
Stenzek
f464d42be5 AudioStream: Fix glitches when disabling fast-forwarding
Usually happened at high frame rates.
2025-08-02 13:33:52 +10:00
Stenzek
6c9d339855 PerformanceCounters: Align to 4 elements
And use minv()/maxv().
2025-08-02 13:33:52 +10:00
Stenzek
b81dfa205c GPU: Simplify screenshot size calculation
And don't miscalculate it for some games.
2025-08-01 19:50:27 +10:00
Stenzek
4644db00ea GPU: Fix screenshot size in uncorrected mode 2025-07-31 23:30:07 +10:00
Stenzek
a27fedae86 Qt: Various fixes to memory scanner UI
Reduce repetition in formatting.
Make formatting consistent between saving/loading watches.
Fix description display.
2025-07-30 22:39:53 +10:00
Stenzek
02a1ccbcdc Qt: Persist memory scanner watch list across instances
i.e. save it to a file.
2025-07-30 22:21:35 +10:00
Stenzek
52d9f73f98 Misc: Replace a bunch of static qualifiers with inline
Allows deduplication, shaves a couple percent off the debug binary size.
Release binary size difference is negligible.
2025-07-30 21:43:12 +10:00
Stenzek
c8dd9995ec GameDatabase: Remove redundant SetRymlCallbacks() 2025-07-30 21:12:38 +10:00
Stenzek
fef553ff12 Qt: Display 'First Value' in memory scanner 2025-07-30 21:08:38 +10:00
Stenzek
a9ce005a20 Qt: Fix maximized state not saving to config
Restores the "old" position when restoring again. Except on Wayland,
where nothing works.
2025-07-30 20:30:55 +10:00
Stenzek
3768940fbb Qt: Fix assertion on shutdown after resize 2025-07-30 20:18:42 +10:00
Stenzek
690f843e2a Qt: Auto switch between any/changed values in memory scanner 2025-07-29 23:10:25 +10:00
Stenzek
5ed7961390 Qt: Refuse to start in known broken environments 2025-07-29 23:10:25 +10:00
Stenzek
30df16cc76 Scripts: Remove PKGBUILD
I originally provided this an alternative to the broken AUR packages.

However, it seems that Arch users would rather use broken packages and
keep complaining to me instead of their packager. I specifically forbid
packages for DuckStation (see README.md), and there's no way to request
removal of these packages without handing my details over to a
distribution I want nothing to do with.

So this is step one. Next step will be removing Linux support entirely,
because I'm sick of the headaches and hacks for an operating system that
only compromises 2% of the userbase, and I don't even use myself. But I'm
hoping the Linux community will be reasonable, because as someone giving
up my free time and not being compensated in any way, I shouldn't have
to deal with this.

Just grep the source for "wayland" and you'll see what I mean.
2025-07-29 23:10:22 +10:00
Stenzek
ce53e29997 Qt: Fix possible crash on shutdown 2025-07-29 20:56:58 +10:00
Stenzek
e5593c973f CI/Flatpak: Hopefully fix build cache
If this doesn't work, just going to remove it completely. So far past
the point of caring.
2025-07-29 17:37:09 +10:00
Stenzek
acf78970c6 Qt: Create main window before starting EmuThread
Stops signals such as achievements active changed being lost.
2025-07-29 17:23:18 +10:00
Stenzek
f569448ea1 System: Centralize pause checks 2025-07-29 17:23:18 +10:00
Davide Pesavento
fbca692629 GameDB: Set max speedup cycles to 70000 for Resident Evil 2 (#3496)
Freezes after (some) door transitions otherwise.
2025-07-29 17:23:05 +10:00
Davide Pesavento
e821b13ba2 GameDB: Tweak compat settings for Parasite Eve 2 (#3492)
We no longer need to disable read speedup all the time thanks to the
new DisableCDROMSpeedupOnMDEC trait. Unfortunately we still have to
increase the max speedup cycles to avoid other issues ranging from
the game simply freezing to audio glitches during area transitions.
2025-07-29 17:22:52 +10:00
Stenzek
188be7de05 Deps: Revert Harfbuzz to 11.2.1
Match Qt bundled version. Might help with crashes I can't reproduce in
text shaping.
2025-07-29 13:50:42 +10:00
Stenzek
042930d735 FullscreenUI: Fix focus loss with grid/list button 2025-07-28 20:42:50 +10:00
zkdpower
fac47b135a Update the Simple-Chinese translation to latest. (#3495) 2025-07-28 20:42:12 +10:00
Davide Pesavento
168b80dd49 Qt: Add tooltips to game list 2025-07-27 21:31:30 +10:00
Davide Pesavento
df65879d06 GPU: Fix typo 2025-07-27 21:31:30 +10:00
Stenzek
300d158320 FullscreenUI: Fix clock position in pause menu 2025-07-27 13:45:46 +10:00
Stenzek
5bfe5cf121 dep/imgui: Remap non-breaking space to space
MacOS likes to use them for formatting.
2025-07-27 13:45:08 +10:00
Stenzek
351f67a227 CMake: Use -g1 for Release builds 2025-07-27 13:03:55 +10:00
Davide Pesavento
70d6a2d1af Achievements: Revert back to long date format for unlock/submit time 2025-07-27 13:03:38 +10:00
Davide Pesavento
71591e8219 Qt: Use localized date/time formatting in a few more places 2025-07-27 13:03:38 +10:00
Stenzek
0de3ffab0c Data: Update SDL game controller database 2025-07-27 02:17:18 +10:00
Stenzek
36718c6e99 CMake: Force debug symbols on Linux
Fixes crash backtraces.
2025-07-27 02:15:49 +10:00
Stenzek
634fac4410 CrashHandler: Fix recursive backtrace on Linux 2025-07-27 02:01:58 +10:00
Stenzek
2b18df0910 MediaCapture: Don't crash if video codec supports 0 formats 2025-07-27 01:36:13 +10:00
Stenzek
44237146ef FullscreenUI: Fix remaining fixed date/time formatting locations 2025-07-27 01:25:08 +10:00
Stenzek
29e92705c4 FullscreenUI: Add option to hide grid view labels
Also handle titles that span multiple lines.
2025-07-26 23:24:02 +10:00
Stenzek
96c224497b Qt: Use selected language locale for formatting
But check the prefix against the system locale, so that e.g. en can use
the system country.
2025-07-26 22:33:10 +10:00
Stenzek
c82351a14a Qt: Implement 'System Language' language option 2025-07-26 22:33:10 +10:00
Stenzek
7f5f90338f Qt: Use application locale in most places 2025-07-26 22:33:10 +10:00
Stenzek
ef320c62a3 Qt: Cache app locale object 2025-07-26 22:33:10 +10:00
Stenzek
f91ee34fa4 Qt: Merge qttranslations.cpp with qthost.cpp
No need to keep it separate anymore since we're not precalculating glyph
ranges.
2025-07-26 22:33:10 +10:00
Stenzek
9b353f841e Misc: Use host locale formatting for dates
Fixes achievement unlocks and lasted played times being shown in US
format.
2025-07-26 22:33:09 +10:00
Stenzek
1c8699b8a0 Host: Add FormatNumber()
Formats the argument according to the system locale, instead of C.
2025-07-26 22:33:09 +10:00
Stenzek
e82218f823 Qt: Fix changing language while game running 2025-07-26 22:33:09 +10:00
Stenzek
47fe487c2e README: Add migration instructions for Flatpak->AppImage 2025-07-26 17:36:50 +10:00
Stenzek
83d521f3d8 CMake: Drop Flatpak workarounds
No longer needed since it is using self-contained.
2025-07-26 17:36:50 +10:00
Stenzek
6c4300c6c7 CI/Flatpak: Simplify deps build
I'll probably drop it in the future since there was only one or two
people who indicated that they're using it. But at least now I don't
have another file I need to keep up to date.

So consider the Flatpak package as deprecated.
2025-07-26 17:36:50 +10:00
Stenzek
3426bcdc71 Deps: Update for July 2025
SDL3 3.2.18
harfbuzz 11.3.2
libjpeg-turbo 3.1.1
libpng 1.6.50
libwebp 1.6.0
libzip 1.11.4
2025-07-26 17:36:50 +10:00
Stenzek
ad4a909aa4 FullscreenUI: Fix incorrect parent directory button 2025-07-26 14:03:43 +10:00
Stenzek
37efd34a99 Qt: Drop renderer option from setup wizard
No need when automatic renderer exists.
2025-07-26 14:03:43 +10:00
Davide Pesavento
d63ae9715f GameDB: Add missing controllers and metadata for The Legend of Dragoon 2025-07-26 14:03:32 +10:00
Davide Pesavento
6e63ceb5a2 GameDB: Add missing metadata for Koudelka
And fix the EU and NA release dates
2025-07-26 14:03:32 +10:00
Víctor "IlDucci
d28c0a00b4 Spanish (Spain) update 2025-07-25 (#3490)
- New strings have been translated.
- Corrected a typo in the "seconds" counter.
- Other minor changes.
2025-07-26 14:03:07 +10:00
Stenzek
d0e00178c3 Qt: Fix fullscreen action enabled on startup 2025-07-24 22:05:24 +10:00
Stenzek
a660c13625 System: Always adjust video size for capture
Fixes auto resolution size with non-multiple-of-4 window sizes.
2025-07-24 21:47:09 +10:00
Stenzek
22fb032f91 GPUThread: Fix very rare or impossible FIFO corruption
If the buffer wraps around once, and the GPU thread does not execute any
commands before the CPU thread reaches the end again, it could lose one
buffer's worth of commands.

Also don't keep incrementing the work count while this is happening.
Super unlikely unless a ton of data is being pushed through the FIFO.
2025-07-24 21:08:53 +10:00
Stenzek
13233cc82e PostProcessing/GLSL: Fix compile error with interface blocks 2025-07-24 12:08:53 +10:00
Stenzek
0522b6ffb5 CDImagePPF: Ignore out-of-range sectors 2025-07-23 22:00:13 +10:00
Stenzek
830b812fc7 GameDB: Set max speedup cycles to 40000 for FF8 2025-07-23 22:00:10 +10:00
Stenzek
fe51439c4b GameDB: Set DisableCDROMSpeedupOnMDEC for a couple of games 2025-07-22 23:04:01 +10:00
Stenzek
b6b1a5e33c CDROM: Add option to disable speedup on MDEC/FMVs 2025-07-22 23:03:22 +10:00
Stenzek
4f1af2f6eb Qt: Increase debugger column size 2025-07-22 22:16:25 +10:00
Stenzek
46cf8e68cd SPU: Display reverb environment in debug window 2025-07-22 22:16:25 +10:00
Stenzek
932104c581 SPU: Fix VU meter display when scrolling 2025-07-22 22:16:25 +10:00
Nahuel Gaitan
56b5b337aa PSFLoader: Fix recursive _lib loading (#3489) 2025-07-22 21:08:45 +10:00
Stenzek
46a071f3e7 Qt: Fix disabling of sprite texture filtering option 2025-07-22 20:30:34 +10:00
Stenzek
2e56f5d3ae Qt: Fix another usage of QObject::disconnect() 2025-07-22 20:28:53 +10:00
Stenzek
a5826ea6ae Qt: Hide apply image patches in game settings
Doesn't makes sense, because game settings are applied after
identification.
2025-07-22 20:18:20 +10:00
Davide Pesavento
a34aee68a7 Declare all namespace-scope constants as inline
This is the idiomatic way since C++17
2025-07-22 19:29:37 +10:00
Davide Pesavento
69da2df8e9 Make all single-argument constructors explicit 2025-07-22 19:29:37 +10:00
Davide Pesavento
9ab4e4d70c Qt: Add game list button to toggle game icons (#3488) 2025-07-21 19:05:04 +10:00
Stenzek
51ce5351d7 CI: Pin AppImageTool version
If it breaks something, I kinda don't care. Not worth it for 2% of
users..
2025-07-21 18:51:34 +10:00
Stenzek
cdd054702c CPU: Log on break exception without PCDrv 2025-07-20 21:10:00 +10:00
Stenzek
a5b46f7676 MediaCapture: Fix use-after-free when starting 2025-07-20 21:09:46 +10:00
Stenzek
161637e3b7 Qt: Disconnect safe mode widget on recreate 2025-07-20 16:58:36 +10:00
Stenzek
7c01bde94e Log: Remove redundant channel 2025-07-20 16:58:24 +10:00
Stenzek
9321a32d39 Qt: Fix startup cancellation on window close 2025-07-20 14:21:42 +10:00
Stenzek
f65ca0dab3 FullscreenUI: Don't round achievements inner progress bars 2025-07-20 14:21:42 +10:00
Stenzek
9e17e38c9d FullscreenUI: Custom draw loading screen 2025-07-20 14:21:42 +10:00
Stenzek
3199617124 FullscreenUI: Use layout scale for loading screen 2025-07-20 14:21:42 +10:00
Stenzek
df9506fbf6 FullscreenUI: Center loading screen logo 2025-07-20 14:21:42 +10:00
Stenzek
311e93fae4 FullscreenUI: Use game path for loading screen image
Makes it work with custom titles.
2025-07-20 14:21:42 +10:00
Stenzek
4440ae3b78 GPUThread: Store copy of game info
Don't save it in FullscreenUI.
2025-07-20 14:21:42 +10:00
Stenzek
5fd61b6e3a Qt: Fix disc icon being used for games without icons 2025-07-20 14:21:42 +10:00
Stenzek
df432c6c64 Qt: Fix crash booting unscanned games 2025-07-20 14:21:42 +10:00
shikulja
47d44701fe Update Russian translation (#3486)
* Update Russian translation

* Update Russian translation

* Update Russian translation

* Update Russian translation
2025-07-20 14:21:24 +10:00
Stenzek
a8506f4708 Qt: Disable more actions while system starting 2025-07-19 18:16:15 +10:00
Stenzek
ad53fc2345 Qt: Fix fullscreen UI shutdown on language change 2025-07-19 18:16:15 +10:00
Stenzek
278614a415 FullscreenUI: Display game cover when loading 2025-07-19 18:16:15 +10:00
Stenzek
75314f79de FullscreenUI: Localize base strings (e.g. dir selector) 2025-07-19 18:16:15 +10:00
Stenzek
63e0acbe9c FullscreenUI: Fix held colour in popup menus 2025-07-19 17:20:37 +10:00
Stenzek
3453c897d1 FullscreenUI: Add native cover download 2025-07-19 17:20:37 +10:00
Stenzek
a9862461f3 FullscreenUI: Add modal progress callback 2025-07-19 17:07:34 +10:00
Stenzek
c922893b6f GameDB: Bump MGS max speedup cycles to 100k
Causes screen flickering at 80k, game crash at 70k, still some
flickering at 90k.
2025-07-19 15:11:04 +10:00
Stenzek
3e232b76b3 Qt: Improve more window close behaviour
- Closing FSUI display window without a game running should not exit the
  application.
- Closing display window with FSUI started should exit the application
  in nogui mode.
2025-07-19 14:34:30 +10:00
Stenzek
8bd493eae0 Qt: Re-update main window geometry on nogui exit
Also fix the game list refresh executing on the incorrect thread.
2025-07-19 13:46:33 +10:00
Davide Pesavento
1b56940ad0 Qt: Update menu and toolbar state when toggling fullscreen via double click
Amends 1289e045b9
2025-07-19 12:14:02 +10:00
Davide Pesavento
f446e24b20 Qt: Don't exit fullscreen when switching to game list with RenderToSeparateWindow
Amends 24a16db437
2025-07-19 12:14:02 +10:00
Davide Pesavento
4c12dc8ab9 Qt: Don't enable window size menu if system isn't running (#3484) 2025-07-19 12:10:34 +10:00
Stenzek
24a16db437 Qt: Handle fullscreen cases on MacOS
If the user exits fullscreen with the window button, restore
render to main.
2025-07-19 01:04:22 +10:00
Stenzek
b545671d67 MetalDevice: Retain references to layer
Apparently the allocate method returns +0 references.
2025-07-19 01:04:19 +10:00
Stenzek
210f492487 MetalDevice: Remove pipeline cache
It seems to be broken when appending using from-source created
libraries.

Similar issues have been described in:
- https://bugreports.qt.io/browse/QTBUG-114338
- https://bugreports.qt.io/browse/QTBUG-108216
2025-07-19 01:04:19 +10:00
Stenzek
05dcb17334 Qt: Fix unused lambda capture warning 2025-07-18 20:29:44 +10:00
Stenzek
6615fc79d6 Qt: Work around autouic bug causing unnecessary recompiles 2025-07-18 20:29:24 +10:00
Stenzek
a002fd2672 Qt: Include moc sources in main source
Saves compiling a bunch of files with MSBuild.
2025-07-18 19:59:13 +10:00
Stenzek
fc613a5267 Qt: Fix incorrect placeholders in translations 2025-07-18 18:04:46 +10:00
Stenzek
9e15fe176c CI: Check placeholders in translation strings 2025-07-18 18:04:22 +10:00
Stenzek
9442ba74af Qt: Remove window state save
Instead, explicitly save the toolbar area. Also adds it to the context
menu.
2025-07-18 17:42:01 +10:00
Stenzek
b2ad193178 Qt: Store window geometry in human-readable form 2025-07-18 17:42:01 +10:00
Stenzek
6b969a0b94 Qt: Refactor and remove multiple sources of truth for render-to-main 2025-07-18 16:14:29 +10:00
Stenzek
0f2ef98747 Qt: Turn cover downloader into a non-modal window
Same as the others.
2025-07-18 13:06:01 +10:00
Stenzek
3f2b6995bc Qt: Fix timestamps in log window if file timestamps on 2025-07-18 12:46:58 +10:00
Davide Pesavento
1289e045b9 Qt: Make "Fullscreen" toolbar button and menu item checkable 2025-07-18 12:44:20 +10:00
Davide Pesavento
2f13538cc0 Qt: Fix game list icons when toggling disc set merging
Also, make sure we call beginFilterChange() in the proxy model
as mentioned in the Qt docs.
2025-07-18 12:44:20 +10:00
Davide Pesavento
4b5be29eb2 Qt: Hide GameListWidget buttons instead of disabling them 2025-07-18 12:44:20 +10:00
Davide Pesavento
21f44b3782 Qt: Refactor GameListWidget tool buttons and corresponding menu actions 2025-07-18 12:44:20 +10:00
Davide Pesavento
01b81c74ef Qt: Fix crash on triggering certain actions before display widget is created (#3482) 2025-07-18 12:43:45 +10:00
Stenzek
67381754fa Qt: Fix game start flicker with hide-main-window checked 2025-07-17 21:46:05 +10:00
Stenzek
c6cb3cdd68 Qt: Update Korean translation by Hack茶ん 2025-07-17 21:46:05 +10:00
Stenzek
6ae334b30c Qt: Avoid wildcard disconnect
See https://bugreports.qt.io/browse/QTBUG-134610
2025-07-17 21:46:05 +10:00
Stenzek
4b62ccf2ff Qt: Redirect Qt messages to logger 2025-07-17 21:46:05 +10:00
Stenzek
6f65a15bb9 CrashHandler: Catch SIGABRT 2025-07-17 21:46:05 +10:00
Stenzek
9c81425043 Qt: Fix format strings in es-ES 2025-07-17 21:46:05 +10:00
Stenzek
2aaeaf6f99 Qt: Add missing event type check 2025-07-17 21:46:05 +10:00
Daniel Nylander
da6ba416c9 Updated Swedish translation (#3481) 2025-07-16 17:11:13 +10:00
Stenzek
a890902d5b Qt: Further eliminate redundant window shows
And remove a couple of hacks.
2025-07-16 17:10:31 +10:00
Anderson Cardoso
40b081c8ff Atualiazação Português do Brasil (#3480)
Atualizado para a última versão
2025-07-16 16:39:16 +10:00
Stenzek
b07998512e Qt: Refactor render window lifecycle
Remove multiple sources of truth, eliminate bugs in handling edge cases
when switching between modes.
2025-07-16 16:38:31 +10:00
Stenzek
a5e3f163a5 Misc: Make bitfield unions trivially copyable 2025-07-13 20:29:00 +10:00
Stenzek
8ca68a052a GPUDevice: Remove unused fields 2025-07-13 20:29:00 +10:00
Stenzek
5c7a599cad Qt: Couple of consistency fixes 2025-07-13 20:29:00 +10:00
Stenzek
cd77ace12a FullscreenUI: Fix going back to root directory on Linux 2025-07-13 20:29:00 +10:00
Stenzek
2dc25a07ac NeGconRumble: Remove unused fields 2025-07-13 19:55:38 +10:00
Stenzek
b93353647f Qt: Clear help text map on reload
Saves keeping messages around for pointers that are no longer valid.
2025-07-13 17:32:56 +10:00
Stenzek
8ef97b9b46 FullscreenUI: Sort unlocked achievements by unlock time 2025-07-13 17:29:52 +10:00
Stenzek
be867c815d FullscreenUI: Minor polish to achievements list 2025-07-13 17:29:37 +10:00
Stenzek
43543ddedc FullscreenUI: Improve icons in file selector 2025-07-13 16:54:54 +10:00
Stenzek
3bb67c785e D3DCommon: Load d3d12.dll dynamically 2025-07-13 16:31:49 +10:00
Stenzek
4ead72747b D3DCommon: Load dxgi.lib dynamically 2025-07-13 16:13:19 +10:00
Stenzek
0195b2886e D3DCommon: Load d3d11.dll dynamically 2025-07-13 16:12:44 +10:00
Stenzek
3928eaff54 D3DCommon: Load D3DCompiler dynamically 2025-07-13 16:11:59 +10:00
Stenzek
5e2e39f642 VulkanDevice: Use driver type enum for auto selection 2025-07-13 15:40:53 +10:00
Stenzek
792b72b955 Qt: Reenable WinPanel style for patches
Partial revert of 7eb2b07.

Looks much worse in Fusion/default style.
2025-07-13 15:33:21 +10:00
Stenzek
97a0f4669f ShaderGen: Fix use of reserved 'packed' keyword 2025-07-13 15:28:46 +10:00
Stenzek
1cad6389aa AnalogController: Fix flipped log message 2025-07-13 15:28:46 +10:00
Davide Pesavento
7eb2b07e39 Qt: Don't draw a frame if there are no patches 2025-07-13 15:27:29 +10:00
Davide Pesavento
d0c3f7d5a2 Qt: Reduce layout margins in postprocessing settings
And remove a redundant VBoxLayout
2025-07-13 15:27:29 +10:00
Davide Pesavento
0e9f116a2e Qt: Turn retroachievements.org into a hyperlink 2025-07-13 15:27:29 +10:00
Stenzek
2fad6478b4 CDImage: Include the WAV file's details when incompatible 2025-07-11 21:25:10 +10:00
Stenzek
2308c5ddc6 Qt: Check cache when getting game icon for window
Apparently forgot this...
2025-07-10 21:33:28 +10:00
Stenzek
9e319ff495 FullscreenUI: Avoid ID duplication in choice dialogs
If two items, e.g. discs happen to have the same display name.
2025-07-10 20:39:14 +10:00
Stenzek
00623ebf8b FullscreenUI: Fix rounding on widget grab rects 2025-07-10 20:37:37 +10:00
Stenzek
f21ab0b70a GPUDevice: Fix ARM GPU detection 2025-07-10 19:36:14 +10:00
Stenzek
13e4515118 GPU: Send read command in SW if stats are enabled
Won't do anything, but it does update the counter.
2025-07-10 19:30:35 +10:00
Stenzek
5d42bbc49f GameDB: Force software for X2 - No Relief
Lots of readbacks.
2025-07-10 19:29:50 +10:00
Stenzek
cd2d0503da System: Fix frame advance+runahead stepping 2 frames 2025-07-10 12:43:23 +10:00
Stenzek
e4e57c674d GPUDevice: Use driver type fields 2025-07-10 12:17:11 +10:00
Stenzek
ef26d5cb74 GPUDevice: Backport driver type detection 2025-07-09 22:17:14 +10:00
Stenzek
1e930c4063 ShaderGen: Drop DRIVER_V3D and DRIVER_POWERVR macros
They're not needed anymore.
2025-07-09 22:12:46 +10:00
Stenzek
cc3bc120a4 OpenGLContext: Prefer GLES over GL<3.2
Ends up having a larger feature set in GLSL.
2025-07-09 21:46:45 +10:00
Stenzek
63adf475d4 VulkanDevice: Avoid defaulting to Vulkan for V3D driver
Image copies are broken.

https://discord.com/channels/695640472202379425/695823554712698962/1392128815689629707
2025-07-09 21:20:43 +10:00
Stenzek
b9a9ea220e PostProcessing/FX: Don't try to compile for GL<3.2
No interface blocks or binding layouts. Get a better driver for gosh
sake.
2025-07-09 21:17:25 +10:00
Stenzek
80a689257c PostProcessing/GLSL: Support OpenGL 3.1 2025-07-09 21:16:43 +10:00
Stenzek
742cfcb12b ShaderGen: Emit location qualifiers for SPV without interface blocks
Required for GLSL post-processing with OpenGL 3.1.
2025-07-09 21:15:56 +10:00
Stenzek
2d29c63708 ShaderGen: Emit fallback functions for GLSL < 4.0 2025-07-09 21:15:10 +10:00
Stenzek
601173b01e ShaderGen: Add UseGLSLInterfaceBlocks() 2025-07-09 21:14:51 +10:00
Stenzek
f273dcff18 GameList: Fix possible bad optional unwrap in ApplyCustomAttributes() 2025-07-09 20:05:50 +10:00
Stenzek
6f3a6d7934 Qt: Remove unused includes 2025-07-09 20:05:50 +10:00
Davide Pesavento
1bf248b299 Qt: Swap order of read/seek speedup cycles in Advanced settings
To match the order in Console settings.
2025-07-09 20:05:31 +10:00
Davide Pesavento
a012d496ea Qt: Fix resetting per-game CDROM speedup and SIO settings
Amends d2c09dfaff and 0098c60ee8
2025-07-09 20:05:31 +10:00
Davide Pesavento
cacd174642 Qt: Rearrange log settings checkboxes 2025-07-09 20:05:31 +10:00
Davide Pesavento
002cb942bb Qt: Fix initial UI state of log timestamps checkboxes 2025-07-09 20:05:31 +10:00
Davide Pesavento
d8a267162d Qt: Set default button in settings and ISO browser (#3475) 2025-07-07 22:14:58 +10:00
zkdpower
9ba3129b67 Update the Simple-Chinese translation to latest. (#3474) 2025-07-07 22:12:44 +10:00
Davide Pesavento
041145d336 GameDB: Increase max read speedup cycles for Dino Crisis 1 & 2 (#3473)
Both games freeze almost immediately otherwise.

Also add AnalogController to the first game, but disable auto analog
mode because vibration is supported but the sticks don't do anything.
2025-07-07 22:12:29 +10:00
Davide Pesavento
3f7e5ca1cb Qt: Always connect the open folder button (#3472)
And make the line edit read-only instead of disabling it.
2025-07-07 22:12:07 +10:00
Stenzek
fb7772871c GameDatabase: Use string_view for disc sets
Avoid the allocations, apparently forgot this one.
2025-07-05 14:12:29 +10:00
Stenzek
0a267ce158 Common: Add more tests 2025-07-05 14:12:29 +10:00
Davide Pesavento
9b3a29fb5c GameDB: Increase max read speedup cycles for Castlevania - SotN (#3471)
Allows the game to progress past the first loading screen.
2025-07-05 13:02:45 +10:00
Davide Pesavento
ffe05c853f Increase max read speedup cycles for Breath of Fire IV (#3470)
* GameDB: Increase max read speedup cycles for Breath of Fire IV

Otherwise the game hangs before reaching the start menu.

* GameDB: Drop seek speedup setting already at its default value
2025-07-05 13:02:32 +10:00
Stenzek
7dcdff35cb Qt: Include 'Refresh Progress' button in achievement settings 2025-07-03 19:13:07 +10:00
Davide Pesavento
b08ca9430e GameDB: Disable read speedup in Spyro 2 & 3 (#3464) 2025-07-03 19:12:57 +10:00
Davide Pesavento
3e61a12b0e GameDB: Consistently use title case in genre 2025-07-03 19:12:40 +10:00
Davide Pesavento
66341a12d4 FullscreenUI: Swap file size and uncompressed size in game details 2025-07-03 19:12:40 +10:00
Stenzek
d4cf7f248c FullscreenUI: Fix default displayed value for FF volume 2025-07-02 20:46:50 +10:00
Stenzek
d852149809 FullscreenUI: Add icons to game list detail lines 2025-07-02 20:44:48 +10:00
Stenzek
38022afa25 FullscreenUI: Fix focus loss on F4 to switch view 2025-07-02 20:01:09 +10:00
zkdpower
8484170ece Update the Simple-Chinese translation to latest. (#3468) 2025-07-01 21:20:32 +10:00
Stenzek
c8087204c4 FullscreenUI: Fix highlighted option with 'None' background 2025-07-01 19:45:44 +10:00
Stenzek
ca322449da FullscreenUI: Add 'Compact Mode' for game list 2025-07-01 19:41:02 +10:00
Stenzek
0098c60ee8 SIO: Add debugging option to redirect to TTY
Until I bother to finish my sio branch...
2025-07-01 19:00:17 +10:00
Stenzek
d0f4f579e1 FullscreenUI: Add missing log timestamp preferences 2025-07-01 18:40:33 +10:00
Stenzek
2a6aa89efb FullscreenUI: Avoid more conflicts between emoji and PromptFont
By moving them to the unused range.
2025-07-01 18:38:18 +10:00
Stenzek
5b3e843b08 Qt: Separate window and file log timestamp options 2025-07-01 18:08:41 +10:00
Stenzek
eb503c4029 Qt: Fix 'Log To File' in Debug menu 2025-07-01 17:57:49 +10:00
Stenzek
f123677df4 Log: Fix file log timestamps always enabled 2025-07-01 17:57:38 +10:00
Stenzek
36518a8df5 Bus: Use log colour abstraction for TTY 2025-07-01 17:40:13 +10:00
Davide Pesavento
9e045755a6 FullscreenUI: Add missing std::move (#3467) 2025-06-30 11:49:55 +10:00
Stenzek
b35beb6f24 Qt: Update Korean translation by Hack茶ん 2025-06-30 11:49:24 +10:00
Stenzek
e4761823ad FullscreenUI: Fix fade on system reset/shutdown 2025-06-30 00:42:42 +10:00
Stenzek
518e0194bc MediaCapture: Fix compiler warning 2025-06-30 00:42:33 +10:00
Stenzek
0978e6ecee MediaCatpure: Ensure there are no gaps in sample time 2025-06-29 16:32:49 +10:00
Stenzek
a59b6357b3 MediaCapture: Don't repeat frame rate calculations 2025-06-29 16:30:26 +10:00
Stenzek
ebf5c9d0c1 MediaCapture: Fix HEVC encoding with Media Foundation 2025-06-29 14:20:06 +10:00
Stenzek
9d686f7baf Qt: Hide fullscreen combo if unsupported 2025-06-29 13:20:32 +10:00
Anderson Cardoso
d603e3bc0c Atualização | Idioma Turco (#3466)
* Atualização Português do Brasil

Atualizado para a última versão.

* Atualização | Idioma Turco

Atualizado para a última versão.
Validado por um nativo.
--
Update to the latest version. 
Validated by native speaker.
2025-06-29 13:20:17 +10:00
Stenzek
355c17bde9 FullscreenUI: Fix fade on system start/stop 2025-06-28 12:46:27 +10:00
Stenzek
376a2e8d4d FullscreenUI: Fix crash when loading/saving state
Also fix fade transition.
2025-06-28 12:43:29 +10:00
Stenzek
33b1e82e34 Achievements: Fix imgui assertion in leaderboard view 2025-06-28 12:31:19 +10:00
Stenzek
71a60f95df Data: Update SDL game controller database 2025-06-27 23:41:39 +10:00
Stenzek
5df28de340 Qt: Fix hotkey category heading size on MacOS 2025-06-27 23:40:38 +10:00
Víctor "IlDucci
866b77e229 Spanish (Spain) 2025-06-27 translation update (#3465)
- Translated all new strings.
2025-06-27 21:48:50 +10:00
Stenzek
1b740efc10 FullscreenUI: Avoid ID clash in controller settings 2025-06-27 21:48:00 +10:00
Stenzek
889df1d8be VulkanDevice: Only reset descriptor pool if used
Save a tiny fraction of overhead.
2025-06-27 19:47:15 +10:00
Stenzek
2bff2098a1 FullscreenUI: Fix returning to wrong window after back 2025-06-27 17:14:07 +10:00
Stenzek
ebf97c26b8 dep/imgui: Sync to 5ee9c2a
And fix a bunch of local bugs, including random large-font-size glyphs.
2025-06-27 17:07:45 +10:00
Davide Pesavento
280c0036eb FullscreenUI: Change a few icons for improved consistency (#3463) 2025-06-27 17:07:24 +10:00
Stenzek
281119b812 Qt: Always perform update check on startup 2025-06-24 15:34:05 +10:00
Daniel Nylander
a7d0a8a485 Updated Swedish translation (#3461) 2025-06-23 12:41:49 +10:00
Anderson Cardoso
c679ffbac0 Atualização Português do Brasil (#3462)
Atualizado para a última versão.
2025-06-23 12:41:35 +10:00
Stenzek
5b18455536 Qt: Eliminate unnecessary includes in settingwidgetbinder.h 2025-06-22 20:28:05 +10:00
zkdpower
96d0851365 Update the Simple-Chinese translation to latest. (#3460) 2025-06-22 20:25:44 +10:00
Davide Pesavento
9347c00d95 Qt: Refine use of ellipsis in game list context menu (#3459) 2025-06-22 15:26:33 +10:00
Stenzek
cdc9206b6a Qt: Fix typo in toolbar icon action 2025-06-22 14:30:01 +10:00
Stenzek
ba799f4f88 Qt: Disable toolbar related actions if hidden 2025-06-22 14:05:01 +10:00
Stenzek
6fcb1194d5 FullscreenUI: Further icon improvements 2025-06-22 14:01:56 +10:00
Davide Pesavento
29ec2fea19 Qt: Fix saving toolbar locked state (#3458) 2025-06-22 13:25:26 +10:00
Davide Pesavento
40c495cd19 Qt: Remove last use of SLOT 2025-06-22 13:07:56 +10:00
Davide Pesavento
b67a8c3127 Common: Don't include deprecated (and unused) codecvt header
<codecvt> was deprecated in C++17 and removed in C++26
2025-06-22 13:07:56 +10:00
Davide Pesavento
976bf834ed Qt: Use QDialog::Accepted/Rejected in more places 2025-06-22 13:07:56 +10:00
Davide Pesavento
842f7414d9 Qt: Simplify connecting to QDialogButtonBox signals 2025-06-22 13:07:56 +10:00
Davide Pesavento
175ed8caf3 Qt: Fix default button in ControllerLEDSettingsDialog 2025-06-22 13:07:56 +10:00
Davide Pesavento
f6d10eb5d2 Qt: Fix default button in InputBindingDialog 2025-06-22 13:07:56 +10:00
Davide Pesavento
74f697eb62 Qt: Add button icons to InputBindingDialog 2025-06-22 13:07:56 +10:00
Davide Pesavento
e469e33aac Qt: Fix default button in AudioStretchSettingsDialog 2025-06-22 13:07:56 +10:00
Stenzek
a7f5105073 Qt: Fix toolbar context menu lock inversion 2025-06-22 03:04:09 +10:00
Stenzek
7b1c8a0407 System: Log init/boot time 2025-06-22 02:43:58 +10:00
Stenzek
ee0cb6076c Qt: Add additional toolbar properties for labels/icons 2025-06-22 02:33:00 +10:00
Stenzek
bf36432432 Qt: Swap console/emulation icons
Better match I think.
2025-06-22 02:32:57 +10:00
Stenzek
aafd72efba FullscreenUI: Add cheats/patches icons 2025-06-22 02:32:57 +10:00
Stenzek
f9fb591dc8 Data: Add missing file 2025-06-22 01:11:04 +10:00
Stenzek
82bb29d186 FullscreenUI: Fix extra padding in resume state popup 2025-06-22 01:02:59 +10:00
Stenzek
11bc1935c8 FullscreenUI: Skip drawing background if transparent
Save that fill rate.
2025-06-22 00:59:08 +10:00
Stenzek
f775a6d066 Qt: Fix achievement login tab order 2025-06-22 00:50:40 +10:00
Stenzek
5dd64c89c0 FullscreenUI: Bump animation time for theme change 2025-06-22 00:42:51 +10:00
Stenzek
68fa33e075 FullscreenUI: Polish achievements page 2025-06-22 00:39:00 +10:00
Stenzek
d18910a619 Achievements: Release lock while waiting for HTTP requests 2025-06-22 00:27:48 +10:00
Stenzek
ac9be0110f FullscreenUI: Snap CenterImage() to integer coordinates 2025-06-22 00:03:44 +10:00
Stenzek
11cb2217e0 FullscreenUI: Polish range dialogs 2025-06-21 22:08:33 +10:00
Stenzek
7b03b54539 FullscreenUI: Eliminate last of layout height constants 2025-06-21 22:08:33 +10:00
Stenzek
88a63f04be FullscreenUI: More hardcoded size removal
In achievements and elsewhere.
2025-06-21 22:08:33 +10:00
Stenzek
5063a49f2a FullscreenUI: Remove hardcoded sizes for menu items
Make it dynamic based on content instead.
2025-06-21 22:08:33 +10:00
Stenzek
9127198be7 ImGuiManager: Move font awesome to last priority
Too many glyph conflicts. Fixes coloured icons.
2025-06-21 22:08:32 +10:00
Davide Pesavento
3b90d18c6a Qt: Fix return code confusion in AchievementLoginDialog
We were passing the wrong code to QDialog::done(). Qt defines 0 as Rejected
and 1 as Accepted. This had no practical impact because callers were also
using the inverted logic. The accepted()/rejected() signals were emitted
incorrectly but nothing is using them at the moment.

Still, to prevent further issues and improve code readability, flip the logic
and prefer accept()/reject() over done().
2025-06-21 13:13:31 +10:00
Stenzek
1026902389 Data: Update SDL game controller database 2025-06-19 22:22:08 +10:00
Stenzek
2ac481d2c1 Qt: Fix setup wizard achievements page title 2025-06-19 22:22:00 +10:00
Stenzek
ff0add2ed0 ImGuiManager: Load PF before FA
Works around code point conflicts, for now.

Probably should just reallocate PF in the future though.
2025-06-19 22:17:11 +10:00
Stenzek
6c6cc910e6 DMA: Invalidate code pages on CD-ROM DMA write
Avoids page faulting by invalidating the pages in advance.

Might help with frame time spikes on super low-spec devices.
2025-06-19 21:15:26 +10:00
KamFretoZ
fa0a926133 Deps: Bump FontAwesome to 6.7.2 (#3456) 2025-06-19 20:38:41 +10:00
Stenzek
49d5d8e9a7 Qt: Fix achievement login dialog sizing on MacOS 2025-06-19 19:59:00 +10:00
Stenzek
1653cf82a2 GPU/HW: Fix GLSL ES compile error 2025-06-18 19:28:24 +10:00
Stenzek
42a9d8c353 Qt: Raise updater window if already shown
Too bad it won't work on Wayland. I'm trying to give a good
user experience on a platform that is so developer hostile.
2025-06-18 19:07:37 +10:00
Stenzek
5f885b83b8 Settings: Add missing case statement 2025-06-18 19:03:29 +10:00
Davide Pesavento
6ef3df5a5c Achievements: Use gethostuuid() as machine key on macOS (#3452) 2025-06-18 18:29:26 +10:00
crashGG
99268f22ec Separate mmpx enhance from mmpx (#3453)
Use conditional weak blending instead of pixel copying to eliminate artifacts on straight lines
Reduce algorithm overhead
use explicitly initialize to fix dx11 fxc uninitialized variable false positive

Update gpu_hw_shadergen.cpp

Update gpu_hw_shadergen.cpp
2025-06-18 18:28:19 +10:00
Stenzek
d83ecb0582 Qt: Fix return to desktop mode with -nogui -bigpicture 2025-06-17 18:44:27 +10:00
Stenzek
ce6924df21 Qt: AutoUpdaterDialog -> AutoUpdaterWindow in translations
Hopefully avoid some manual updates.
2025-06-17 18:44:27 +10:00
Stenzek
fa7b4ae9f1 Qt: Convert auto updater to window
And remove the application modality.

Fixes fights between the auto updater and achievement relogin window.
2025-06-17 18:44:27 +10:00
Davide Pesavento
a2bf5b4f50 GameDatabase: Drop "GPU" prefix from PGXP settings in compatibility report 2025-06-17 14:53:45 +10:00
Davide Pesavento
2edcb20930 GameDatabase: Add three missing settings to compatibility report 2025-06-17 14:53:45 +10:00
Davide Pesavento
69399f3449 GameDatabase: Missing newline in compatibility report
And refactor the Append*Setting() functions to reduce duplication.
2025-06-17 14:53:45 +10:00
Davide Pesavento
0c3ad8a78b GameDB: Fix number of players for Syphon Filter 2 & 3 (#3451) 2025-06-17 14:52:46 +10:00
Stenzek
f5c3280202 ImGuiOverlays: Remove unused code 2025-06-15 13:58:09 +10:00
Stenzek
4616dd3293 Qt: Avoid heap string copy for each context menu action
QString is copy-on-write.
2025-06-15 13:57:06 +10:00
Stenzek
308bc5f356 ImGuiOverlays: Warning fixes 2025-06-15 13:31:46 +10:00
Stenzek
35a8bfa469 FullscreenUI: Warning fixes 2025-06-15 13:31:43 +10:00
Stenzek
0c8cf0a4d7 Qt: Fix incorrect help text 2025-06-15 13:24:15 +10:00
Stenzek
466ccc5d88 CI: Use maximum compression for zip builds 2025-06-15 13:24:15 +10:00
Stenzek
7f066c2864 ImGuiOverlays: Fix display with only GPU/latency stats 2025-06-15 13:24:15 +10:00
bl@ck_m@ge
61f3f86bbc GameDB: exclude analog support for Final Fantasy Origins (#3449) 2025-06-15 13:24:02 +10:00
zkdpower
42bf2b3360 update the Simple-Chinese translation to latest. (#3448) 2025-06-15 13:23:49 +10:00
Stenzek
c32e590808 Qt: Don't hold lock while game list context menu active 2025-06-14 15:08:45 +10:00
Stenzek
20b353535d ImGuiOverlays: Backport condition tidy-up 2025-06-14 15:08:28 +10:00
Stenzek
ba6309c458 FullscreenUI: Keep a one-deep previous window stack
Fixes settings close returning to wrong window if opened from game list.
2025-06-14 14:39:22 +10:00
Stenzek
1a39dece6a FullscreenUI: Don't tint background in landing/game list
But keep it for settings etc, since it needs it for readability.
2025-06-14 14:33:07 +10:00
Stenzek
3a7cbc20d9 FullscreenUI: Use horizotal layout for about dialog 2025-06-14 14:10:29 +10:00
Stenzek
e19817c7f9 README: Fix typo 2025-06-14 13:42:02 +10:00
Stenzek
233c342d68 README: Recommend AppImage over Flatpak
Tired of Flathub's infrastructure randomly failing builds, and portal
paths being invalidated every update.

Does anyone actually use this?
2025-06-14 13:37:27 +10:00
Stenzek
3ba05f182f Qt: Use same size for serial across platforms
And center the field to compensate.
2025-06-14 13:25:52 +10:00
Stenzek
b98d521ff9 ImGuiOverlays: Draw larger status indicator icons
Always bugged me, but couldn't justify the rasterization time before
dynamic fonts.
2025-06-14 13:25:22 +10:00
Stenzek
bf4a89e82e Qt: Use GameList::FormatTimespan()
No point duplicating the logic since the core can handle
plural translations now.
2025-06-14 13:12:21 +10:00
Stenzek
9ffded0e73 SmallString: Fix size bug in assign(SmallStringBase&&) 2025-06-14 13:12:02 +10:00
Stenzek
a31d67921b SmallString: Use L instead of L+1
Keep the stack aligned to power of 2.
2025-06-14 13:11:39 +10:00
Davide Pesavento
70225f8345 Always use CTAD with std::unique_lock 2025-06-14 13:10:57 +10:00
Davide Pesavento
2c7d07b245 Qt: Implement reset play time for disc sets 2025-06-14 13:10:57 +10:00
Anderson Cardoso
74838e9bd8 Atualização Português do Brasil (#3444)
Atualizado para a última versão
2025-06-14 13:09:28 +10:00
KamFretoZ
bb76d7cce8 Update Indonesian Translation (#3445) 2025-06-14 13:09:18 +10:00
Davide Pesavento
873c7c9dc3 Qt: Right align size columns in game list view 2025-06-14 13:08:38 +10:00
Davide Pesavento
00330ca391 Qt: Avoid truncating Serial column in game list view on macOS 2025-06-14 13:08:38 +10:00
Davide Pesavento
5dc55bb4a1 Qt: Avoid showing "0 minutes" of played time (#3447) 2025-06-14 13:00:19 +10:00
Stenzek
9c4e15ef1c Host: Remove now-unused ReadCompressedResourceFile() 2025-06-14 02:30:11 +10:00
Stenzek
9ff3edd317 Qt: Disable unmaintained translations
These haven't been touched in 4+ years, and there are very few strings
still valid.

They'll still be built, so you can use them via the ini, but they will
not appear in the dropdown list.
2025-06-14 02:30:11 +10:00
Stenzek
0cf5618a05 FullscreenUI: Fix crash in JogCon controller settings 2025-06-14 02:30:11 +10:00
Stenzek
65ed9b51ab Data: Fix glyph conflict with vibration icon 2025-06-14 02:30:11 +10:00
Stenzek
0026615eb9 Data: Remove unused base fonts 2025-06-14 02:30:10 +10:00
Stenzek
c06da318d6 FullscreenUI: Fix trophy placement on non-square covers 2025-06-14 02:30:10 +10:00
Stenzek
06da45b3f2 FullscreenUI: Polish dialogs 2025-06-14 02:30:10 +10:00
Stenzek
77457a3b1d ImGuiManager: Switch to dynamic fonts 2025-06-14 02:30:10 +10:00
Stenzek
5945153e67 Data: Add variable weight fonts 2025-06-13 22:37:11 +10:00
Stenzek
9c4aaca7c8 FullscreenUI: Avoid losing game list selection inbetween mouse move and popups 2025-06-13 21:42:40 +10:00
Stenzek
a2d351ca90 FullscreenUI: Improve title truncation in game grid
Use the computed text length, rather than an arbitrary size.
2025-06-13 21:26:54 +10:00
Stenzek
39a5bd6e54 FullscreenUI: Remove padding from CD icon
It wasn't even.
2025-06-13 21:26:34 +10:00
Stenzek
94b88fad23 GPU/HW: Avoid texture filter dual-source output when unnecessary
Because we all know how much mobile drivers crapping themselves
whenever anyone mutters dual-source blending.
2025-06-13 21:02:07 +10:00
Stenzek
d37048e4e4 FullscreenUI: Fix animation glitch on choice select 2025-06-13 20:54:50 +10:00
Stenzek
a8db46a6b8 GPU/HW: Use signed difference in luma_distance()
Fixes the warning, and also underflowing, since both were unsigned
it would overflow if the second was greater the first.
2025-06-13 20:54:48 +10:00
Stenzek
ac0c4544e1 GPU/HW: Work around fxc uninitialized variable false positive 2025-06-13 20:54:48 +10:00
Stenzek
824b91a1f8 GPU/HW: Split MMPX to MMPX and MMPX Enhanced 2025-06-13 16:42:32 +10:00
crashGG
98798fec66 mmpx enhance (#3443)
enhance MMPX algorithm, fix some minor graphics defects.

Update gpu_hw_shadergen.cpp
2025-06-13 16:34:54 +10:00
Stenzek
9112e38f4e GPUDevice: Fix incorrect close call during symbol lookup
Not actually hit since all symbols should be present, but just in
case...
2025-06-13 16:29:06 +10:00
Davide Pesavento
36b869003a Qt: Use standard key sequences for main window shortcuts
Notably, this enables command+R to refresh on macOS, where F5
is not commonly used.
2025-06-11 19:51:12 +10:00
Davide Pesavento
e45c04e0dd Qt: Simplify grid layout in game summary widget 2025-06-11 19:51:12 +10:00
Davide Pesavento
5ea64810dc Qt: Consistently use QToolButton for "restore default" action 2025-06-11 19:51:12 +10:00
Davide Pesavento
7752b2bd2d Qt: Remove redundant nested layouts 2025-06-09 22:18:13 +10:00
Davide Pesavento
c7052a1903 Qt: Use restart-line icon for "restore defaults" buttons 2025-06-09 22:18:13 +10:00
Davide Pesavento
a4977f986c Qt: Add icons to buttons in patch settings widget
Similar to the cheat settings page
2025-06-09 22:18:13 +10:00
Davide Pesavento
ba78714d4f Qt: More consistent icon handling 2025-06-09 22:18:13 +10:00
Stenzek
5eb8578edc System: Save undo state on reset 2025-06-08 17:08:52 +10:00
Stenzek
cb2dfabeeb Qt: Backport undo load state timestamps 2025-06-08 17:08:50 +10:00
Stenzek
29e55a2e5b FullscreenUI: Use system scroll rate and layout scale
Makes scrolling feel much more responsive, and doesn't vary
depending on the size of the window.
2025-06-08 16:50:51 +10:00
Stenzek
38aebd0a3e dep/imgui: Add overridable scroll rate 2025-06-08 16:47:34 +10:00
Stenzek
bd9e206165 FullscreenUI: Fix layout calculations in game grid 2025-06-08 12:04:06 +10:00
Daniel Nylander
8d2dec4632 Updated Swedish translation (#3439) 2025-06-08 12:03:56 +10:00
Anderson Cardoso
595f8d0624 Atualização Português do Brasil (#3438)
Atualizado para a última versão.
2025-06-08 12:03:43 +10:00
Davide Pesavento
2326fc20d1 README: Fix typo (#3437) 2025-06-08 12:03:25 +10:00
Stenzek
6bea16b6eb INISettingsInterface: Only set changed if the value actually changes 2025-06-05 20:39:07 +10:00
Stenzek
5f2355510b Qt: Only write settings ini if it is changed
Save some disk writes.
2025-06-05 20:37:57 +10:00
Stenzek
d0b7d9d027 Host: Get rid of base settings interface indirection 2025-06-05 20:37:14 +10:00
Stenzek
9cd371d5ff SettingsInterface: Drop some unused virtual methods 2025-06-05 20:37:14 +10:00
Stenzek
59f7d0b2ff Cheats: Fix compiler warnings 2025-06-05 19:58:45 +10:00
Stenzek
d54077e345 Achievements: Add 'Refresh Progress' option
Manually refreshes the all progress database if you have completed
unlocks on other devices/machines.
2025-06-05 19:58:45 +10:00
Stenzek
0a0379f31f Qt: Make game list scrollbar only visible as-needed 2025-06-05 19:17:07 +10:00
Stenzek
95e085584c Qt: Move list/grid setup to subclasses 2025-06-05 19:16:46 +10:00
Stenzek
808c51b3ce CMake: Bump version requirements
Can't do it for Qt because of course flatpak....
2025-06-05 18:23:36 +10:00
Stenzek
f518b8492c Deps: Version updates
- HarfBuzz 11.2.0
- SDL3 3.2.16
- libpng 1.6.48
- Qt 6.9.1
2025-06-05 17:42:00 +10:00
Stenzek
22089e9b75 Qt: Improve game grid layout calculations
Use grid size instead of icon size/spacing.

Fixes the number of columns changing when different items are visible.

Also restores the old behaviour of dynamic scroll bar visibility.
2025-06-05 17:23:16 +10:00
Stenzek
cb751b0990 Data: Update SDL controller database 2025-06-05 13:35:04 +10:00
Stenzek
0205f9fa04 Achievements: Update progress database unconditionally on unlock
Doesn't make sense to preserve the greater count, since it can be
reset through the RA webpage, and SC/HC seems to work fine here.
2025-06-05 13:35:04 +10:00
BlueInterlude
2f2dcb43cc GameDB: Fix incorrect controller information + Add PlayStation Mouse for Jingle Cats (#3436) 2025-06-04 03:13:10 +10:00
BlueInterlude
52cf394bb2 GameDB: Add PlayStation Mouse Support for Jingle Cats (#3435) 2025-06-04 02:04:23 +10:00
Stenzek
9ab2608ba0 GPU/TextureCache: Fix replacement background name length 2025-06-03 22:55:21 +10:00
Stenzek
5b40d7902a System: Shut down GPU backend before other components
Prevents a rare crash on shutdown if OSD stats were enabled.
2025-06-03 19:06:17 +10:00
Stenzek
7fde697118 GPU/TextureCache: Add merging of adjacent palette records
So a texture spanning multiple pages can be merged at dump time.

Doing a merge instead of a union on the original palette rect
is safer, because gaps won't dump as larger textures with garbage
in the middle.
2025-06-03 19:05:22 +10:00
Stenzek
eee67a30da GPU/HW: Fix off-by-one in sprite UV rect calculation
CheckForTexPageOverlap() makes it exclusive already.

Fixes replacements for FF8 title screen not applying in the third
texture page, because it thought it was sampling from an unwritten
area of VRAM.
2025-06-03 18:54:29 +10:00
Davide Pesavento
e55dabfaa4 GameDB: Two fixes for Alone in the Dark - The New Nightmare (#3434) 2025-06-03 17:59:09 +10:00
Mark Zhuang
62c0a1e7d4 RISCV: fix flush cache for linux riscv when clang <= 18
for __builtin___clear_cache, clang-18 generates __clear_cache:
https://godbolt.org/z/K5Kx6EEhq, which is an empty function.
clang-19 can generates __riscv_flush_icache:
https://godbolt.org/z/TKe6Kh61a
2025-06-03 17:58:38 +10:00
Stenzek
d9367229e9 Achievements: Avoid duplicate tracker display 2025-06-03 17:57:29 +10:00
Stenzek
42813e8840 GameDatabase: Actually disable auto scale for DisableUpdating 2025-06-01 21:19:07 +10:00
Stenzek
ae3b295d95 FullscreenUI: Disable menu item borders by default
Looks nicer.
2025-06-01 15:10:40 +10:00
Stenzek
47405b081c GameDatabase: Disable MSAA with DisableUpscaling 2025-06-01 14:37:16 +10:00
Stenzek
2cc0851116 GameDatabase: Fix DisableUpscaling trait with auto res 2025-06-01 14:37:16 +10:00
Stenzek
fc7934a2be FullscreenUI: Fix nav focus loss in leaderboards
Stops hotkeys triggering when using mouse navigation.

Also fixes the first leaderboard entry not focusing on page swap.
2025-06-01 14:37:16 +10:00
Stenzek
1ad9ca7e90 FullscreenUI: Cancel pending nav on focus reset 2025-06-01 14:37:16 +10:00
CRASHARKI
9d59763bad GameDB: Disable upscaling and filtering in Constructor (#3432) 2025-05-31 14:27:13 +10:00
Davide Pesavento
02d8e14752 ImGuiManager: Avoid deprecated std::memory_order_consume (#3433) 2025-05-31 14:27:02 +10:00
Stenzek
0a0ad3f9e2 Qt: Improve clarity of unknown dump hashes 2025-05-31 03:00:59 +10:00
Stenzek
f2caec801d GameDB: Force full boot for Lomax games
Crashes after FMVs if fast boot is disabled.
2025-05-30 19:26:50 +10:00
Stenzek
2018eb77fe GPU: Adjust draw timing approximation
Cache seems to be able to go up to 128x8? Constructor draws sprites that
fit exactly in the texture cache, and does so within vblank, so it can't
take too long to draw.
2025-05-30 19:26:49 +10:00
CRASHARKI
6d8e111d72 GameDB: Add ForcePGXPCPUMode to all remaining versions of Aladdin (#3431) 2025-05-28 21:42:25 +10:00
Sheng Jiang 蒋晟
b195f747cf implement ExtConstantBitClear/Set on ExtImprovedSlide (#3430) 2025-05-28 21:42:11 +10:00
CRASHARKI
af803eefc1 GameDB: Various fixes to GTA games (#3429) 2025-05-27 22:24:16 +10:00
CRASHARKI
fff7654bc6 GameDB: Asterix does not support analog mode (#3428) 2025-05-27 18:21:54 +10:00
Stenzek
4164b95cb3 ImGuiManager: Make OSD message animation match notifications 2025-05-27 17:58:22 +10:00
Stenzek
2da46f83bb dep/imgui: Fix smooth scrolling with >60hz 2025-05-27 17:21:31 +10:00
Stenzek
6b811df6d0 CDROM: Add "Switch to Next Disc on Stop" option.
NOTE: THIS WILL NOT WORK FOR ALL GAMES.

Plenty of games don't stop the CD-ROM drive when they're expecting a
disc change, leaving us with no way of knowing when it's needed.
2025-05-27 17:10:11 +10:00
Stenzek
24cd6fa11b Hotkeys: Add switch to previous/next disc hotkeys 2025-05-27 17:03:39 +10:00
Stenzek
d885446672 VulkanDevice: Fix manual device selection 2025-05-27 17:03:39 +10:00
Stenzek
1c54047cd1 Qt: Remove redundant vertical layout in console settings 2025-05-27 17:03:39 +10:00
Davide Pesavento
8fa6336a90 Qt: Further polish the layout of some widgets (#3427) 2025-05-27 17:02:46 +10:00
Anderson Cardoso
09a1bfdde3 Atualização Português do Brasil (#3426)
- Novas linhas adicionadas/movidas traduzidas.
- Confirmação de novas linhas de texto.
2025-05-25 13:00:16 +10:00
Víctor "IlDucci
492ff51f40 Spanish (Spain) translation update 2025/05/24 (#3425)
- Translated all the new strings.
- Minor edits on existing ones.
2025-05-25 12:59:58 +10:00
Davide Pesavento
80c9a8d399 Qt: Remove unused ui file 2025-05-24 15:57:05 +10:00
Davide Pesavento
e30c1b53ad Qt: Use grid layout for audio stretch settings dialog 2025-05-24 15:57:05 +10:00
Stenzek
f6aa3eb5b0 Qt: Update glyph ranges 2025-05-24 12:55:59 +10:00
Stenzek
64dfe003b2 Qt: Update status bar visibility on shutdown
Fixes empty widgets being displayed.
2025-05-24 12:55:44 +10:00
zkdpower
7e37849378 update the Simple-Chinese translation to latest. (#3422) 2025-05-24 12:54:37 +10:00
Davide Pesavento
0f5204b31e CI: Pin action-automatic-releases to latest commit (#3423) 2025-05-24 12:54:15 +10:00
Davide Pesavento
c12e7fcc0b Qt: Fix minor typos in graphics settings help text (#3421) 2025-05-23 17:08:53 +10:00
Stenzek
4d5ba3b4e6 VulkanDevice: Tidy up device/extension initialization
Single pass, avoids enabling extensions that will not be used.
2025-05-23 17:06:59 +10:00
Stenzek
32b3ade56c VulkanDevice: Allocate N semaphores for N swap chains 2025-05-23 15:21:49 +10:00
Stenzek
cdadda85b5 Qt: Fix application exiting on fullscreen+lang change 2025-05-23 15:21:49 +10:00
Stenzek
66934cc5b8 System: Include queued frames in input latency stats 2025-05-23 15:16:15 +10:00
Stenzek
03111befb9 Settings: Correct a couple of default values 2025-05-23 15:15:58 +10:00
Stenzek
461c51ff6a Qt: Fix updater crash while game running
Or while fullscreen.
2025-05-20 00:00:41 +10:00
Stenzek
1667179f78 Qt: Updater shouldn't confirm shutdown
Otherwise if it's cancelled we end up in a funky state.
2025-05-20 00:00:38 +10:00
Stenzek
b27e5ac26a Qt: Fix incorrect lock parent 2025-05-19 23:52:11 +10:00
Stenzek
a422402014 CPU: Fix bgez/blez disassembly with non-standard pattern 2025-05-18 13:43:41 +10:00
Stenzek
c7ed3239b7 Qt: Use grid layout for second audio settings panel 2025-05-18 13:33:38 +10:00
Stenzek
54444475f5 Qt: Fix sizing of patch detail widgets 2025-05-18 13:33:21 +10:00
Stenzek
0ee3f235b6 Qt: Fix swapped parameter order in patch info 2025-05-18 12:47:03 +10:00
Stenzek
5e339c8975 dep/rcheevos: Fix buffer reserve estimate 2025-05-18 12:17:53 +10:00
Anderson Cardoso
4748a93b8a Atualização Português do Brasil (#3420)
Atualizaod para a última versão.
2025-05-18 12:14:47 +10:00
Davide Pesavento
06c950c06a GameDB: Disable disc read speedup for Parasite Eve 2 (#3419) 2025-05-18 12:14:32 +10:00
Stenzek
8ee0daaa17 GameDatabase: Bump cache version
Forgot to do this before.
2025-05-17 23:06:36 +10:00
Stenzek
5eedecd811 System: Swap back gamesettings->safe mode order
Fixes e.g. round texcoords warning being shown on games that need it.

But don't display CD speedup warnings if the gamedb will disable them.
2025-05-17 23:06:36 +10:00
Stenzek
9b17e1485d MediaCapture/FFmpeg: Log when dynlib open fails 2025-05-17 23:06:36 +10:00
Stenzek
0aa789d6c9 MediaCapture/FFmpeg: Default to VP9 2025-05-17 23:06:30 +10:00
Stenzek
6baea54e9d MediaCapture/FFMpeg: Re-introduce v7.0.x support
I hate this... thanks flatpak.
2025-05-17 21:48:32 +10:00
Stenzek
84999e0bc9 FileSystem: Handle BOM in ReadFileToString()
Works with UTF-8 BOM, UTF-16 LE + BE.

Fixes DisplayDepth ReShade shader not loading.
2025-05-17 20:27:01 +10:00
Stenzek
e3c0eed3df StringUtil: Add DecodeUTF16String() and BE variants 2025-05-17 20:25:45 +10:00
Stenzek
17dfb95d6a GPU/HW: Fix MSAA+depth buffer combination
Clear should wipe out all samples, copy should copy all samples.
2025-05-17 19:44:23 +10:00
Stenzek
4a707afae1 System: Show safe mode warning after applying gamesettings
Prevents warning about things that have already been disabled.
2025-05-17 18:44:03 +10:00
Stenzek
a6b59f9efe GameDatabase: Add traits for disabling disc speedup 2025-05-17 18:40:58 +10:00
Stenzek
c729515118 AnalogController: Add option to use right stick as shoulder buttons 2025-05-17 18:40:38 +10:00
Stenzek
db80f6fbc5 CI/Flatpak: Disable ffmpeg support
So sick of dealing with fragmented bullshit because different packaging
systems and operating systems have different library versions.

Freedesktop SDK is stuck at ffmpeg 7.0, so it loses support.
2025-05-17 18:11:20 +10:00
Stenzek
22109fc8e0 MediaCapture/FFmpeg: Tidy up format selection
And remove use of deprecated fields.
2025-05-17 18:11:13 +10:00
Stenzek
e439ebc1c6 Deps: Update bundled ffmpeg headers to v7.1.1 2025-05-17 18:10:03 +10:00
Stenzek
d35cefb02a GPU/HW: Check for depth clears for lines 2025-05-17 15:22:01 +10:00
Stenzek
844869c0c1 GPU/HW: Fix precise lines failing depth test 2025-05-17 15:04:22 +10:00
Stenzek
a375d558f6 GPU/HW: ScaleNx/MMPX do not require blending 2025-05-17 14:05:56 +10:00
Stenzek
3d8f6bf7aa GPU/HW: Fix filtered alpha blending in ROV path 2025-05-17 14:05:55 +10:00
Davide Pesavento
401f2652ca Achievements: Use round instead of ceil for unlocked percentage (#3418) 2025-05-17 14:05:41 +10:00
Stenzek
21aaec99f1 Qt: Note when patches are not allowed for achievements 2025-05-17 01:07:55 +10:00
Stenzek
871323f4e1 Cheats: Fix setting overrides applying for blacklisted patches 2025-05-17 00:59:20 +10:00
Stenzek
1547de2b3c Deps: Build Vulkan-Headers before ffmpeg
CI system headers are too old.
2025-05-17 00:05:33 +10:00
Stenzek
481fba357c dep/rcheevos: Sync with branch 2025-05-16 23:51:44 +10:00
Daniel Nylander
4ec372cd4e Updated Swedish translation (#3417) 2025-05-16 23:51:22 +10:00
Stenzek
a5987878be Deps: Version updates
SDL3, ffmpeg.
2025-05-16 22:27:37 +10:00
Stenzek
93e4913f11 Qt: Fix additional padding in patch list 2025-05-16 19:21:37 +10:00
Stenzek
cfb24f930d Qt: Fix revision-specific patches showing in list
It was already filtered in Big Picture Mode.
2025-05-16 19:20:26 +10:00
Stenzek
7368047b49 ImGuiManager: Upload software cursor textures on GPU thread 2025-05-16 19:13:38 +10:00
Stenzek
4ea90f948d CDROM: Display OSD message on backend read fail 2025-05-16 19:06:55 +10:00
Stenzek
7310aa509a CDROM: Stop reading on backend read fail
Instead of panicing. Game's probably just going to crash anyway.
2025-05-16 18:14:08 +10:00
Stenzek
f8b8963776 CDImageDevice: Fix possible invalid optional access 2025-05-16 17:54:02 +10:00
Stenzek
44729000af Qt: Update Korean translation by Hack茶ん 2025-05-14 23:18:23 +10:00
Stenzek
7932618424 Bus: Enable SIO2 on any unknown BIOS
Not all PS2 BIOSes are in the list.
2025-05-14 23:18:23 +10:00
Stenzek
2ed7aa5536 CPU: Clear pending bus error when interpreting block
It can get set from a failed rec access much earlier.

Also eliminates a redundant store from the main interpreter loop.
2025-05-14 23:18:22 +10:00
JukePlz
8382a1ac7b GameDB: Pop'n Tanks! does not support analog mode (#3416)
Only supports vibration.
2025-05-13 21:44:30 +10:00
Stenzek
4bacbc8958 Qt: Eliminate heap allocations in GameListSortModel
More of an issue since the filter is now checking multiple fields.
2025-05-13 21:43:32 +10:00
Stenzek
b91d219524 Qt: Clarify that XInput should only be used for wrappers 2025-05-13 21:31:00 +10:00
Stenzek
2b280bddd0 GPU/TextureCache: Display replacement info on game start 2025-05-13 21:21:16 +10:00
JukePlz
0483117c70 GameDB: Disable auto analog mode for Gex - Deep Cover Gecko (PAL) (#3415)
Language selector only works in digital mode.
2025-05-12 20:58:54 +10:00
zkdpower
2c67c7d287 Update the Simple-Chinese translation to latest. (#3413) 2025-05-12 20:58:43 +10:00
KamFretoZ
085ef31ee8 Qt: Search more things! (#3414)
Co-authored-by: KrossX <2485237+krossx@users.noreply.github.com>
2025-05-12 20:58:36 +10:00
Stenzek
4530301820 dep/rcheevos: Bump to 8a0178d 2025-05-11 14:08:24 +10:00
Stenzek
6cde51b7b5 Achievements: Tidy up API calls 2025-05-11 14:07:31 +10:00
Stenzek
aee66edd6e Achievements: Unload RAIntegration on UI thread
Fixes crash when toggling it on/off.
2025-05-09 20:58:38 +10:00
Stenzek
303ad7cdce Data: Update SDL Game Controller Database 2025-05-07 21:30:49 +10:00
Stenzek
18c5608f7d Qt: Work around MacOS disc change menu bug
QActionGroup usage here was incorrect.
2025-05-07 21:29:39 +10:00
Stenzek
b2dcf39f8b FullscreenUI: Fix possible crash with RAIntegration 2025-05-06 22:50:32 +10:00
Stenzek
e67ce7b54d GameDB: DisablePGXP => DisablePGXPCulling for Cool Boarders 2025-05-06 22:42:06 +10:00
Stenzek
2aea3e1c3c FullscreenUI: Add vertical padding to several windows
Looks less cluttered.

- Achievement/leaderboard lists.
- Game list/game grid.
- Save state selector.
2025-05-06 22:42:06 +10:00
Stenzek
30fe7f3e4a Achievements: Manually generate badge URLs when using RAIntegration
It doesn't fill in these fields (currently at least).
2025-05-06 22:42:06 +10:00
Stenzek
942316b2d0 Log: Fix inconsistent enum ordering 2025-05-06 22:40:21 +10:00
JukePlz
994dd18739 GameDB: Fixes for Cool Boarders and Welcome House (#3412)
* GameDB: Welcome House hash

* GameDB: Force disable PGXP in Cool Boarders

With PGXP on, it crashes, hangs or otherwise renders incorrectly in stage select menu.
2025-05-06 22:40:08 +10:00
Stenzek
03db7ea8ea GPUThread: Remove unnecessary padding 2025-05-05 02:22:57 +10:00
Stenzek
c8a5712c10 FullscreenUI: Fix possible crash with achievements/leaderboards hotkey 2025-05-05 02:22:57 +10:00
Stenzek
d326d307b4 Achievements: Fix memory writes using CPU addresses 2025-05-05 02:22:57 +10:00
Anderson Cardoso
ea58cd1d57 Atualização Português do Brasil (#3411)
Atualizado para a última versão.
2025-05-05 02:22:40 +10:00
Stenzek
ad13b17bea FullscreenUI: Fix slow fadeout on fast forward toggle 2025-05-03 00:46:18 +10:00
Stenzek
6cafb5cdea FullscreenUI: Fix resume state dialog height at some window sizes 2025-05-03 00:45:45 +10:00
Víctor "IlDucci
af5fb6961c Spanish (Spain) translation update 2025/04/26 (#3410)
- Translated latest strings.
- Minor tweaks related to the Game Settings.
2025-05-03 00:44:51 +10:00
Stenzek
8d80ae123d Controller: Remove 'f' from string float values 2025-04-26 14:41:45 +10:00
KamFretoZ
d049b36387 Log: Allow read-only access to the log file (#3409) 2025-04-26 13:03:39 +10:00
Stenzek
611bb8fb4f VulkanDevice: Remove hardcoded 1.0 API version
Been like this for a couple of months, evidently forgot to remove it
when testing...
2025-04-25 17:40:40 +10:00
Stenzek
f8cd1d3d92 Qt: Warn on cheat enable if gamesettings disabled 2025-04-25 15:54:34 +10:00
Stenzek
674816b6eb GameDB: Recompiler ICache for Crypt Killer
Justifier handlers are timing sensitive.
2025-04-24 21:56:37 +10:00
Stenzek
773ec046b5 Justifier: Fix byteswapped RGB colours 2025-04-24 21:41:38 +10:00
Stenzek
589b8f5139 Justifier: Handle byte 4 IRQ enable flag
Fixes games with two justifiers connected concurrently.
2025-04-24 21:41:31 +10:00
Stenzek
740758fdda CPU/Recompiler: Call RaiseBreakException() on BP
For pcdrv.
2025-04-24 10:51:07 +10:00
Stenzek
559f831c30 Achievements: Defer login/game identify until after RAIntegration load 2025-04-23 22:16:27 +10:00
Stenzek
50e99dd1ff D3D12Device: Fix incorrect state when texture uploaded 2x w/o use 2025-04-23 22:16:27 +10:00
Anderson Cardoso
b0172a0afc Atualização Português do Brasil (#3408)
Atualizado para a última versão.
2025-04-23 22:16:09 +10:00
Stenzek
769e6f2bae GPUThread: Fix command size blow-up 2025-04-21 19:10:18 +10:00
Stenzek
1405004fc0 GameDB: Set tolerance for Spider-Man games
Glitch polygons due to sign flipping because coordinates are up around
the 1024 range (CPU::PGXP::TruncateVertexPosition()).
2025-04-21 19:10:13 +10:00
Stenzek
41ee9d9ff0 FullscreenUI: Use path from game list entry on resume
Fixes clean boot failing when selecting a game with a no-longer-valid
path.
2025-04-21 13:30:03 +10:00
Stenzek
50ba0fa5b3 CI: Use flatpak/flatpak-github-actions 2025-04-21 13:12:45 +10:00
Stenzek
b4019f325c GPU/HW: Fix black dots with some texture filters
JINC2 specifically ended up with NaNs propagating through.
2025-04-21 13:06:09 +10:00
Stenzek
f4df18b7cf Cheats: Make FormatCodeForFile() public
Needed for Android.
2025-04-20 00:23:23 +10:00
Stenzek
1caf45cf62 SmallString: Fix possible non-null-termination in set_size() 2025-04-19 23:56:35 +10:00
Stenzek
437430cbc4 System: Pull screenshot format from path extension 2025-04-19 22:49:16 +10:00
Stenzek
1f10cac42a GPUThread: Align commands to 16 bytes
Apparently some of the types end up 16-byte aligned on Android x86_64.
2025-04-19 22:45:21 +10:00
Stenzek
bd558efaaa CMake: Use upstream-compatible Findzstd 2025-04-19 20:43:27 +10:00
Stenzek
876b80ccd2 ImGuiManager: Fix incorrect backend flag on aux window 2025-04-19 18:07:06 +10:00
Stenzek
df2a5a5e67 ImGuiManager: Move drawing out of GPUDevice 2025-04-19 16:21:29 +10:00
Stenzek
46e11d96da CI: Bump flatpak-github-actions version
Maybe fix the cache failing because it was still on v3?
2025-04-19 11:40:55 +10:00
Stenzek
a86eabc1f0 Win32RawInputSource: Fix handling of absolute positioned devices
Maybe? Works in VMware now, I don't have any actual tablets.
2025-04-18 18:48:31 +10:00
Stenzek
75ae7deadb FullscreenUI: Add padding to game list 2025-04-18 14:44:25 +10:00
Stenzek
d840a825e2 CI: Use kde-6.9 flatpak docker image 2025-04-18 14:44:04 +10:00
Stenzek
0003cf7b11 CI/Flatpak: Bump to KDE 6.9 SDK 2025-04-17 22:20:55 +10:00
Stenzek
1fa77e530b FullscreenUI: Center achievement/leaderboard images
Fixes the placeholder image being stretched.
2025-04-17 21:05:54 +10:00
Stenzek
9a6725367b FullscreenUI: Change default background name 2025-04-17 21:05:44 +10:00
Stenzek
def6b76116 FullscreenUI: Make menu item borders optional 2025-04-17 21:05:44 +10:00
Stenzek
5b5eef61d7 FullscreenUI: Increase spacing between menu items 2025-04-17 21:05:44 +10:00
Stenzek
7aa831c8df FullscreenUI: Improve look of slider popups 2025-04-17 21:05:44 +10:00
Stenzek
ddf906f377 FullscreenUI: Polish achievements login dialog 2025-04-17 21:05:44 +10:00
Stenzek
9c819d9676 ImGuiManager: Fix tab key handling 2025-04-17 21:05:44 +10:00
Stenzek
c9ae4dcd0f SPU: Enable VU meter in debug builds 2025-04-17 21:05:44 +10:00
Stenzek
3d2085f797 GPU: Fix some CPU thread state reads 2025-04-14 22:20:29 +10:00
Stenzek
4c1aba62fc System: Remove unused function
And rename instances of "filename" to "path".
2025-04-14 22:20:29 +10:00
Stenzek
a0de2febad GPUThread: Minor logic corrections 2025-04-14 22:19:17 +10:00
Stenzek
b1ce3bf0b1 Data: Fix link in thirdparty.html 2025-04-14 22:19:17 +10:00
Stenzek
751d81eff0 GPU/TextureCache: Handle FetchTexture() fails 2025-04-14 22:19:17 +10:00
Anderson Cardoso
7583425c56 Atualização Português do Brasil (#3407)
Atualizado para a última versão
2025-04-14 22:18:57 +10:00
bl@ck_m@ge
1a5e852ffa GameDB: disable analog support for some demos and beta versions (#3406) 2025-04-14 22:18:46 +10:00
Stenzek
ebf33f32fa FullscreenUI: Crash fix 2025-04-13 13:58:46 +10:00
Stenzek
89301688db Qt: Use grid layout for forms
Fixes inconsistent widget sizes under KDE theme.
2025-04-13 13:58:44 +10:00
Stenzek
2e6c6dffae Qt: Slightly adjust widget sizes
Fixes cut-off with default KDE theme.
2025-04-13 13:58:44 +10:00
Stenzek
cf7feec9c4 Deps: Swap lunasvg for plutosvg 2025-04-13 13:58:44 +10:00
Stenzek
79cb5779b4 Data: Swap svg classes for inline style
plutosvg can't handle classes.
2025-04-13 13:58:44 +10:00
Stenzek
03d6d12b8a Image: Export RGBA8 conversion functions 2025-04-13 13:58:32 +10:00
bl@ck_m@ge
903a1570f1 GameDB: exclude analog support for some Rockman titles (#3404) 2025-04-13 13:58:21 +10:00
shikulja
57fc5b9d23 Update Russian translation (#3405) 2025-04-13 13:54:19 +10:00
Daniel Nylander
46dd32ad4d Updated Swedish translation (#3403) 2025-04-12 21:21:16 +10:00
Stenzek
ca46c11829 FullscreenUI: More string_view usage 2025-04-12 21:14:51 +10:00
Stenzek
65fd6f9ff3 FullscreenUI: Fix crash in hotkey settings 2025-04-12 21:14:47 +10:00
Stenzek
b78d3b4b79 dep/imgui: Update to v1.91.9b 2025-04-12 21:13:59 +10:00
Stenzek
32963c3f6a Controller: Use string_view() for localised strings 2025-04-12 14:51:58 +10:00
Stenzek
057398b4ab FullscreenUI: Mostly replace C string usage with string_view 2025-04-12 14:13:05 +10:00
Stenzek
8f8f7cd1cb Achievements: Queue RAIntegration writes on CPU thread 2025-04-12 12:35:05 +10:00
Stenzek
faa7ca5121 FullscreenUI: Add confirmation to hardcore mode enable/reset 2025-04-12 12:30:53 +10:00
Stenzek
9573286e3b FullscreenUI: Increase notification rounding 2025-04-12 12:30:31 +10:00
Stenzek
c192bd798b Bus: Stub out 0x1F802080
Used by some homebrew.
2025-04-11 22:18:27 +10:00
Stenzek
fca250257c Achievements: Initialize RAIntegration in two parts 2025-04-11 22:13:07 +10:00
Stenzek
78ff3b97b4 dep/rcheevos: Make RAIntegration loadable in two parts
DLL loaded/version checked on core thread, UI initialized on UI thread.
2025-04-11 22:13:07 +10:00
Stenzek
c1e01af511 Host: Expose RunOnUIThread() to core
I hate this, but sadly needed for RAIntegration...
2025-04-11 22:13:07 +10:00
Stenzek
f0d4816de7 RegTest: Add function queueing for RunOnCPUThread() 2025-04-11 22:13:07 +10:00
Stenzek
5f48adb53a RegTest: Compile fix 2025-04-11 22:13:07 +10:00
Stenzek
3b5d2e96f5 GameDB: PGXP-CPU for Spider-Man games 2025-04-11 22:10:37 +10:00
bl@ck_m@ge
12a50fe7c5 GameDB: exclude analog support for some 2D games (#3402) 2025-04-11 22:10:10 +10:00
Stenzek
2eecf6b79d GPU/HW: Clear depth at vblank time in 480i games
If this is a 480i single buffer game, then rendering should complete within one vblank.
Therefore we should clear the depth buffer, because the drawing area may not change.
2025-04-10 22:02:40 +10:00
Stenzek
e7a3465598 Achievements: Display hardcore disabled subtitle in game summary 2025-04-10 21:45:45 +10:00
Stenzek
284b13cd43 Achievements: Fix starting with RAIntegration-forced HC mode 2025-04-10 21:40:34 +10:00
Stenzek
8e73b1db7e Achievements: Display notification on subset complete 2025-04-10 21:32:26 +10:00
Stenzek
6165b504b8 Achievements: Use new badge_url/badge_locked_url fields 2025-04-10 21:24:08 +10:00
Stenzek
4708a8fda4 Achievements: Fix login while ingame 2025-04-10 21:12:35 +10:00
Stenzek
21560537c2 Achievements: Fix crash starting with no game 2025-04-10 02:29:45 +10:00
Stenzek
15a81e5543 Deps: Remove RAInterface 2025-04-10 02:18:17 +10:00
Stenzek
d286b96c2d Achievements: Swap RAInterface for RAIntegration via rc_client 2025-04-10 02:16:12 +10:00
Stenzek
1bb1354d4e Achievements: Use rc_client as source of truth for HC mode 2025-04-10 01:35:10 +10:00
Stenzek
a0aac8ef17 dep/rcheevos: Bump to latest upstream 2025-04-10 01:35:10 +10:00
Stenzek
e41543c38a Achievements: Cache latest/nearest achievement info
When using RAIntegration through rc_client, the rc_client_achievement_t
pointer does not persist after rc_client_destroy_achievement_list().
2025-04-10 01:35:08 +10:00
Stenzek
a310d3a5e7 FullscreenUI: Fix load-and-resume-state HC popup 2025-04-09 22:47:39 +10:00
Stenzek
8e5531eaa2 FullscreenUI: Fix call of moved-from function 2025-04-09 22:41:13 +10:00
Stenzek
8186e615ab ShaderGen: Don't use __VERSION__ for polyfill
Adreno once again is a broken turd and uses 300 even for GLSL ES 3.20.

And to add insult to injury, it reports the errors at the call site
instead of where the function is actually being overloaded...
2025-04-09 13:24:47 +10:00
Stenzek
97c81edf39 FullscreenUI: Android build fix 2025-04-09 13:24:47 +10:00
Stenzek
82d3b6852d CI/AppImage: Include libcom_err.so.2 in cross appimages 2025-04-09 13:24:46 +10:00
Stenzek
182ba2aa7f SPU: Devel build fix 2025-04-08 22:21:12 +10:00
Stenzek
8706f609dd SPU: Add VU meter display in debug/devel builds 2025-04-08 22:06:03 +10:00
Stenzek
0479500357 CPU: Correctly mask upper 1.5GB of KUSEG
Stops fastmem going into a loop when trying to backpatch accesses
above 512MB.
2025-04-08 21:39:29 +10:00
Stenzek
0a1e8e27f0 ShaderGen: Emit packUnorm4x8() for GLSL ES 3.0 2025-04-08 20:11:01 +10:00
Stenzek
7971bb949b GPU/HW: Add Scale2x/Scale3x texture filters 2025-04-08 20:10:58 +10:00
Stenzek
6e02133452 Qt: Fix game list achievement icon spacing at 100% DPI 2025-04-07 21:21:38 +10:00
Stenzek
83f755055b FullscreenUI: Fix long lists not scrolling to selected item 2025-04-07 21:13:52 +10:00
Stenzek
52f8a347c7 FullscreenUI: Fix Toggle Fast Forward being disabled 2025-04-07 20:48:32 +10:00
Stenzek
3ecaffd427 dep/reshadefx: Don't unconditionally emit point size variable
Metal compiler doesn't like it.
And we're only using triangles at the moment anyway.
2025-04-07 20:47:31 +10:00
Stenzek
2bd9e5fbb1 README: Add link to old releases repository
Apparently I forgot to do this when I created it back in Feb...

I can't be bothered to rearchitecture the automatic updater so it
doesn't have the silly 30 tag limit that GitHub imposes on its API
requests by default.
2025-04-06 23:28:55 +10:00
Stenzek
a3a162f724 Data: Update SDL game controller database 2025-04-06 23:20:47 +10:00
Stenzek
dfa96e080d GPU: Implement MMPX texture filter 2025-04-06 23:16:59 +10:00
Stenzek
054e96f46b BIOS: SCPH-7000W is region-free 2025-04-06 23:16:03 +10:00
Stenzek
b794e841a9 Achievements: Improve HC self-disable 2025-04-06 23:16:03 +10:00
Stenzek
5034fb943c Hotkeys: Rearrange categories for some shortcuts and improve naming 2025-04-06 23:16:03 +10:00
Stenzek
e62f3bd4a8 PostProcessing: Show Reshade ui_text style help text 2025-04-06 23:16:03 +10:00
Stenzek
a9f1dd20c3 D3D12Device: Fix GPU-based validation being unconditionally enabled 2025-04-06 23:16:03 +10:00
Stenzek
f55961593a PostProcessing: Display compile errors in OSD 2025-04-06 23:16:03 +10:00
Stenzek
979ad979b9 PostProcessing/FX: Add support for compute shaders 2025-04-06 23:16:03 +10:00
Stenzek
1aabcf1ba7 PostProcessing/FX: Alternate between two 'backbuffers'
Saves video memory, and also fixes shaders that expect each pass's input
to be the output of the previous path without explicitly referencing the
render target.
2025-04-06 23:16:03 +10:00
Stenzek
80cfe59dbe PostProcessing/FX: Allow use of fixed-size render targets
Also obey the ClearRenderTarget flag.
2025-04-06 23:16:03 +10:00
Stenzek
4e7fdc8dbd PostProcessing/FX: Allow frametime as int
But the value will be bogus.
2025-04-06 23:16:03 +10:00
Stenzek
eca113cd76 GPUDevice: Fix/improve compute shader support
Add multiple texture layout with/without UBO.
2025-04-06 23:16:02 +10:00
Stenzek
2a99529473 Deps: April updates
- Harfbuzz 10.4.0
- libpng 1.6.47
- SDL3 3.2.10
- Zstandard 1.5.7
- Qt 6.9.0
- shaderc 2025.1

Flatpak is still stuck on Qt 6.8 as usual.
2025-04-06 12:05:57 +10:00
bl@ck_m@ge
6e39453b29 GameDB: add Digital Contoller support for The Adventure of Little Ralph (Demo) (#3401) 2025-04-06 11:38:00 +10:00
Stenzek
4ead87d191 README: Mention ARM32/ARM64 AppImage builds 2025-04-05 21:54:40 +10:00
Stenzek
584ed4bb38 FullscreenUI: Fix progress bar line at 0% 2025-04-05 21:54:38 +10:00
Stenzek
0f6e5bb1fe FullscreenUI: Fix pause menu achievements text progress colour 2025-04-05 21:54:38 +10:00
Stenzek
079dae37fd FullscreenUI: Use transition for background/theme changes 2025-04-05 15:02:53 +10:00
Stenzek
162150c509 FullscreenUI: Force key nav on first open 2025-04-05 15:02:50 +10:00
Stenzek
64fac4c9d4 Qt: Fix interacting with pause menu after double-click-fullscreen 2025-04-05 15:02:32 +10:00
Stenzek
47e941cdc2 Qt: Fix shutdown from Big Picture exiting application 2025-04-05 15:02:32 +10:00
Stenzek
46ae1780c5 Qt: Fix double-click-fullscreen with notifications up 2025-04-05 15:02:15 +10:00
Stenzek
f05c627e48 Qt: Update glyph ranges 2025-04-04 21:47:08 +10:00
Stenzek
836a0c7322 Qt: Fix achievements text highlight colour
Was only really an issue in the Classic Windows theme I think.
2025-04-04 21:46:38 +10:00
Stenzek
426cdd1611 Qt: Center icons in grid view 2025-04-04 21:46:38 +10:00
Stenzek
f494cb47c4 Qt: Widen status bar widgets
Linux systems with their thicc fonts...
2025-04-04 21:46:38 +10:00
Stenzek
fe60a2a87e CrashHandler: Replace invalid parameter and purecall handlers 2025-04-04 21:46:38 +10:00
Stenzek
c75d5f71b7 CrashHandler: Include assertion/panic information in dumps 2025-04-04 21:46:38 +10:00
zkdpower
b3087657be Update the Simple-Chinese translation to latest. (#3400) 2025-04-04 21:46:27 +10:00
Víctor "IlDucci
fdfbc7f569 Spanish (Spain) translation update 2025/04/03 (#3399)
- Updated Spanish (Spain) translation with latest changes.
- Minor corrections to unify certain user-facing questions and to abbreviate certain strings that would overflow Big Picture UI on a 4:3 display ratio.
- Cleaned up unused translations.
2025-04-04 10:57:36 +10:00
Daniel Nylander
d9363108d1 Updated Swedish translation (#3398) 2025-04-04 10:57:20 +10:00
Anderson Cardoso
1332f6da72 Atualização Português do Brasil (#3397)
Atualizado para a última versão.
2025-04-03 20:56:03 +10:00
Stenzek
ffd6726a59 Qt: Drop -settings/-portable CLI parameters
This hasn't been tested in years, and doesn't makes sense when you
consider other files are saved in the DataRoot directory (e.g. custom
properties, play time, crash dumps, etc).

-portable is redundant as the presence of settings.ini in the AppRoot
will trigger it anyway, therefore it is only relevant for first-time
installs. In which case it's just as much work to create an empty
settings.ini or portable.txt file as it is to create a shortcut with
-portable on the command line.

It was also broken anyway for a long time, and nobody complained.
2025-04-03 19:58:40 +10:00
Stenzek
bbdc6ab4e0 Misc: Fix a bunch of code analysis warnings
Quite a few of these were legitimate.
2025-04-03 19:29:03 +10:00
Stenzek
c7139b943c GPU/HW: Remove redundant check 2025-03-30 23:42:02 +10:00
Stenzek
acd684bca2 D3D12Device: Fix a couple of errors in ROV handling 2025-03-30 23:41:51 +10:00
Stenzek
b798d8f1aa Settings: Add option for enabling GPU-based validation 2025-03-30 23:20:39 +10:00
Stenzek
049ec4af90 CI/Linux: Bump discord-rpc/lunasvg commits 2025-03-30 22:27:59 +10:00
Stenzek
162d742cc0 CDROM: Remove hack for Fighting Force
Instead properly handle the one-sector-delay that occurs when autopause
detects the start of a new track.
2025-03-30 22:00:21 +10:00
Stenzek
8c1f75ab8c GameDatabase: Add overrides for maximum CD speedup cycles 2025-03-30 22:00:21 +10:00
Stenzek
d2c09dfaff Settings: Split read and seek cycles for maximum CD speedup 2025-03-30 22:00:21 +10:00
Stenzek
3292833fb8 FullscreenUI: Add option to turn off animations 2025-03-30 15:58:48 +10:00
Stenzek
04c5a9f1b2 FullscreenUI: Improve leaderboard text contrast 2025-03-30 15:43:15 +10:00
Stenzek
c5cc94c4b7 FullscreenUI: Fix hotkey categories duplicating 2025-03-30 15:22:46 +10:00
Stenzek
64513395f3 FullscreenUI: Add fade transition to most screen changes 2025-03-30 15:22:46 +10:00
Stenzek
e6e6313219 FullscreenUI: Add offscreen-based screen fade 2025-03-30 15:22:46 +10:00
Stenzek
4e2872f248 FullscreenUI: Fix consecutive choice dialogs 2025-03-30 14:45:26 +10:00
Stenzek
2d31bf5685 FullscreenUI: Convert input binding into a PopupDialog 2025-03-30 14:45:26 +10:00
Stenzek
9bcd738f5c FullscreenUI: Make save state selector a main window
More reliable, saves messing around with popups.
2025-03-30 14:45:26 +10:00
Stenzek
3bf5ded0d2 FullscreenUI: Fix various issues
- Pause menu losing key focus the first time it's opened.
- Pause menu being unopenable after close when paused.
- Key nav not being enabled after closing game via main UI.
2025-03-30 11:47:31 +10:00
Stenzek
a3e840526a FullscreenUI: Fix multi-disc selection with duplicate filenames 2025-03-29 21:46:56 +10:00
Stenzek
54c42f9c27 Achievements: Consider all-hidden-leaderboards as no leaderboards
Stops the menu option being available and showing 0 leaderboards.
2025-03-29 20:06:09 +10:00
Stenzek
b4ae19411b Achievements: Show unconfirmed unlocks in pause menu 2025-03-29 20:06:09 +10:00
Stenzek
37230107f4 FullscreenUI: Run idle while notifications/toasts are onscreen 2025-03-29 20:06:09 +10:00
Stenzek
730fa67952 FullscreenUI: Darken titled toast text 2025-03-29 20:06:09 +10:00
Stenzek
3cf2f41723 FullscreenUI: Fix crash changing renderer 2025-03-29 20:06:09 +10:00
Stenzek
ba3c693717 Qt: Fix double memcard warning on shutdown 2025-03-29 18:01:10 +10:00
Stenzek
0687e59bda FullscreenUI: Rewrite popup dialog handling
Add animations, fix background dimming.
2025-03-29 17:57:37 +10:00
Stenzek
576658b6eb Settings: Max speedup cycles should be at least 1 2025-03-28 21:23:32 +10:00
Stenzek
c7504e7016 dep/fmt: Bump to v11.1.4 2025-03-28 20:54:04 +10:00
Stenzek
e4a028834a FullscreenUI: Fix keynav default in open-in-game-list mode 2025-03-28 20:44:54 +10:00
Stenzek
f36062a94e FullscreenUI: Fix duplicate item in advanced settings 2025-03-28 20:40:52 +10:00
Stenzek
9ef7f54f19 FullscreenUI: Enable all windows to nav-wrap
i.e. when pressing down at the end, it wraps to the top.
2025-03-28 20:38:31 +10:00
Stenzek
003518c234 FullscreenUI: Fix nav wrapping if first item is disabled 2025-03-28 20:12:41 +10:00
Stenzek
6f2225fb61 FullscreenUI: Remove redundant ActiveButton() and friends 2025-03-28 19:45:52 +10:00
Stenzek
f80a77fa27 FullscreenUI: Fix popup item border going outside of window 2025-03-28 19:27:24 +10:00
Stenzek
ea3774cece FullscreenUI: Fix setting BIOS to Auto Detect 2025-03-28 18:54:14 +10:00
Stenzek
58bd87666e Qt: Fix crash when FSUI open and game list activated 2025-03-28 17:25:53 +10:00
Stenzek
fbadacae78 CDROM: Fudge track autopause hold position
Fudge the hold position by 2 sectors to reduce the number of GetlocP's
that will return a MSF in the old track.

Works around the music hang in Fighting Force.
2025-03-28 17:24:39 +10:00
Stenzek
ceef7af1da GameList: Fix crash if cache fails to open 2025-03-28 17:07:13 +10:00
Stenzek
ece18d10c5 PCDrv: Allow opening by absolute path 2025-03-24 18:59:15 +10:00
Stenzek
ae9023ddf3 CI: Build armhf AppImages 2025-03-23 23:41:19 +10:00
Stenzek
3f0abccb59 CI: Don't use zlib-ng on cross-compiled AppImages
Seems to be problematic on armhf, and I can't be arsed debugging it.
2025-03-23 23:41:00 +10:00
Stenzek
104c82c2c3 Mini: Fix right button forwarding 2025-03-23 23:39:26 +10:00
Stenzek
2cb6ce635f Mini: Fix non-first game list refresh 2025-03-23 23:39:15 +10:00
Stenzek
4ce001aef3 GameDatabase: Add DisableFullTrueColor trait 2025-03-23 17:08:25 +10:00
Stenzek
1fca8ae6bf FullscreenUI: Fix start-in-game-list mode using grid 2025-03-23 17:02:52 +10:00
Stenzek
3ffd20b833 FullscreenUI: Display game list attributes in darker colour 2025-03-23 16:59:23 +10:00
Stenzek
9411e40c20 FullscreenUI: Fix assert when booting+loading state 2025-03-23 16:43:57 +10:00
Stenzek
03d7af2efc FullscreenUI: Add border rounding to menu items 2025-03-23 16:42:24 +10:00
Stenzek
9020959511 Qt: Add game list background function 2025-03-23 15:58:56 +10:00
Stenzek
98d1c71981 GameDB: Force full true color for Bust a Move 2
Not strictly accurate, but looks better.
2025-03-22 18:32:31 +10:00
Stenzek
741e971681 GPU/HW: Add 'True Color (Full)' dithering mode
This is equivalent to the old 'True Color' mode.

The new 'True Color' mode truncates flat-shaded sprites/polygons
to 16-bit color before drawing. Doing so fixes:

- Menu background in Breath of Fire IV.
- Loading background in JumpStart Wildlife Safari - Field Trip.
- and other similar games.
2025-03-22 18:32:31 +10:00
Stenzek
2d477f80b0 Qt: Add tooltips to setup wizard graphics settings
Same strings as the main graphics settings page, so translation should
be just a matter of accepting them as-is.
2025-03-22 18:32:31 +10:00
Stenzek
2311c8d287 Settings: Convert dithering/true color options to a dropdown
Half of them are mutually exclusive, so this simplifies things.
Fewer options = better, right?
2025-03-22 18:20:51 +10:00
Stenzek
32b09193d1 Qt: Move force video timing to console settings
Since it's related to the region, it makes sense to be in here.
And it frees up precious vertical space.
2025-03-22 18:20:51 +10:00
Stenzek
4afa41b927 Qt: Move async readahead sectors to advanced settings 2025-03-22 18:20:51 +10:00
Stenzek
3ab3e4be06 ImGuiManager: Tweak OSD message rounding 2025-03-22 18:20:51 +10:00
zkdpower
f4e93df1b1 Update the Simple-Chinese translation to latest. (#3395) 2025-03-22 17:10:12 +10:00
Stenzek
115ba4433c CPU/Interpreter: Emulate lo/hi read stall after mult/div
Still need to do the recompiler.
2025-03-22 01:59:00 +10:00
Stenzek
74064af730 GameDB: Set disable scaled interlacing on various games
Fixes intro fade/transitions in Final Fantasy VIII.
Fixes menu corruption in Destruction Derby Raw.
2025-03-22 01:19:01 +10:00
Stenzek
62d7a73381 GPU/HW: Add 'Scaled Interlacing' option
Disabling this option causes rendering to skip N lines instead of 1
line, where N is the internal resolution multiplier.
2025-03-22 01:19:01 +10:00
Stenzek
d176109d3b GPU/HW: Fix incorrect interlaced VRAM extract offset
Fixes exascerbated combing when upscaling.
2025-03-22 01:11:24 +10:00
Stenzek
6eddc0b982 GPUDevice: Don't allow copy-resize between different formats
That's a spec violation.
2025-03-22 01:11:23 +10:00
Stenzek
346f0f945d GameDatabase: Fix incorrect multitap key parsing 2025-03-21 19:11:50 +10:00
Stenzek
de6a8fba51 BIOS: Set priority of v4.1 E to 10
It doesn't have the additional region check.
2025-03-21 19:11:47 +10:00
Stenzek
5c41a48e39 GPU/HW: Fix crash when changing downsampling factor 2025-03-20 21:19:08 +10:00
zkdpower
19c03aff4d Update the Simple-Chinese translation to latest. (#3394) 2025-03-20 21:17:47 +10:00
Anderson Cardoso
fffa44911c Atualização Português do Brasil (#3393)
Atualizado para a última versão.
2025-03-20 21:17:39 +10:00
JukePlz
10fea83b4a GameDB: Intelligent Qube doesn't support analog controller (#3392)
Same for the demos.
2025-03-20 21:17:20 +10:00
Daniel Nylander
eea4159756 Updated Swedish translation (#3391) 2025-03-20 21:17:08 +10:00
KamFretoZ
e5cec05633 Qt/BPM: Add Green Giant Theme (#3390)
WHAT ARE YE DOING IN MY SWAMP???
2025-03-20 21:16:45 +10:00
Stenzek
a1d69982f3 CI: Update AppStream metainfo 2025-03-15 18:49:58 +10:00
Stenzek
e3cb3d029b FullscreenUI: Fix system not unpausing after HC disable popup 2025-03-15 16:27:43 +10:00
Stenzek
27fc7de07a FullscreenUI: Add translucency/shadow to achievement notifications 2025-03-15 16:27:43 +10:00
Stenzek
a1e5bb7bc0 FullscreenUI: Display legend for achievement status icons 2025-03-15 15:58:39 +10:00
Stenzek
61de096d26 FullscreenUI: Add status text (left side of footer) 2025-03-15 15:58:22 +10:00
Stenzek
4f00a7c7c1 FullscreenUI: Add rounding to achievements progress bars 2025-03-15 15:44:23 +10:00
Stenzek
3420af829c FullscreenUI: Display unlock rarity in achievements view 2025-03-15 15:41:30 +10:00
Stenzek
830842891e GameList: Rename max value enum for consistency 2025-03-15 15:03:42 +10:00
Stenzek
dd885cfe2f GameList: Cache invalid entries
Saves repeatedly scanning them every time the application starts.
2025-03-15 15:02:56 +10:00
Stenzek
8a0400ad2c GameList: Don't try to scan gpudump files 2025-03-15 14:46:19 +10:00
Stenzek
bcd4b918dc FullscreenUI: Fix black screen on renderer change 2025-03-15 14:39:22 +10:00
Stenzek
c82c007a75 FullscreenUI: Add settings reset option to settings 2025-03-15 14:33:51 +10:00
Stenzek
0a470067f5 FullscreenUI: Move appearance up in settings order 2025-03-15 14:07:35 +10:00
Stenzek
9734066514 FullscreenUI: Add StaticGray background 2025-03-15 14:05:09 +10:00
Stenzek
2a86faa51e FullscreenUI: Replace landing icons with colourable icons 2025-03-15 13:56:29 +10:00
Stenzek
4bac7cb79e FullscreenUI: Fix some dialogs not being cancellable
i.e. exitable with right mouse click/B button.
2025-03-15 02:18:20 +10:00
KamFretoZ
db3b689166 FullscreenUI: Add Dark Ruby theme (#3389) 2025-03-15 02:17:54 +10:00
Stenzek
1189f53840 FullscreenUI: Add 'Automatic' theme that syncs with Qt 2025-03-15 00:42:02 +10:00
Stenzek
6e27b8ab91 FullscreenUI: Add option to start/open to game list 2025-03-14 23:57:14 +10:00
Stenzek
3d0f038697 FullscreenUI: Move game list settings to main tab
And add resume to game list/grid.
2025-03-14 23:53:50 +10:00
Stenzek
6c867859bf FullscreenUI: Apply theme to loading screen 2025-03-14 23:07:14 +10:00
Stenzek
f11c31b41c ImGuiOverlays: Apply theme to save state selector 2025-03-14 22:58:02 +10:00
Stenzek
cffafad2ca ImGuiManager: Use fullscreen UI theme for OSD 2025-03-14 22:36:14 +10:00
Stenzek
b6fa2cecd3 FullscreenUI: Fix shadowed text alpha again 2025-03-14 22:36:14 +10:00
Stenzek
9c971825a9 FullscreenUI: Apply theme to ingame achievement overlays 2025-03-14 21:22:17 +10:00
Stenzek
c57689cc90 FullscreenUI: Inherit colour alpha for shadowed text 2025-03-14 21:21:56 +10:00
Stenzek
511663198e Qt: Update glyph ranges 2025-03-14 20:52:43 +10:00
zkdpower
531b3e103a Update the Simple-Chinese translation to latest. (#3388) 2025-03-14 20:52:19 +10:00
Stenzek
e422afdec1 FullscreenUI: Improve achievements pause menu overlays
- Add most recent unlock/nearest completion.
- Make it look nicer and better fit with the rest of the interface.
2025-03-14 20:50:20 +10:00
Stenzek
ba3295930c VulkanDevice: Allow 0x0 window size
Fixes minimizing in render-to-separate-window mode.
2025-03-12 23:54:25 +10:00
KamFretoZ
4fc49ee0ca FullscreenUI: Tweak the highlight background color (#3387) 2025-03-12 23:54:15 +10:00
Stenzek
f6296ceb09 Qt: Increase setup wizard dialog height
Needs it on Linux otherwise graphics combos are shrunk.
2025-03-12 01:46:10 +10:00
Stenzek
9a9ed52b70 Qt: Fix vertical alignment in patches page 2025-03-12 01:46:07 +10:00
Stenzek
44af55a77f FullscreenUI: Differentiate title/subtitle colours
Makes it easier to read.
2025-03-12 01:46:04 +10:00
Stenzek
72a0ba1e8e FullscreenUI: Fix pause menu light theme shadow colour 2025-03-12 00:19:32 +10:00
Stenzek
aeadd4c280 FullscreenUI: Move game info to top of pause menu 2025-03-11 23:19:00 +10:00
Stenzek
d6ab840e4b FullscreenUI: Use RetroAchievements game icon as fallback game image 2025-03-11 22:38:43 +10:00
Stenzek
492a55ee8b FullscreenUI: Add icons to achievement list categories 2025-03-11 22:27:08 +10:00
Stenzek
541af8d5de GDBServer: Stub out thread commands 2025-03-11 22:07:18 +10:00
Stenzek
7bae23d79d GDBServer: Implement memory breakpoints 2025-03-11 21:50:26 +10:00
Stenzek
a0c06f8d9c GDBServer: Implement 's' command (single step) 2025-03-11 21:32:03 +10:00
Stenzek
814263b442 GDBServer: Mostly rewrite handlers and fix undefined behaviour
Remove all heap allocations.
Remove copies.
2025-03-11 21:29:29 +10:00
Stenzek
2f5855a7a4 GDBServer: Get rid of <map> usage 2025-03-11 20:37:37 +10:00
Stenzek
cd694c01d8 GDBServer: Improve ack handling
Treat acks as complete packets, that way it doesn't spam an error
when only an ack is sent.
2025-03-11 20:30:47 +10:00
Stenzek
c717f547cf Deps: Update to SDL3 3.2.8 2025-03-10 21:54:45 +10:00
Stenzek
8bffd9725e Qt: Lock system when automatic updater shows
Prevents messyness when launching in fullscreen+big picture.
2025-03-10 21:54:45 +10:00
Stenzek
e25f287d60 Qt: Avoid stuck in temporary render-to-separate mode 2025-03-10 21:54:45 +10:00
Stenzek
9f0bbccd50 Achievements: Fix progress bar text alignment 2025-03-10 21:54:45 +10:00
Víctor "IlDucci
29f19d0ab6 Spanish (Spain) translation update (#3386)
- Adding new strings.
2025-03-09 16:10:49 +10:00
Stenzek
58dc7562a3 GPU/HW: Add in-pass clear depth pipeline
Instead of clearing the entire buffer, we only need to wipe out the
current drawing area. Saves a decent chunk of memory bandwidth in games
that end up spamming clears.
2025-03-07 21:33:06 +10:00
Stenzek
ee6887b68a GPU/HW: Add stat for depth buffer clears 2025-03-07 21:33:02 +10:00
Stenzek
2bfbec3e9e Settings: Use new key name for depth threshold
Because of the changed range.
2025-03-07 21:32:57 +10:00
Stenzek
705fe11e07 Qt: Fix incorrect file filter for memory card import 2025-03-07 21:32:57 +10:00
Stenzek
e73ca9e052 Qt: Fix new range for depth clear threshold 2025-03-07 18:05:20 +10:00
Stenzek
6437a5db60 GPU/TextureCache: Dump textures asynchronously
Saves lagging the emulation.
2025-03-07 16:05:36 +10:00
Stenzek
95797b05f1 GPU: Force early run on GP0 FIFO overflow
And don't crash if a game spams GP0 writes and it overflows.
2025-03-07 15:49:07 +10:00
Stenzek
9939f1cd05 CPU/Interpreter: Use __builtin_{add,sub}_overflow for exceptions
Recompiler already does this.
2025-03-07 15:48:28 +10:00
Stenzek
7eb7ad684c CPU/Recompiler: Remove load delay flag from lwc2
Shouldn't make any difference since it's not a register write.
2025-03-07 15:08:00 +10:00
Stenzek
826f10239c CPU/Recompiler: Flush GTE completion cycle on load without fastmem 2025-03-06 22:41:10 +10:00
Stenzek
78bb14bd23 CPU: Fix disassembly of GTE instructions in log 2025-03-06 22:41:10 +10:00
Stenzek
b230c9c639 CPU/PGXP: Use GTE MAX_Z for Z normalization
Fixes clipping with depth buffer in some games, e.g. Final Fantasy VII battles.
2025-03-06 22:41:10 +10:00
Stenzek
8cfd843d8f System: Fix depth clear threshold not applying immediately 2025-03-06 22:41:09 +10:00
Stenzek
160f1ea8a0 Qt: Fix vibration motor binding not showing some devices 2025-03-06 22:41:09 +10:00
Anderson Cardoso
c3ce0eece2 Atualização Português do Brasil (#3385)
Melhoria de consistência dos textos e adição de novos conforme última atualização mais recente.
2025-03-06 22:40:54 +10:00
bl@ck_m@ge
b8d86a18da GameDB: Kagero II & III 2025-03-04 17:55:00 +10:00
Stenzek
0bf0b5c22b Qt: Fix typo in setup wizard 2025-03-04 14:07:17 +10:00
Stenzek
4c64e4879f Mini: Log fatal errors to stderr 2025-03-04 14:07:17 +10:00
Daniel Nylander
af4eb68065 Updated Swedish translation (#3383) 2025-03-04 14:06:10 +10:00
JukePlz
c775872a6c GameDB: ASCII and VIP demos don't support analog controllers. (#3384) 2025-03-04 14:05:47 +10:00
Stenzek
859f5090c8 FullscreenUI: Update translation strings 2025-03-02 12:01:55 +10:00
KamFretoZ
38146f2023 FullscreenUI: Fix toast colors and add more themes (#3381) 2025-03-02 12:01:27 +10:00
Stenzek
a0fef2d5ab Qt: Merge gamelistmodel.cpp and gamelistwidget.cpp
They're constantly referring to each other.
2025-03-01 18:13:37 +10:00
Stenzek
4bfb37f8fb Qt: Add graphics and achievements to setup wizard 2025-03-01 18:05:48 +10:00
Stenzek
965da856db FullscreenUI: Add additional rounding to some dialogs 2025-03-01 17:10:09 +10:00
Stenzek
34fdbafe85 FullscreenUI: Add drop shadows to most text
Improves readability with custom backgrounds.
2025-03-01 16:00:05 +10:00
Stenzek
9bfc3e90cc FullscreenUI: Hook up dynamic toast colour 2025-03-01 13:10:50 +10:00
Stenzek
9d9da94b7b FullscreenUI: Default to dark theme on unknown value 2025-03-01 13:10:50 +10:00
Stenzek
5a4e87aba3 FullscreenUI: Reorder interface settings to match Qt 2025-03-01 13:10:44 +10:00
KamFretoZ
5dc0a3630a FullscreenUI: Add Themes (#3380) 2025-03-01 12:41:06 +10:00
Stenzek
15fde6a51b CI: Add ARM64 AppImage builds 2025-03-01 01:34:48 +10:00
Stenzek
ea8f3e5e58 Scripts: Support generating both Qt and Mini AppImages 2025-03-01 01:27:29 +10:00
Stenzek
89d9842c7e FullscreenUI: Fix popup title colours 2025-03-01 01:11:26 +10:00
Stenzek
be970bcfe4 Qt: Handle inverted+negated axes when mapping 2025-02-28 18:06:51 +10:00
Stenzek
ec7c83a58e Settings: Fix race toggling OSD messages 2025-02-28 16:29:18 +10:00
Stenzek
6a86c80445 CPU: Correct wording about cop2 and IRQs 2025-02-28 16:29:18 +10:00
Stenzek
37fa0d135c Mini: Add duckstation-mini interface 2025-02-28 16:29:18 +10:00
Stenzek
df9f15eb68 OpenGLDevice: Support SDL window type 2025-02-28 16:29:18 +10:00
Stenzek
ee1a3b904e VulkanDevice: Support SDL window type 2025-02-28 15:46:53 +10:00
Stenzek
4bddd38d70 WindowInfo: Add SDL window type 2025-02-28 15:46:53 +10:00
Stenzek
0733e173b2 FullscreenUI: Add BackgroundProgressCallback 2025-02-28 15:46:53 +10:00
Stenzek
498e7aac56 X11Tools: Load libxcb and friends dynamically 2025-02-28 15:46:53 +10:00
Stenzek
f7f17a077c Cheats: Add Enable8MBRAM option for patches 2025-02-26 22:43:18 +10:00
Anderson Cardoso
0b167aad52 Atualização Português do Brasil (#3379)
Atualizado para a última versão.
2025-02-26 22:42:50 +10:00
Renzo Pigliacampo
08bbb4a981 Updated Spanish (Latin America) translation (#3378) 2025-02-26 22:42:42 +10:00
Stenzek
fbbc4943f6 FullscreenUI: Fix crash in game properties on non-scanned file 2025-02-24 23:48:23 +10:00
Stenzek
eda32e0695 Qt: Fix image key in overlay export 2025-02-23 18:03:02 +10:00
Stenzek
b764ed4682 DDGoController: Fix incorrect translation context 2025-02-23 18:03:02 +10:00
zkdpower
2011c5511c Update the Simple-Chinese translation to latest. (#3377) 2025-02-23 18:02:52 +10:00
Stenzek
3ea26cc910 GPU: Rewrite automatic resolution scaling
Make it play nice with rewind/runahead.
2025-02-21 23:58:05 +10:00
Stenzek
d812463649 Qt: Ensure SIGCHLD is ignored properly 2025-02-21 23:58:04 +10:00
Stenzek
5fea81c07d Qt: Show only HC achievement count if HC == SC 2025-02-21 23:58:04 +10:00
Stenzek
91370ee5ac Achievements: Update both HC and SC counts on unlock/boot 2025-02-21 23:58:04 +10:00
Stenzek
fa3815d681 Achievements: Fix progress database corruption 2025-02-21 23:58:04 +10:00
Stenzek
90cb92bcc7 CI: Ensure libz.so.1 is packaged in AppImage 2025-02-21 23:58:04 +10:00
JukePlz
f2715b39ec GameDB: Falcata - Astran Pardma no Monshou hash (#3376) 2025-02-21 23:31:38 +10:00
bl@ck_m@ge
d5c83a80a3 GameDB: Sorcerer's Maze (#3375) 2025-02-21 23:31:21 +10:00
Stenzek
f96ab3afda Deps: Switch zlib to zlib-ng
Mac is ommitted because the updater is currently still dynamically
linked, and libz is not part of the bundle (yet).
2025-02-20 16:56:43 +10:00
Stenzek
d1b9473cd2 Deps: Update cpuinfo 2025-02-20 16:56:43 +10:00
Stenzek
373c83c357 GameDB: PGXP-CPU for Twisted Metal 2 2025-02-20 13:47:23 +10:00
KamFretoZ
6a0c73b547 Qt: Add AMOLED theme (#3374) 2025-02-20 13:18:27 +10:00
Stenzek
78bd0fdf3e Qt: Always use ARGB32 for padded cover images
Fixes black background around non-square covers.
2025-02-17 22:53:10 +10:00
Stenzek
31a5d8c481 GameDB: Tama - Adventurous Ball in Giddy Labyrinth hash 2025-02-17 22:53:10 +10:00
Stenzek
72ac4f94db CDROM: Increase delay for pause-when-paused
Fixes lockup in Tama - Adventurous Ball in Giddy Labyrinth.
2025-02-17 22:53:10 +10:00
Stenzek
6f25cf31a7 CDROM: Add randomness to repeated seek times
I hate it, but it fixes lockups in Dino Crisis 2, and probably
other games with dodgy code too.

Also Simple 1500 Series Vol. 57 - The Meiro.
2025-02-17 22:52:56 +10:00
Stenzek
2f5c4d819e Common: Add xorshift-based PRNG class 2025-02-17 21:33:37 +10:00
Stenzek
b57049f1aa CI: Enable Wayland on AppImage/Flatpak builds
Might have to revert this, we'll see how many systems it breaks on.
2025-02-17 00:24:52 +10:00
Stenzek
9a75af2fa9 Qt: Explicitly set desktop file path on startup
Fixes window icon when running under Wayland.

Or, well, as much as it can given the fact that smug GNOME developers
think that windows should not be able to set their own icons.
2025-02-16 23:49:19 +10:00
Stenzek
0c30acb285 Qt: Work around QtWayland bugs
- Render to main no longer screws up the game list/menu bar.
- Toggling render to main no longer breaks the main window.

Positioning still sucks, but the various groups involved would
rather sit around arguing with each other rather than actually
shipping solutions ¯\_(ツ)_/¯.
2025-02-16 22:16:19 +10:00
Stenzek
cb10c6fbf4 Qt: Ensure build warning is themed 2025-02-16 22:16:17 +10:00
Stenzek
4ce1b1afed GameDB: Set PGXPPreserveProjFP for Vagrant Story
Improves jitter on character models.

Haven't seen any other game with this much of an impact.
2025-02-16 19:03:09 +10:00
Stenzek
5bd1a492be GameDatabase: Turn PGXPPreserveProjFP into a boolean setting 2025-02-16 19:02:56 +10:00
Stenzek
e688e24eb9 GTE: Use floating-point math for preserve-proj-fp 2025-02-16 18:04:24 +10:00
Stenzek
9928d01ac4 Common: Fix ARM64 build on clang-cl 19
Also fix Vector4 extract32().
2025-02-16 18:03:33 +10:00
Stenzek
cba9d00019 Qt: Further improve async cover loading
- Fix non-square images not centering.
- Fix possible crash when changing scale quickly.
- Avoid repeatedly resizing placeholder.
2025-02-16 13:18:37 +10:00
Anderson Cardoso
b45f9c39c7 Atualização Português do Brasil (#3373)
Atualizado para a última versão.
2025-02-16 13:18:22 +10:00
Stenzek
1b3ca81efc Qt: Fix hotkey search placeholder localisation 2025-02-15 23:02:19 +10:00
Stenzek
369f62318f Cheats: Only display codes for selected revision 2025-02-15 22:45:17 +10:00
shikulja
4562573711 Update Russian translation (#3372)
* Update ts

* Update Russian translation

* .
2025-02-15 22:44:50 +10:00
Stenzek
ce8b1f0996 GPU: Small optimization to lanczos shader
Apparently the Adreno shader compiler can't do this on its own.

~23% performance improvement.
2025-02-15 17:44:41 +10:00
Stenzek
958fd0049c GPU/HW: Don't use shader for self-overlapping copies
If we use the shader here, we're going to immediately end the
render pass since the area we read and wrote to is going to be
dirty again.

This is problematic on Mali where the render passes are really
expensive. Test case: Dino Crisis 2 - open menu
2025-02-15 17:20:30 +10:00
Stenzek
8772c336ec CPU: Don't stall until GTE completion on write
Apparently this is what the real CPU does, and some very optimized
code can run slower if we stall early.

Obviously if you write to a register being read by the command,
things are going to break.
2025-02-15 12:57:18 +10:00
Stenzek
7d80a74dc3 GameDatabase: Remove now-unused traits 2025-02-15 12:57:02 +10:00
Stenzek
2fcf115d0b GameDB: Drop LUT fastmem overrides
No longer needed with the previous commit.
2025-02-15 12:55:07 +10:00
Stenzek
2bfc408242 Bus: Enable mmap fastmem on uppermost KSEG0 mirror
Instead of mapping all the RAM mirrors, we only map the KSEG0
uppermost mirror. This is where some games place their stack, so
we avoid the backpatching overhead/slowdown, but don't pay the
cost of 4x the mprotect() calls when a page's protection changes,
which can have a non-trivial impact on slow ARM devices.
2025-02-15 12:42:43 +10:00
Stenzek
e9bfca8cca System: Add 'Fast Forward Memory Card Access' option
Does what it says on the tin.
2025-02-15 12:38:32 +10:00
Stenzek
13d58d8ed0 Qt: Move fast boot/fast forward to console settings
Makes more sense there, and matches Android.
2025-02-15 12:32:22 +10:00
Stenzek
f4aa5e1b98 MemoryCard: Filename -> Path 2025-02-15 11:39:31 +10:00
Stenzek
e0620fcd40 System: Fix setting-altering game patch behaviour
e.g. overclock was only half applying
2025-02-14 23:50:34 +10:00
Stenzek
bceadadcb4 Image: Fix possible unaligned movaps 2025-02-14 22:51:29 +10:00
Stenzek
6802f77cb9 CrashHandler: More Wcast-function-type-mismatch fixes 2025-02-14 22:06:44 +10:00
Stenzek
af085d7e5a CI: Bump to LLVM/clang 19 2025-02-14 19:25:05 +10:00
Stenzek
ced9ee4b0b Qt: Update glyph ranges 2025-02-14 19:02:22 +10:00
Stenzek
dc6d6b91d4 PostProcessing: Fix abort on slow compile in big picture 2025-02-14 19:01:40 +10:00
Stenzek
5060e72b96 Qt: Fix missing vibration binding for NegConRumble 2025-02-14 19:01:40 +10:00
Stenzek
5ae32d3c70 System: Fix black screen when changing options while paused 2025-02-14 19:01:40 +10:00
Stenzek
953bd0919b RegTest: Fix flipped images in OpenGL
We're reading the framebuffer, not rendered image.
2025-02-14 19:01:40 +10:00
Stenzek
b68d7c8adb Image: Vectorize RGBA8 conversion and add A1BGR5 2025-02-14 19:01:40 +10:00
Stenzek
9b2cf0abbd InputSource: Fix Wcast-function-type-mismatch 2025-02-14 19:01:40 +10:00
Stenzek
5913de947f VulkanDevice: Fix incorrect texture format for A1BGR5 2025-02-14 19:01:40 +10:00
Stenzek
3a44c3a758 GPU: Fix prerotated presenting with OpenGL 2025-02-14 19:01:39 +10:00
Stenzek
995a34e0e3 CMake: Correctly unset host page size if set via cache
Fixes x86 flatpak builds unnecessarily using dynamic page size.
2025-02-14 19:01:39 +10:00
zkdpower
f90fdf66c8 Update the Simple-Chinese translation to latest. (#3371)
* Update the Simple-Chinese translation to latest.
2025-02-14 19:01:28 +10:00
Stenzek
7bc18c8538 DDGoController: Rewrite to support axis input
And add virtual buttons for each of the possible states.
2025-02-12 21:52:02 +10:00
Stenzek
a25d5dcd2f CI: Apply SDL3 joystick patch 2025-02-12 19:24:24 +10:00
Anderson Cardoso
cd89f62935 Atualização Português do Brasil (#3369)
Atualizado para a última versão.
2025-02-12 19:22:13 +10:00
Stenzek
ce616f1c5c Cheats: Reapply frame end codes immediately on reload
Otherwise you end up with a single frame where the old code is used.
2025-02-10 23:45:24 +10:00
Stenzek
c137c562cd Qt: Fix incorrect recommended value 2025-02-10 23:45:24 +10:00
Stenzek
36d5708391 GPU/HW: Fall back to replacements from first disc
So you only need one copy.
2025-02-10 23:45:24 +10:00
Daniel Nylander
f6e8ebec99 Updating Swedish translation (100%) (#3367) 2025-02-10 23:44:23 +10:00
zkdpower
2876713f0f Update the Simple-Chinese translation to latest. (#3368)
* Update the Simple-Chinese translation to latest.

* Update the Simple-Chinese translation to latest.
2025-02-10 23:44:11 +10:00
Stenzek
ef4c00a896 Qt: Use display name for a couple of recommended values 2025-02-10 02:21:19 +10:00
Stenzek
7a587d927f Qt: Fix overlapping widgets in macro trigger shift-click 2025-02-10 02:15:27 +10:00
Stenzek
3eed0d0613 CI/Flatpak: Don't strip SDL3 libraries 2025-02-10 02:01:50 +10:00
zkdpower
788b9cd3bf Update the Simple-Chinese translation to latest. (#3365) 2025-02-10 02:00:38 +10:00
JukePlz
2dfa164629 GameDB: Dezaemon Plus Select 100 does not support analog mode (#3364) 2025-02-10 02:00:08 +10:00
Víctor "IlDucci
c1f8a525ca Spanish (Spain) translation update 2025-02-09 (#3366)
Adding latest changes and cleaning up unused translations.
2025-02-10 01:59:49 +10:00
Stenzek
5fb5dcdd70 Achievements: Improve summary popup
Put hardcore mode notice on its own line, rather than in
parenthesis in the title.
2025-02-09 18:24:06 +10:00
Stenzek
46ae3e55ea Cheats: Show disabled code count when HC/safe mode is active 2025-02-09 17:45:19 +10:00
Stenzek
4ce48abfc1 GPU/HW: Fix incorrect source rect for page replacements 2025-02-09 17:45:16 +10:00
Stenzek
ac4ef4f853 Gt: Update glyph ranges 2025-02-09 16:50:02 +10:00
zkdpower
07f973076d update the Simple-Chinese Translation to latest. (#3363) 2025-02-09 16:49:38 +10:00
Stenzek
8132c51a12 Cheats: Add 'Ignore' field to file format
Codes with Ignore set to true will not be listed/loaded.
2025-02-09 15:58:23 +10:00
Stenzek
4236beabaf System: Fix setting-altering patches not applying on startup 2025-02-09 15:38:12 +10:00
Stenzek
0428a93315 Qt: Fix possible crash when rescanning game list 2025-02-09 15:04:09 +10:00
Stenzek
3e8ef44a1d Deps: Update to SDL3 3.2.4 2025-02-09 15:04:09 +10:00
Stenzek
901927d7fe CDROM: Don't panic on unknown register read 2025-02-09 13:23:37 +10:00
Stenzek
94b2060979 GPU: Clear display texture on fatal error 2025-02-09 13:22:03 +10:00
Stenzek
06b02183cb GPU/HW: Split transparent draws if dual-source blend unsupported
The ordering is not correct otherwise. Ape Escape has a bunch of
overlapping sprites that have a mix of opaque and transparent texels,
and the transparent texels are repeated multiple times when the
opaque texels should cancel them out.

Only affects old Mali drivers.
2025-02-09 13:07:53 +10:00
Stenzek
2663ac9666 CDImage: Improve PBP load error reporting 2025-02-08 17:33:58 +10:00
Stenzek
160c34ef28 CDROM: Avoid additional stat() call loading subchannel
And use BuildRelativePath() for title-based subchannel files.

Fixes flaky loading on Android, some devices return a zero-sized file
when querying a non-existant file.........
2025-02-08 15:54:38 +10:00
Stenzek
81bca06707 System: Add hash to OnGameChanged 2025-02-08 15:03:17 +10:00
Stenzek
acb355a8c3 CDImage: Make .bin loader track length match .cue
Fixes different hashes for loading single-track .bin games directly.
2025-02-08 15:02:56 +10:00
Stenzek
f2cca01e29 ImGuiManager: Fix achievement unlock icon not showing 2025-02-08 01:46:44 +10:00
Daniel Nylander
084422355a Updated Swedish translation (#3362) 2025-02-08 01:46:34 +10:00
Stenzek
063bb96e5d D3D11Device: Always query timestamp before present start
Fixes high GPU usage reporting in D3D11 with AMD GPUs + Optimal Frame
Pacing.
2025-02-07 15:58:35 +10:00
zkdpower
5ae6d9084a update Chinese translation. (#3361)
just UI.
2025-02-07 12:31:58 +10:00
Anderson Cardoso
51480818cd Atualização Português do Brasil (#3360)
Atualizado para a última versão
2025-02-06 22:04:07 +10:00
Stenzek
f8c39ace1c GPU/HW: Warning fix 2025-02-05 22:40:59 +10:00
Stenzek
bee2dabc77 Misc: Replace stringstream str() with C++20 move str()
No extra heap allocation/copy.
2025-02-05 22:38:48 +10:00
Stenzek
8aa97a8118 Data: Update game controller database 2025-02-05 22:14:00 +10:00
Stenzek
2cfc39e874 System: Move cheat reload to Initialize() 2025-02-05 22:13:51 +10:00
Stenzek
57cb2f846e FullscreenUI: Fix system unpausing on shutdown 2025-02-05 20:03:58 +10:00
Stenzek
ecbb79c4bf GPU: Add Lanczos scaling option 2025-02-05 20:01:26 +10:00
Stenzek
99e81f1559 GPU: Fix incorrect condition in WaitForOneQueuedFrame() 2025-02-05 19:31:01 +10:00
Stenzek
c6563a4656 VulkanDevice: Require Vulkan 1.1 for most extension probing
Too much of a headache to deal with these ancient Mali drivers that
support some extensions but not full Vulkan 1.1, and VMA does not
support this scenario.
2025-02-04 17:15:29 +10:00
Stenzek
4ad2d0ac2d GPU: Fix incorrect PAL overscan range 2025-02-03 19:31:23 +10:00
Stenzek
51bef1b3da CMake: Don't print status messages for deps CMakeLists
fmt is noisy.
2025-02-03 00:31:21 +10:00
Stenzek
455836af89 CMake: Check C++20 features that are missing on some systems 2025-02-03 00:30:59 +10:00
Stenzek
cb205c4c36 Qt: Show icon in settings console region dropdown 2025-02-02 22:57:59 +10:00
Stenzek
af277d4d14 Settings: Default to nearest sprite texture filtering
Instead of whatever the 3D texture filter is.

Less confusing since the UI is not disconnected when upgrading from very
old releases, or Android.
2025-02-02 22:57:31 +10:00
Stenzek
59773509af System: Recreate memory save states when device options change 2025-02-02 22:54:32 +10:00
Stenzek
1f5a10371e GPUThread: Handle rare race condition in frame queueing 2025-02-02 22:18:13 +10:00
Stenzek
1ca5782396 Threading: Handle EINTR on sem_wait() 2025-02-02 22:17:56 +10:00
Stenzek
57883910d6 CI: Add ARM64 flatpak build 2025-02-02 18:51:46 +10:00
Stenzek
4ceeb58dbc GPU: Use display size for calculating internal screenshot size
Fixes detail being lost due to added padding when not cropping.
2025-02-02 17:14:35 +10:00
Stenzek
64d3716cfd GPU: Further simplify draw rect calculation
Remove "Stretch Vertically" option, it was very confusing to users.

Integer scale will prefer whichever direction gets a larger draw
rectangle/preserves as much detail.
2025-02-02 17:02:58 +10:00
Stenzek
0c3d55a1a1 GPU: Fix incorrect PAR with overscan cropping 2025-02-02 16:07:06 +10:00
Stenzek
a5940b2e21 GPU: Use constants for display overscan range 2025-02-02 15:39:20 +10:00
Stenzek
7316b011a4 CI: Dependency library updates
HarfBuzz -> 10.2.0
Qt -> 6.8.2
SDL3 -> 3.2.2
SPIRV-Cross -> 1.4.304.0
libjpeg-turbo -> 3.1.0
libpng -> 1.6.45
libwebp -> 1.5.0
libzip -> 1.13.3
shaderc -> 2024.5
2025-02-02 13:56:23 +10:00
Stenzek
24354cb39f GPU: Fix more GPU thread-reading-CPU-thread-settings locations 2025-02-02 13:08:08 +10:00
Stenzek
804d90d48f System: Fix overriding console region 2025-02-02 13:00:18 +10:00
Stenzek
a681386f28 Qt: Fix some options not being disabled with SW 2025-02-01 23:19:12 +10:00
Stenzek
b01c06b412 GPU/TextureCache: Prevent wrapping for replacement lookup
Fixes replacements for 8 and 16-bit textures placed in the right-most
page of VRAM.
2025-01-31 20:56:11 +10:00
Stenzek
635ae5de31 GPU/HW: Don't use sprites-as-fills for small/offscreen points 2025-01-31 19:50:33 +10:00
Stenzek
d65c4efdd8 GPU/TextureCache: Prefill dumped texture list with replacements
Allows skipping dumping replaced textures without replacements enabled.
2025-01-31 15:47:22 +10:00
Stenzek
b5925ab139 Achievements: Include any codepoints above 0x100 in dynamic range 2025-01-31 13:48:57 +10:00
Stenzek
03181d1179 GPUThread: Fix crash during FSUI language switch 2025-01-31 13:47:29 +10:00
Stenzek
96058f5d7e System: Use recreation logic for toggling GPU threading 2025-01-31 12:56:19 +10:00
Stenzek
f7d7eecb6c GPU/TextureCache: Fix replacements starting in second page 2025-01-30 13:33:00 +10:00
Stenzek
44a75d6586 GPUThread: Fix setting change crash with thread off 2025-01-30 13:32:32 +10:00
Stenzek
369879e685 Settings: Log when creating EmuFolders fails 2025-01-30 02:11:23 +10:00
Stenzek
aae7573e63 Achievements: Fix build with regtest 2025-01-30 02:10:49 +10:00
Stenzek
9b6021b79e FullscreenUI: Fix progress bar padding in loading screen 2025-01-30 01:43:22 +10:00
Stenzek
0d9e6bd482 FullscreenUI: Use effective value for achievement options enable 2025-01-30 01:18:47 +10:00
Stenzek
d314b25f91 System: Fix per-game achievements hardcore mode
By mostly reverting 4dd6365a99, I didn't
think of all the implications. Not just per-game HC mode, but it's also
problematic on Android too.
2025-01-30 01:18:47 +10:00
Stenzek
02234715c5 FullscreenUI: Move UpdateRunIdleState() for system soft-fail to host
That way it's always in the correct state for e.g. memory card shutdown
confirmations.
2025-01-29 20:40:14 +10:00
Stenzek
128bab29f8 Host: Allow button title override in ConfirmMessageAsync() 2025-01-29 19:19:53 +10:00
Stenzek
4dd6365a99 System: Simplify HC disable confirm on startup
Use one path on all platforms, always asynchronous.
2025-01-29 19:19:53 +10:00
Stenzek
28f6358ec5 Qt: Use FSUI to service ConfirmMessageAsync() if active 2025-01-29 19:19:53 +10:00
Stenzek
4da7692a2d System: Adjust initialization order to better fit FullscreenUI
Fixes jankyness of rendering the landing page when trying to resume
a game with achievements active, or when loading state.
2025-01-29 19:19:53 +10:00
Stenzek
1b678d0ebc FullscreenUI: Allow using right mouse button for 'back' 2025-01-29 19:19:53 +10:00
Stenzek
224cb6ac8e FullscreenUI: Fix ClosePauseMenu() running on wrong thread 2025-01-29 19:19:49 +10:00
Stenzek
231ba050a2 GPUThread: Switch to borderless if exclusive fullscreen fails
Better than ending up windowed.
2025-01-29 18:20:41 +10:00
Stenzek
e36dbaf255 Qt: Show current fullscreen resolution in UI even if invalid 2025-01-29 18:20:08 +10:00
Stenzek
70c45f7cf8 GPU/TextureCache: Handle replacements larger than 256x256
I left this unfinished because it was a pain...
2025-01-28 17:36:00 +10:00
Stenzek
f58fa2297e GPU/TextureCache: Only use a single palette record for C16
Stops C16 textures larger than 256x256 being split up.
2025-01-28 17:36:00 +10:00
Stenzek
b0c0d6444c GPU/TextureCache: Fix parsing of C16 replacement names 2025-01-28 17:36:00 +10:00
Stenzek
7188ab863a GPU/HW: Treat fill-like sprites as fills if TC is enabled
Umihara Kawase Shun clears the framebuffer with a single large
sprite, which causes the texture cache to think the pages have
been drawn.
2025-01-28 17:35:52 +10:00
Stenzek
d7c78eedce GPU/HW: Fix box downsampling on OpenGL ES 2025-01-28 15:59:35 +10:00
JukePlz
afd619a7d8 GameDB: Pro-Pinball needs same traits as others in the series (#3359)
otherwise hangs on loading and has inferior performance. Probably missed due to title hyphenation.
2025-01-27 13:35:17 +10:00
Stenzek
0665cb5306 FullscreenUI: Further refine achievements login dialog 2025-01-27 13:34:45 +10:00
Stenzek
5630f3958b Qt: Fix loading webp images on Windows 2025-01-26 14:01:42 +10:00
Stenzek
0e3668a7bb GameList: Show achievement information in game list 2025-01-26 13:49:08 +10:00
Stenzek
6512ed8a8c Achievements: Add offline tracking of progress and hash library 2025-01-26 13:49:08 +10:00
Stenzek
d4b0b7fc29 Achievements: Include rc_client version in user agent 2025-01-26 13:49:08 +10:00
Stenzek
6a09d6ecda Achievements: Don't store hash as a string
This is needed to store achievement metadata in the game list.
2025-01-26 13:30:26 +10:00
Stenzek
1bfc4b6e6c dep/rcheevos: Update to 08999e0 2025-01-26 13:30:23 +10:00
Stenzek
21aa6ead5f Scripts: Add script to download/generate achievement database 2025-01-26 00:09:44 +10:00
Stenzek
ca509a8b97 StringUtil: Add fixed-length DecodeHex() 2025-01-25 22:35:06 +10:00
Stenzek
543704d57c HTTPDownloader: Drop some log messages to debug 2025-01-25 22:35:06 +10:00
Stenzek
2b7a4f8d19 Qt: Avoid game list refresh on shutdown
We only need to invalidate the entries that have had their play times
changed, not the entire list.
2025-01-25 19:45:42 +10:00
Stenzek
4e97420b3b InputManager: Switch to SDL3 2025-01-24 15:54:31 +10:00
Stenzek
573b2eb529 SPU: Move device failure message to OSD 2025-01-24 14:54:57 +10:00
Stenzek
9666abc172 FullscreenUI: Hook up to disc change hotkey 2025-01-24 13:47:55 +10:00
JukePlz
9096402a30 GameDB: Rakugaki Showtime does not support analog mode (#3358)
Only supports vibration.
2025-01-24 13:10:32 +10:00
Stenzek
dc5f85a34e System: Display safe mode warning when toggling on 2025-01-24 12:50:35 +10:00
Anderson Cardoso
807094d627 Atualização Português do Brasil (#3357)
Atualizado para a última versão
2025-01-23 12:38:43 +10:00
Stenzek
13c7b8542d GPUThread: Fix starting big picture mode 2025-01-23 12:37:26 +10:00
Stenzek
4da1f613b6 System: Simplify CD speedup warnings 2025-01-23 12:22:32 +10:00
Stenzek
df8822760a GPU/HW: Further tweaks to replacement alpha handling
We can't simply clear the alpha channel unconditionally here, because that
would result in any black pixels with zero alpha being transparency-culled.

Instead, we set it to a minimum value (2/255 in case of rounding error, I
don't trust drivers here) so that transparent polygons in the source still
set bit 15 to zero in the framebuffer, but are not transparency-culled.

Silent Hill needs it to be zero, I'm not aware of anything that needs
specific values yet. If it did, we'd need a different dumping technique.
2025-01-23 12:12:58 +10:00
Stenzek
9113a6e6a6 Qt: Add 'Multiple Devices' to automatic mapping
Also populate the "current device" label with the device from
the config when running the setup wizard, instead of always setting
the label to Keyboard.
2025-01-22 18:38:37 +10:00
Stenzek
b08ab9f712 Qt: Fix border overlay export button 2025-01-22 18:38:37 +10:00
Stenzek
d395be07ee Qt: Fix global setting showing incorrectly for int-list 2025-01-22 18:38:37 +10:00
Stenzek
89504b0184 GPUThread: Push settings through FIFO
Saves the std::function heap allocation.
2025-01-22 18:38:37 +10:00
Stenzek
f045a1742d GPUThread: Fix order of updating state
Fixes unoverwritten textures not dumping on system shutdown.
2025-01-22 18:38:37 +10:00
Stenzek
8eaa1f312d GPU: Fix overlay destination alpha with postfx
Also don't assume the image has premultiplied alpha.
2025-01-22 18:38:37 +10:00
Stenzek
0129679bb0 GPU: Reduce overdraw when using overlays
Clear the four borders individually instead of a blit over the
entire texture.
2025-01-22 18:38:37 +10:00
Stenzek
0166939609 PostProcessing/GLSL: Clear alpha to 1.0 2025-01-22 18:23:12 +10:00
Stenzek
be75a97efe GPUDevice: Fix swap chain clear colour normalization 2025-01-22 18:23:11 +10:00
Stenzek
af58740f5d System: Always display OSD warning messages
I regretted what I did in f2720b98dd
less than a week after I pushed the change.

As a compromise, only display the unsafe settings warnings on startup.
2025-01-22 18:23:10 +10:00
Stenzek
4e588bb6c1 GPU: Fix incorrect interface for postfx config 2025-01-21 20:55:26 +10:00
Stenzek
78f6e11b91 GPUThread: Skip debug window update on Android 2025-01-21 20:22:10 +10:00
Stenzek
19ca9cb47d GPU/HW: Use texture loads for native resolution
Hopefully work around sampling precision issues in older AMD drivers
and Mali Midgard if we're lucky. But I don't have anything this old
to verify with.
2025-01-21 20:15:07 +10:00
Stenzek
080eccd8fc GPUThread: Shutdown instead of panicing on switch failure 2025-01-21 20:12:38 +10:00
Stenzek
9c4b2112ae GPU: Fix incorrect screen draw rect
Fixes loading screen in Alundra 2, as well as incorrect effective
PAR when using None crop mode.
2025-01-21 19:54:54 +10:00
Stenzek
fb3e290133 GPUDevice: Move exclusive fullscreen to features
Also fixes it not enabling in D3D12 renderer.
2025-01-21 19:12:44 +10:00
Stenzek
389276bb03 GPUDevice: Normalize supports_texture_buffers => texture_buffers 2025-01-21 19:06:59 +10:00
Stenzek
9d4789e082 FullscreenUI: Fix blank screen flicker starting game
Also returns to whichever menu the system boot was initiated from.
2025-01-20 23:17:24 +10:00
Stenzek
17b0da7283 GameList: URL encode custom properties paths with brackets
Fixes custom properties not applying on restart to games with
brackets in their paths.
2025-01-20 21:59:24 +10:00
Stenzek
4b20fc6922 Path: Fix several errors in URLEncode/Decode and add tests 2025-01-20 21:44:44 +10:00
Stenzek
78902d7632 FullscreenUI: Fix several more unsafe reads 2025-01-20 19:00:51 +10:00
Stenzek
cc0ccf2648 Data: Update resources 2025-01-20 17:24:36 +10:00
Stenzek
f219b47e98 FullscreenUI: Use constant width/height scale on Android
Fixes achievement notifications being differently sized
depending on the screen rotation.
2025-01-20 00:01:46 +10:00
Stenzek
7c2488c942 PostProcessing/GLSL: Fix image moved off-screen with alignment 2025-01-19 21:40:38 +10:00
Stenzek
c03b6f3d84 Misc: Replace isspace() usage with StringUtil::IsWhitespace()
Avoids the UB if the character is negative (e.g. reading from a binary
file), as well as locale-specific rubbish.
2025-01-19 21:29:14 +10:00
Stenzek
21b167d382 CDImage: Tidy up Open() method 2025-01-19 21:29:14 +10:00
Stenzek
7905793ae0 GPU: Use screen alignment for overlay instead of display rect 2025-01-19 21:13:16 +10:00
Stenzek
8c5c0e6114 Common: Fix Vector2->Vector4 zero-extend constructor
And add loadl(const GSVector2i&) as an easier-to-read overload.
2025-01-19 21:13:16 +10:00
Stenzek
ade8bf7b3b GPU: Fix overlay+postprocessing combination 2025-01-19 21:13:16 +10:00
Stenzek
9fdeeb3fb6 GPU: Add alpha blending support to overlay 2025-01-19 16:37:51 +10:00
Stenzek
9b8d2a88de System: Required changes for Android 2025-01-19 15:31:58 +10:00
Stenzek
e1cbb50c64 GPU: Fix various capture/screenshot issues
- Simplify functions for rendering display.

- Post-processing should only when the target size matches the window.
  Otherwise the shaders are constantly recompiled.

- Include border overlay in capture/screenshots when above condition
  is satisfied.

- Relax video alignment size when using screen resolution + auto.

- Fix "Internal Resolution (Uncorrected)" capture mode.
2025-01-19 13:42:38 +10:00
Stenzek
725dcea05a GPU: Fix crash toggling border overlays 2025-01-19 12:25:19 +10:00
Stenzek
6131ddbefe GPU: Fill in unused/padded area in overlays 2025-01-18 22:59:49 +10:00
Stenzek
88b43370dc GPUDevice: Replace explicit GL_PUSH/GL_POP with nested GL_SCOPE 2025-01-18 22:59:49 +10:00
Stenzek
d62261e7a4 GPUDevice: Allow nested GL_SCOPE macros 2025-01-18 22:59:49 +10:00
Stenzek
7fcf0a3283 README: Update feature list for 2025 2025-01-18 22:59:48 +10:00
Stenzek
313f653fe0 Data: Add one example overlay 2025-01-18 22:59:48 +10:00
Stenzek
e0a9bbe600 PostProcessing: Move into GPU presenter
Means that the renderer can be changed without reloading shaders,
and speeds up config change detection.
2025-01-18 22:59:48 +10:00
Stenzek
d589696eff PostProcessing: Get rid of GPU-dependent globals 2025-01-18 22:59:48 +10:00
Stenzek
338d29d271 GPUDevice: Move empty/null texture to base class 2025-01-18 22:59:48 +10:00
Stenzek
609fa5c7d7 GPUDevice: Add sampler cache to base class
Removes per-backend bookkeeping in D3D12 and Vulkan.
2025-01-18 22:59:48 +10:00
Stenzek
da13579356 GPU: Align presenter/backends to cache line 2025-01-18 22:59:48 +10:00
Stenzek
dd9788262e GPU: Refactor display presentation workflow
Adds the ability to set overlays, and fixes postfx with prerotation.
2025-01-18 22:59:48 +10:00
Stenzek
6cba825bac System: Add fatal error shutdown path
Switch to a null backend and shut down the system instead of crashing.
2025-01-18 22:59:48 +10:00
Stenzek
d52bf795e4 GPU: Split backend into Backend+Presenter 2025-01-18 22:59:48 +10:00
Stenzek
8f19ac2dee System: Set rapidyaml error handlers on startup
That way it can be used in multiple places.
2025-01-18 22:59:48 +10:00
Stenzek
08d2586a86 System: Allow host to set async worker count
For regtest.
2025-01-18 22:59:48 +10:00
Stenzek
e41f179108 PostProcessing: Fix erroneous reload message 2025-01-18 22:59:48 +10:00
Stenzek
1481c1d231 System: Post-processing is shut down on GPU thread 2025-01-18 22:59:48 +10:00
Stenzek
b9822602b2 FullscreenUI: Show game icons in game list 2025-01-18 22:59:48 +10:00
Stenzek
f98b904c50 FullscreenUI: Add 'Set Cover Image' to game list 2025-01-18 22:59:48 +10:00
Stenzek
7cc47551a4 FullscreenUI: Fix parent scroll resetting on directory change 2025-01-18 22:59:48 +10:00
Stenzek
e34d23c8e7 FullscreenUI: Implicitly close non-multichoice dialogs
Also fixes disc swap using a multichoice instead of single.
2025-01-18 22:59:47 +10:00
Stenzek
a7ab53f02c GPU: Fix GLSL ES compile error with weave deinterlacing 2025-01-18 22:59:47 +10:00
Stenzek
43e7be902c Misc: Add missing error reporting to a couple of WriteBinaryFiles() 2025-01-18 22:59:47 +10:00
Stenzek
227c249d7f FullscreenUI: Skip SVG prefix if image is not a SVG 2025-01-18 22:59:47 +10:00
Stenzek
c34dda39b7 FullscreenUI: Fix invalidating images with size hints 2025-01-18 22:59:11 +10:00
Stenzek
e8a4296fd6 FullscreenUI: Add missing settings lock acquire 2025-01-18 22:59:10 +10:00
Stenzek
e94973cd28 FullscreenUI: Fix disc swap running on GPU thread 2025-01-18 13:48:05 +10:00
Stenzek
d054d76a76 FileSystem: Add Error to CopyFilePath() 2025-01-18 13:48:05 +10:00
Stenzek
feeb8d9e56 CI: Fix Flatpak manifest URL 2025-01-17 20:22:03 +10:00
Stenzek
fbb63a81a8 FullscreenUI: Change default background and add Strobe 2025-01-17 16:05:24 +10:00
Stenzek
7deaaa8b26 FullscreenUI: Use ImGui dialogs for boot failure 2025-01-17 14:30:22 +10:00
Stenzek
e554456a00 System: Fix blank display on pause-on-start 2025-01-17 14:20:37 +10:00
Stenzek
3be4f1983d GPU: Fix playback of VRAM updates during draws 2025-01-17 13:22:40 +10:00
Stenzek
bf7ca1951e Qt: Fix game list search box oversizing 2025-01-17 12:56:06 +10:00
Anderson Cardoso
2957f55450 Atualização Português do Brasil (#3356)
Atualizado para a última versão
2025-01-17 13:56:32 +10:00
Stenzek
092b2803c5 GPU/HW: Flipping the mask bit test should flush 2025-01-16 23:50:40 +10:00
Stenzek
cd8a160d8d GPU/HW: Clear alpha channel in opaque replacements
This is the value for bit15 in the framebuffer. Silent Hill
needs it to be zero, I'm not aware of anything that needs
specific values yet. If it did, we'd need a different dumping
technique.
2025-01-16 23:25:24 +10:00
Stenzek
a0c075e079 CI/Flatpak: Bump to SDL2 2.30.11
Apparently I forgot to do this.
2025-01-16 22:13:04 +10:00
Stenzek
add76c267a Achievements: Fix request spam downloading own badge icon 2025-01-16 22:13:02 +10:00
Stenzek
c4a7456689 GPU/SW: Use no_unique_address for potentially-unused varyings 2025-01-16 22:13:02 +10:00
Stenzek
804b8ff777 CDROM: Remove redundant min() 2025-01-16 21:45:34 +10:00
Stenzek
10de915ae0 System: Remove 'sync_to_host_with_vsync'
Disabling the throttler with threaded rendering just leads to the CPU
thread pushing multiple frames, and getting backpressured from the GPU
thread. In other words, input lag.
2025-01-16 21:45:30 +10:00
Stenzek
074a8a2653 GPUThread: Fix input OSD with threaded rendering off 2025-01-16 21:38:45 +10:00
Stenzek
f6f709bcc5 System: Fix vsync preventing fast forward/turbo 2025-01-16 21:14:21 +10:00
Stenzek
0507054675 Common: Add vector rsize() 2025-01-16 21:01:30 +10:00
Stenzek
93771981a6 FullscreenUI: Add sort alphabetically option to cheat page 2025-01-16 13:47:09 +10:00
Stenzek
79245b6cd6 FullscreenUI: Make footer text background semitransparent 2025-01-16 01:14:22 +10:00
Stenzek
57f3fee28c Common: Further optimize alltrue()/allfalse() on ARM 2025-01-16 00:43:33 +10:00
Stenzek
0189e1ef81 Common: Fix vector allfalse() on ARM32 2025-01-15 23:53:48 +10:00
Stenzek
45b500bc2c GPU/HW: Fix draw call count spiking in some scenarios 2025-01-15 22:50:29 +10:00
Stenzek
3687697d0e CPU/CodeCache: Only reset used portion of buffer
Saves writing 48MB every reset.
2025-01-15 21:02:56 +10:00
Stenzek
1952869cdc Cheats: Author field should be exported 2025-01-15 21:02:56 +10:00
Daniel Nylander
68d9971171 Updated Swedish translation (#3355) 2025-01-15 21:02:40 +10:00
Stenzek
050bda8cd2 FullscreenUI: Fix scroll reset on resume state popup 2025-01-14 21:07:00 +10:00
Stenzek
135d99ac17 FullscreenUI: Fix incorrect help text 2025-01-14 21:07:00 +10:00
Stenzek
7973a91438 FullscreenUI: Make menu item backgrounds slightly transparent
Blends with background.
2025-01-14 21:07:00 +10:00
Stenzek
2e95667ec2 Qt: Fix returning to desktop mode from Big Picture 2025-01-14 20:51:13 +10:00
Stenzek
bbb1befa43 RegTest: Build fix 2025-01-14 20:51:13 +10:00
Stenzek
2fd89403f8 FullscreenUI: Name landing icon files after action 2025-01-14 19:05:18 +10:00
Stenzek
3130e16438 FullscreenUI: Add user-selectable backgrounds 2025-01-14 18:59:42 +10:00
Stenzek
ccb2b61444 FullscreenUI: Fix incorrect back button 2025-01-14 16:33:24 +10:00
Stenzek
1aa1b5a7ec Qt: Make main toolbar editable 2025-01-14 16:33:24 +10:00
Anderson Cardoso
6a6d36267d Atualização Português do Brasil (#3354)
Atualizado para a última versão.
2025-01-14 13:53:37 +10:00
Stenzek
880c76da24 Qt: Fix columns being hidden after editing cheats 2025-01-14 13:53:09 +10:00
Stenzek
3a13806f73 Hotkeys: Fix Toggle OSD hotkey 2025-01-14 13:49:49 +10:00
Stenzek
88e18a8659 Image: Fix crash on loading corrupted JPEG file 2025-01-14 13:29:14 +10:00
Stenzek
da1590ed5f Qt: Fix cheats sort button tooltip 2025-01-13 23:49:59 +10:00
Stenzek
6db1dbbe02 GameList: Don't return nonexistant path on icon extract fail 2025-01-13 23:49:09 +10:00
Stenzek
33c0674a9f Qt: Remove unused struct 2025-01-13 23:18:52 +10:00
Stenzek
5aa23fa6dc CI: Only pin to major version of actions 2025-01-13 22:50:39 +10:00
Stenzek
991405ce06 Qt: Add search and sorting to cheat list 2025-01-13 22:45:59 +10:00
Stenzek
0dc257abe4 System: Set time constraints for GPU thread on MacOS
Fixes erratic frame times.
2025-01-13 19:51:35 +10:00
Stenzek
d3854d095e AnalogController: Use variant vibration icon for large motor 2025-01-13 19:49:56 +10:00
Stenzek
dc58d85b51 Data: PromptFont additions by KamFretoZ 2025-01-13 19:47:43 +10:00
Stenzek
f6c7681ef0 ImGuiOverlays: Double buffer input OSD and add vibration 2025-01-13 16:49:31 +10:00
Stenzek
dd7fd32501 Controller: Add GetVibrationMotorState() 2025-01-13 16:49:14 +10:00
Stenzek
aaf2a4b614 InputManager: Adjust scope of constants 2025-01-13 16:35:40 +10:00
Stenzek
3476140ba2 GPUThread: Add BeginASyncBufferCall() 2025-01-13 16:08:20 +10:00
Stenzek
462a4a3b50 Controller: Refactor so that GetControllerInfo() can't return null 2025-01-13 16:07:43 +10:00
Stenzek
062776c1c7 ImGuiManager: Map left stick to dpad 2025-01-13 14:28:39 +10:00
Stenzek
c45e59fe22 SDLInputSource: Arrays to std::array and forward generic axis 2025-01-13 14:28:28 +10:00
Stenzek
21aef088ed XInputSource: Arrays to std::array and forward generic axis 2025-01-13 14:25:51 +10:00
Stenzek
9d3c56fe6c ImGuiManager: Fix data races in input forwarding 2025-01-13 13:52:07 +10:00
Stenzek
17e8930e94 ImGuiManager: Pack state based on thread access 2025-01-13 13:33:15 +10:00
Stenzek
3621705933 Achievements: Ensure loading old states behave the same as new 2025-01-13 13:13:15 +10:00
Stenzek
8f39dbb464 Achievements: Fix race condition invalidating images 2025-01-13 13:03:41 +10:00
Stenzek
2f854de9d0 Qt: Invalidate FSUI cover cache when cover changed 2025-01-13 12:54:18 +10:00
Stenzek
738c96ffb3 FullscreenUI: Fix slot disappearing after delete in save state menu 2025-01-13 12:44:11 +10:00
Stenzek
ea82dacb0e FullscreenUI: Fix a couple of GPU thread race conditions
State saving/loading, memory card state read on shutdown.
2025-01-13 12:44:06 +10:00
Stenzek
a422e06628 Qt: Fix incorrect InitialSortOrderRole use 2025-01-12 21:44:05 +10:00
Stenzek
d3ee12d358 Achievements: Login error notification should be translatable 2025-01-12 19:16:22 +10:00
Stenzek
19ee37cd10 FullscreenUI: Render notifications on top of OSD 2025-01-12 19:14:59 +10:00
Stenzek
035762af94 System: Fix subimage change OSD message 2025-01-12 19:03:53 +10:00
Stenzek
be7cff5964 CDROM: Fix loading of subimage SBI files 2025-01-12 19:03:48 +10:00
Stenzek
e4dea69713 System: Drop state load OSD duration to quick 2025-01-12 17:50:33 +10:00
Stenzek
e43d7046ba Achievements: Attempt relogin on system boot
And display an error notification if login fails, instead of
invalidating the token.
2025-01-12 17:50:33 +10:00
Stenzek
0f76543685 Achivements: Set rc_client log level from host log level 2025-01-12 16:54:58 +10:00
Stenzek
ce0689687c Qt: Fix editing first controller preset 2025-01-12 02:09:55 +10:00
Stenzek
c43533f8d8 FullscreenUI: Extend achievement overlays to screen margins
Fixes overlays getting caught in rounded corners on Android.
2025-01-12 01:02:58 +10:00
Stenzek
ab790ed54b Common: Fix ARM32 build (again) 2025-01-12 00:25:48 +10:00
Stenzek
ee1da343ab GPU/HW: Use default initialization for BatchConfig
Reduce the risk of below...
2025-01-12 00:03:45 +10:00
Stenzek
9779cee934 GPU/HW: Ensure texture window bits are initialized
Fixes broken rendering after loading state or switching renderer in some
games, e.g. GTA2.
2025-01-12 00:03:18 +10:00
Stenzek
9c35b0e76d FullscreenUI: Get rid of Timer global 2025-01-11 23:32:21 +10:00
Stenzek
36590f3c71 InputManager: Fix crash on controller connect on Windows 2025-01-11 23:29:55 +10:00
Stenzek
6785285f31 Qt: Fix game list toolbar/view menu desync 2025-01-11 23:29:40 +10:00
Stenzek
54780d4fbf Qt: Fix fullscreen state stuck after exit 2025-01-11 21:37:39 +10:00
Stenzek
348e33562e Qt: Fix BP start/stop menu item after first activation 2025-01-11 21:34:20 +10:00
Stenzek
234e1f721f FullscreenUI: Improve controller settings page
- Add 'Clear Bindings' menu item.
- Show icons in controller types.
- Add confirmation to Reset Settings.
2025-01-11 21:29:04 +10:00
Stenzek
d6ce322eba Controller: Use additional icons 2025-01-11 20:51:16 +10:00
Stenzek
9971b9e059 Data: Update PromptFont with KamFretoZ's changes 2025-01-11 20:41:26 +10:00
Stenzek
e6c0725656 InputManager: Hold lock while manipulating devices/sources
Since we're enumerating on the GPU thread now, need to protect it.
2025-01-11 20:28:00 +10:00
Stenzek
d3bee3ce67 Qt: Rename 'Input Profile' to 'Controller Preset'
Hopefully more noob-proof?
2025-01-11 20:25:12 +10:00
Stenzek
e4c11aa905 Qt: Separate controller settings to global and profiles 2025-01-11 20:25:11 +10:00
Stenzek
2d63b34d48 Qt: Add icons/decorations to input devices 2025-01-11 20:25:11 +10:00
Stenzek
2298227054 FullscreenUI: Add binding of vibration motors 2025-01-11 20:25:11 +10:00
Stenzek
6f9caa6b12 InputManager: Add proper binds for vibration motors
Instead of the janky "vibration capabilities" flag.

Fixes the "Clear Mappings" button not applying to vibration motors.
2025-01-11 20:25:11 +10:00
Stenzek
13b85728a0 Qt: Refactor input device/motor tracking
Remove multiple sources of truth.
2025-01-11 20:25:11 +10:00
Stenzek
844287b722 FullscreenUI: Fix scrollbar on choice dialog at some screen sizes
e.g. game list right click
2025-01-11 20:25:11 +10:00
Stenzek
4b0bb9f70d FullscreenUI: Increase input dialog padding
Way too small.
2025-01-11 20:13:53 +10:00
Stenzek
4af5e96ff6 Controller: Remove analog-mode-start OSD message
It's arguably not very useful, and the sticks are mapped to the
dpad in digital mode anyway.
2025-01-11 15:15:01 +10:00
Stenzek
440aaf2644 FullscreenUI: Modernize achievement popup a bit 2025-01-11 15:07:17 +10:00
Stenzek
05b0b03fd6 Cheats: Order special characters before alpha characters 2025-01-11 12:51:33 +10:00
Stenzek
93a7e7cef5 Cheats: Add bounds check to 5107/5147 2025-01-11 12:40:46 +10:00
Anderson Cardoso
c98dbb9d9e Atualização Português do Brasil (#3353)
Atualizado para a última versão.
2025-01-11 12:37:16 +10:00
PugsyMAME
a26cac18e9 Cheats: Added register cheat types 5107 & 5147 (#3352)
This is new cheat type uses the general purpose cheat registers in a relative easy method to allow arrays of arrays cheats to be quickly created and will also cut down massively on cheats. For instance this method allows the following 15 cheats for Vandal Hearts II which would otherwise need 18886 separate cheats to replicate:

#Technique Slot Modifier\[MASTER] Select Slot Number for following cheats to act on (1 - 1349)
518500F1 001CF3C3
514500F2 0000000F
514500F3 0000????
514500F4 0000D0D0
OptionRange = 1:1349
#Technique Slot Modifier\Select Weapon
510700F1 000000??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 1 Learned
510700F1 00020001
#Technique Slot Modifier\Select Technique 1
510700F1 000300??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 2 Learned
510700F1 00040001
#Technique Slot Modifier\Select Technique 2
510700F1 000500??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 3 Learned
510700F1 00060001
#Technique Slot Modifier\Select Technique 3
510700F1 000700??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 4 Learned
510700F1 00080001
#Technique Slot Modifier\Select Technique 4
510700F1 000900??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 5 Learned
510700F1 000A0001
#Technique Slot Modifier\Select Technique 5
510700F1 000B00??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 6 Learned
510700F1 000C0001
#Technique Slot Modifier\Select Technique 6
510700F1 000D00??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\100% (Max) Technique Learned
510700F1 000E0064
2025-01-11 12:37:03 +10:00
Stenzek
ea4e756512 Data: Update SDL Game Controller DB 2025-01-10 20:44:04 +10:00
Stenzek
ee33044f3d InputManager: Fix SDL sub-options not copying to profile 2025-01-10 20:42:17 +10:00
Stenzek
7ac4a85765 InputManager: Fix per-bind sensitivity/deadzone not copying to profile 2025-01-10 20:14:21 +10:00
Stenzek
ccfc60ec94 GPU/HW: Remove extra barrier on VRAM download
Seems to work around download texture corruption on AMD/Vulkan/Windows.
2025-01-10 20:06:56 +10:00
Stenzek
18c90718c6 GPU/SW: Skip pixel load if none preserved
~12% performance improvement on Cortex-A35.
2025-01-10 18:46:05 +10:00
Stenzek
1320d9b456 Common: Use __builtin_shufflevector() for NEON blend() 2025-01-10 17:12:45 +10:00
Stenzek
29934d62c4 System: Improve rewind behaviour
- Fix crash when rewinding before first state is saved.
- Always save a rewind state immediately after normal save state load.
- Don't toss the last rewind state when rewinding, that way there is
  always at least one state to rewind to.
2025-01-09 23:46:06 +10:00
Stenzek
d25cffebd5 GPU/HW: Disable depth testing with semitransparency
But provide an option to enable it.
2025-01-09 21:45:14 +10:00
Stenzek
d9c9b3038d GPU/HW: Fix ROV depth being written with semitransparency 2025-01-09 21:21:12 +10:00
Stenzek
7d2898b94c GPU/HW: Exclude 2D polygons from depth buffer
Fixes UI getting obscured in Kingsley's Adventure.
2025-01-09 21:21:12 +10:00
Stenzek
1c9b9ca37a GPUThread: Restore context after backend creation
Might help with random VRAM loss? I can't seem to reproduce it now..
2025-01-09 21:21:12 +10:00
Stenzek
40589dcd93 Settings: Add advanced option to set delay for max CD speedup
Affects both seeks and reads.
2025-01-09 21:21:12 +10:00
Stenzek
4449ae7904 Settings: Rearrange fields to avoid padding 2025-01-09 21:21:12 +10:00
Stenzek
9b339d4bff PostProcessing: Remove StageCount key for game settings
Potentially removes the ini file if it's otherwise empty.
2025-01-09 21:21:12 +10:00
Stenzek
2b4e60a5bf FullscreenUI: Fix loading screen font 2025-01-09 21:21:12 +10:00
Stenzek
bed3dd6950 FullscreenUI: Use span for DrawIntListSetting() 2025-01-09 17:54:12 +10:00
Stenzek
b76ebd2a7b FullscreenUI: Fix scrollbar rounding in choice dialogs 2025-01-09 17:53:52 +10:00
Stenzek
561397a53c CDROM: Add 'maximum' read speedup option
"Instant" seek is now renamed to Maximum as well, for consistency.
2025-01-09 15:23:47 +10:00
Anderson Cardoso
0ad0859e9d Atualização Português do Brasil (#3351)
Atualizado para a última versão
2025-01-09 15:23:25 +10:00
Stenzek
fc8fbd8f08 Qt: Disable shared memcard settings outside of shared mode 2025-01-08 16:36:05 +10:00
Stenzek
08a3c31bff CMake: Fix scmversion PRE_BUILD warning 2025-01-08 15:34:21 +10:00
Stenzek
87743c776d FullscreenUI: Fix crash reloading postfx shaders 2025-01-08 15:29:56 +10:00
Stenzek
45afc8f7b1 OpenGLDevice: Add map-based stream buffer paths
MapAndSync ends up around 25% faster on ancient Mali drivers without
ARB_buffer_storage support.
2025-01-08 14:14:06 +10:00
Stenzek
1daa60c64d GPU: Use tristrips for presentation as well 2025-01-08 00:14:15 +10:00
Stenzek
670dc461c1 GPU/HW: Slight re-shuffling of field offsets
Free up some bits in the middle.
2025-01-07 23:20:26 +10:00
Stenzek
0030bc2699 GPUDevice: Ensure 16 byte minimum UBO alignment 2025-01-07 23:20:25 +10:00
Stenzek
4c801c3ff3 GPUDevice: Move size-matches check into ResizeTexture() 2025-01-07 23:20:25 +10:00
Stenzek
b9186139d0 GPU/HW: Use sized tristrips instead of fullscreen quads 2025-01-07 23:20:25 +10:00
Stenzek
9bc5ffe091 Common: Add Vector4i xyxy(Vector2i) 2025-01-07 23:20:25 +10:00
1170 changed files with 296298 additions and 189358 deletions

View File

@@ -1,22 +0,0 @@
name: Flathub Publish
on:
workflow_dispatch:
inputs:
flathub_branch:
description: "Flathub branch to push to"
required: true
default: "stable"
type: "choice"
options:
- "stable"
- "beta"
jobs:
linux-flatpak:
name: Build Flatpak
uses: "./.github/workflows/linux-flatpak-build.yml"
with:
flathub_publish: true
flathub_branch: ${{ inputs.flathub_branch }}
secrets: inherit

View File

@@ -4,6 +4,7 @@ on:
pull_request:
paths:
- 'data/resources/gamedb.yaml'
- 'data/resources/discsets.yaml'
- 'data/resources/discdb.yaml'
push:
branches:
@@ -11,17 +12,19 @@ on:
- dev
paths:
- 'data/resources/gamedb.yaml'
- 'data/resources/discsets.yaml'
- 'data/resources/discdb.yaml'
workflow_dispatch:
permissions:
contents: read
jobs:
gamedb-lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- uses: actions/checkout@v6
- name: Install Packages
shell: bash
@@ -33,6 +36,10 @@ jobs:
shell: bash
run: yamllint -c extras/yamllint-config.yaml -s -f github data/resources/gamedb.yaml
- name: Check Disc Sets
shell: bash
run: yamllint -c extras/yamllint-config.yaml -s -f github data/resources/discsets.yaml
- name: Check DiscDB
shell: bash
run: yamllint -c extras/yamllint-config.yaml -s -f github data/resources/discdb.yaml

View File

@@ -4,13 +4,27 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
linux-x64-appimage-build:
name: "x64"
linux-appimage-build:
name: "${{ matrix.name }}"
runs-on: ubuntu-22.04
timeout-minutes: 120
timeout-minutes: 240
strategy:
matrix:
include:
- name: "x64"
asset: "DuckStation-x64.AppImage"
artifact: "linux-x64-appimage"
cmakeoptions: ""
- name: "x64 SSE2"
asset: "DuckStation-x64-SSE2.AppImage"
artifact: "linux-x64-sse2-appimage"
cmakeoptions: "-DDISABLE_SSE4=ON"
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -19,10 +33,10 @@ jobs:
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
uses: actions/cache@v5
with:
path: ~/deps
key: deps ${{ hashFiles('scripts/deps/build-dependencies-linux.sh', 'scripts/deps/build-ffmpeg-linux.sh') }}
key: deps ${{ hashFiles('scripts/deps/build-dependencies-linux.sh', 'scripts/deps/build-ffmpeg-linux.sh', 'scripts/deps/versions') }}
- name: Build Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
@@ -32,116 +46,39 @@ jobs:
if: steps.cache-deps.outputs.cache-hit != 'true'
run: scripts/deps/build-ffmpeg-linux.sh "$HOME/deps"
- name: Initialize Build Tag
run: |
echo '#pragma once' > src/scmversion/tag.h
- name: Set Build Tag Asset
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_ASSET "DuckStation-x64.AppImage"' >> src/scmversion/tag.h
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
run: |
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "preview"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Tag as Rolling Release
- name: Tag as Stable Release
if: github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "latest"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Download Patch Archives
shell: bash
run: |
cd data/resources
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile Build
shell: bash
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_PREFIX_PATH="$HOME/deps" -DCMAKE_C_COMPILER=clang-18 -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" ..
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmakeoptions }} -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_PREFIX_PATH="$HOME/deps" -DCMAKE_C_COMPILER=clang-19 -DCMAKE_CXX_COMPILER=clang++-19 -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" ..
cmake --build . --parallel
cd ..
scripts/packaging/appimage/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps DuckStation-x64
scripts/packaging/appimage/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps "${{ matrix.asset }}"
- name: Upload Qt AppImage
uses: actions/upload-artifact@v4.3.3
- name: Upload AppImage
uses: actions/upload-artifact@v6
with:
name: "linux-x64-appimage"
path: "DuckStation-x64.AppImage"
linux-x64-sse2-appimage-build:
name: "x64 SSE2"
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- name: Install Packages
run: scripts/packaging/appimage/install-packages.sh
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
with:
path: ~/deps
key: deps ${{ hashFiles('scripts/deps/build-dependencies-linux.sh', 'scripts/deps/build-ffmpeg-linux.sh') }}
- name: Build Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: scripts/deps/build-dependencies-linux.sh "$HOME/deps"
- name: Build FFmpeg
if: steps.cache-deps.outputs.cache-hit != 'true'
run: scripts/deps/build-ffmpeg-linux.sh "$HOME/deps"
- name: Initialize Build Tag
run: |
echo '#pragma once' > src/scmversion/tag.h
- name: Set Build Tag Asset
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_ASSET "DuckStation-x64-SSE2.AppImage"' >> src/scmversion/tag.h
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
run: |
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
- name: Tag as Rolling Release
if: github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
- name: Download Patch Archives
shell: bash
run: |
cd data/resources
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile Build
shell: bash
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DDISABLE_SSE4=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_PREFIX_PATH="$HOME/deps" -DCMAKE_C_COMPILER=clang-18 -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" ..
cmake --build . --parallel
cd ..
scripts/packaging/appimage/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps DuckStation-x64-SSE2
- name: Upload Qt AppImage
uses: actions/upload-artifact@v4.3.3
with:
name: "linux-x64-sse2-appimage"
path: "DuckStation-x64-SSE2.AppImage"
name: "${{ matrix.artifact }}"
path: "${{ matrix.asset }}"

View File

@@ -0,0 +1,100 @@
name: 🐧 Linux Cross-Compiled AppImage
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: "${{ matrix.arch }}"
strategy:
fail-fast: true
matrix:
arch: ["arm64", "armhf"]
runs-on: ubuntu-22.04
container:
image: ghcr.io/duckstation/cross-build-${{ matrix.arch }}:latest
timeout-minutes: 240
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v5
with:
path: ~/deps
key: deps-cross ${{ matrix.arch }} ${{ hashFiles('scripts/deps/build-dependencies-linux.sh', 'scripts/deps/build-dependencies-linux-cross.sh', 'scripts/deps/versions') }}
- name: Build Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
scripts/deps/build-dependencies-linux.sh -skip-cleanup "$HOME/deps/host"
scripts/deps/build-dependencies-linux-cross.sh -skip-download "$HOME/deps/host" "${{ matrix.arch }}" "/${{ matrix.arch }}-chroot" "$HOME/deps/cross"
# Work around container ownership issue
- name: Set Safe Directory
shell: bash
run: git config --global --add safe.directory "*"
- name: Create Binary Aliases
run: |
ln -s llvm-strip-19 /usr/bin/llvm-strip
- name: Set Up Toolchain File
run: |
cp "$HOME/deps/cross/toolchain.cmake" "$HOME/toolchain.cmake"
echo 'set(CMAKE_C_COMPILER clang-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_C_COMPILER_AR llvm-ar-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_C_COMPILER_RANLIB llvm-ranlib-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_CXX_COMPILER clang++-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_CXX_COMPILER_AR llvm-ar-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_CXX_COMPILER_RANLIB llvm-ranlib-19)' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_EXE_LINKER_FLAGS_INIT "-fuse-ld=lld")' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_MODULE_LINKER_FLAGS_INIT "-fuse-ld=lld")' >> "$HOME/toolchain.cmake"
echo 'set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=lld")' >> "$HOME/toolchain.cmake"
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
run: |
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "preview"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Tag as Stable Release
if: github.ref == 'refs/heads/dev'
run: |
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "latest"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Download Patch Archives
shell: bash
run: |
cd data/resources
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Generate CMake
shell: bash
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_TOOLCHAIN_FILE="$HOME/toolchain.cmake" -DCMAKE_PREFIX_PATH="$HOME/deps/cross" -DLCONVERT_EXE="$HOME/deps/host/bin/lconvert" -DHOST_MIN_PAGE_SIZE=4096 -DHOST_MAX_PAGE_SIZE=16384 -DHOST_CACHE_LINE_SIZE=64 -DBUILD_QT_FRONTEND=ON -DBUILD_MINI_FRONTEND=ON
- name: Compile Build
shell: bash
run: |
cmake --build build --parallel
scripts/packaging/appimage/make-cross-appimage.sh duckstation-qt ${{ matrix.arch }} "$(realpath build)" "$HOME/deps/cross" "/${{ matrix.arch }}-chroot"
scripts/packaging/appimage/make-cross-appimage.sh -inject-libc duckstation-mini ${{ matrix.arch }} "$(realpath build)" "$HOME/deps/cross" "/${{ matrix.arch }}-chroot"
- name: Upload AppImages
uses: actions/upload-artifact@v6
with:
name: "linux-${{ matrix.arch }}-appimage"
path: "DuckStation-*.AppImage"

View File

@@ -1,113 +0,0 @@
name: 📦 Linux Flatpak
on:
workflow_call:
inputs:
flathub_publish:
required: false
type: boolean
default: false
flathub_branch:
required: false
type: string
default: "stable"
workflow_dispatch:
jobs:
linux-flatpak-build:
name: "x64"
runs-on: ubuntu-22.04
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
options: --privileged
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
set-safe-directory: ${{ env.GITHUB_WORKSPACE }}
# Work around container ownership issue
- name: Set Safe Directory
shell: bash
run: git config --global --add safe.directory "*"
- name: Initialize Build Tag
run: |
echo '#pragma once' > src/scmversion/tag.h
- name: Set Build Tags
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
run: |
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
- name: Tag as Rolling Release
if: github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
- name: Download Patch Archives
shell: bash
run: |
cd data/resources
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Generate AppStream XML
run: |
scripts/packaging/generate-metainfo.sh scripts/packaging/flatpak
cat scripts/packaging/flatpak/org.duckstation.DuckStation.metainfo.xml
- name: Validate AppStream XML
run: flatpak-builder-lint appstream scripts/packaging/flatpak/org.duckstation.DuckStation.metainfo.xml
- name: Validate Manifest
run: flatpak-builder-lint manifest scripts/packaging/flatpak/org.duckstation.DuckStation.yaml
- name: Build Flatpak
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with:
bundle: duckstation-x64.flatpak
upload-artifact: false
manifest-path: scripts/packaging/flatpak/org.duckstation.DuckStation.yaml
arch: x86_64
build-bundle: true
verbose: true
mirror-screenshots-url: https://dl.flathub.org/media
branch: stable
cache: true
restore-cache: true
cache-key: flatpak-x64-${{ hashFiles('scripts/packaging/flatpak/**/*.yaml') }}
- name: Validate Build
run: |
flatpak-builder-lint repo repo
- name: Push To Flathub Beta
if: inputs.flathub_publish && inputs.flathub_branch == 'beta'
uses: flathub-infra/flatpak-github-actions/flat-manager@b6c92176b7f578aedd80cac74cd8f0336f618e89
with:
flat-manager-url: https://hub.flathub.org/
repository: stable
token: ${{ secrets.FLATHUB_BETA_TOKEN }}
build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Push To Flathub Stable
if: inputs.flathub_publish && inputs.flathub_branch == 'stable'
uses: flathub-infra/flatpak-github-actions/flat-manager@b6c92176b7f578aedd80cac74cd8f0336f618e89
with:
flat-manager-url: https://hub.flathub.org/
repository: stable
token: ${{ secrets.FLATHUB_STABLE_TOKEN }}
build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Upload Flatpak
uses: actions/upload-artifact@v4.3.3
with:
name: "linux-flatpak"
path: "duckstation-x64.flatpak"

View File

@@ -4,76 +4,71 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
macos-build:
name: "Universal"
runs-on: macos-14
timeout-minutes: 120
runs-on: macos-15
timeout-minutes: 240
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Use Xcode 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app
- name: Use Xcode 26
run: sudo xcode-select -s /Applications/Xcode_26.0.app
- name: Install packages
shell: bash
run: |
brew install ninja
- name: Download Metal Toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Cache Dependencies
id: cache-deps-mac
uses: actions/cache@v4.0.2
uses: actions/cache@v5
with:
path: ~/deps
key: deps-mac ${{ hashFiles('scripts/deps/build-dependencies-mac.sh') }}
key: deps-mac ${{ hashFiles('scripts/deps/build-dependencies-mac.sh', 'scripts/deps/versions') }}
- name: Build Dependencies
if: steps.cache-deps-mac.outputs.cache-hit != 'true'
run: scripts/deps/build-dependencies-mac.sh "$HOME/deps"
- name: Initialize Build Tag
run: |
echo '#pragma once' > src/scmversion/tag.h
- name: Set Build Tags
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_ASSET "duckstation-mac-release.zip"' >> src/scmversion/tag.h
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
run: |
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "preview"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Tag as Rolling Release
- name: Tag as Stable Release
if: github.ref == 'refs/heads/dev'
run: |
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
echo '#pragma once' > src/scmversion/tag.h
echo '#define UPDATER_RELEASE_CHANNEL "latest"' >> src/scmversion/tag.h
echo '#define UPDATER_RELEASE_IS_OFFICIAL 1' >> src/scmversion/tag.h
- name: Download Patch Archives
shell: bash
run: |
cd data/resources
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile and Zip .app
shell: bash
run: |
mkdir build
cd build
export MACOSX_DEPLOYMENT_TARGET=11.0
export MACOSX_DEPLOYMENT_TARGET=13.3
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENGL=OFF -DCMAKE_PREFIX_PATH="$HOME/deps" -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -G Ninja ..
cmake --build . --parallel
mv bin/DuckStation.app .
codesign -s - --deep -f -v DuckStation.app
zip -r duckstation-mac-release.zip DuckStation.app/
zip -9 -r duckstation-mac-release.zip DuckStation.app/
- name: Upload MacOS .app
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v6
with:
name: "macos"
path: "build/duckstation-mac-release.zip"

View File

@@ -6,8 +6,8 @@ on:
paths-ignore:
- '**.md'
- 'appveyor.yml'
- 'extras/yamllint-config.yaml'
- 'scripts/*'
- '.github/ISSUE_TEMPLATE/*'
push:
branches:
- master
@@ -15,8 +15,11 @@ on:
paths-ignore:
- '**.md'
- 'appveyor.yml'
- 'extras/yamllint-config.yaml'
- 'scripts/*'
- '.github/ISSUE_TEMPLATE/*'
permissions:
contents: write
jobs:
windows:
@@ -25,64 +28,76 @@ jobs:
linux-appimage:
name: 🐧 Linux AppImage
uses: "./.github/workflows/linux-appimage-build.yml"
linux-flatpak:
name: 📦 Linux Flatpak
uses: "./.github/workflows/linux-flatpak-build.yml"
linux-cross-appimage:
name: 🐧 Linux Cross-Compiled AppImage
uses: "./.github/workflows/linux-cross-appimage-build.yml"
macos:
name: 🍎 MacOS
uses: "./.github/workflows/macos-build.yml"
create-release:
name: 📤 Create Release
needs: [windows, linux-appimage, linux-flatpak, macos]
needs: [windows, linux-appimage, linux-cross-appimage, macos]
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v7
with:
path: ./artifacts/
merge-multiple: true
- name: Display Downloaded Artifacts
run: find ./artifacts/
run: find ./artifacts/ -type f | sort
- name: Create Preview Release
if: github.ref == 'refs/heads/master'
uses: "marvinpinto/action-automatic-releases@latest"
uses: marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "preview"
prerelease: true
title: "Latest Preview Build"
files: |
./artifacts/windows-x64/duckstation-windows-x64-release.zip
./artifacts/windows-x64/duckstation-windows-x64-release-symbols.zip
./artifacts/windows-x64-sse2/duckstation-windows-x64-sse2-release.zip
./artifacts/windows-x64-sse2/duckstation-windows-x64-sse2-release-symbols.zip
./artifacts/windows-arm64/duckstation-windows-arm64-release.zip
./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip
./artifacts/linux-x64-appimage/DuckStation-x64.AppImage
./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage
./artifacts/linux-flatpak/duckstation-x64.flatpak
./artifacts/macos/duckstation-mac-release.zip
./artifacts/duckstation-windows-x64-installer.exe
./artifacts/duckstation-windows-x64-release.zip
./artifacts/duckstation-windows-x64-release-symbols.zip
./artifacts/duckstation-windows-x64-sse2-installer.exe
./artifacts/duckstation-windows-x64-sse2-release.zip
./artifacts/duckstation-windows-x64-sse2-release-symbols.zip
./artifacts/duckstation-windows-arm64-installer.exe
./artifacts/duckstation-windows-arm64-release.zip
./artifacts/duckstation-windows-arm64-release-symbols.zip
./artifacts/DuckStation-x64.AppImage
./artifacts/DuckStation-x64-SSE2.AppImage
./artifacts/DuckStation-arm64.AppImage
./artifacts/DuckStation-Mini-arm64.AppImage
./artifacts/DuckStation-armhf.AppImage
./artifacts/DuckStation-Mini-armhf.AppImage
./artifacts/duckstation-mac-release.zip
- name: Create Rolling Release
if: github.ref == 'refs/heads/dev'
uses: "marvinpinto/action-automatic-releases@latest"
uses: marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Latest Rolling Release"
files: |
./artifacts/windows-x64/duckstation-windows-x64-release.zip
./artifacts/windows-x64/duckstation-windows-x64-release-symbols.zip
./artifacts/windows-x64-sse2/duckstation-windows-x64-sse2-release.zip
./artifacts/windows-x64-sse2/duckstation-windows-x64-sse2-release-symbols.zip
./artifacts/windows-arm64/duckstation-windows-arm64-release.zip
./artifacts/windows-arm64/duckstation-windows-arm64-release-symbols.zip
./artifacts/linux-x64-appimage/DuckStation-x64.AppImage
./artifacts/linux-x64-sse2-appimage/DuckStation-x64-SSE2.AppImage
./artifacts/linux-flatpak/duckstation-x64.flatpak
./artifacts/macos/duckstation-mac-release.zip
./artifacts/duckstation-windows-x64-installer.exe
./artifacts/duckstation-windows-x64-release.zip
./artifacts/duckstation-windows-x64-release-symbols.zip
./artifacts/duckstation-windows-x64-sse2-installer.exe
./artifacts/duckstation-windows-x64-sse2-release.zip
./artifacts/duckstation-windows-x64-sse2-release-symbols.zip
./artifacts/duckstation-windows-arm64-installer.exe
./artifacts/duckstation-windows-arm64-release.zip
./artifacts/duckstation-windows-arm64-release-symbols.zip
./artifacts/DuckStation-x64.AppImage
./artifacts/DuckStation-x64-SSE2.AppImage
./artifacts/DuckStation-arm64.AppImage
./artifacts/DuckStation-Mini-arm64.AppImage
./artifacts/DuckStation-armhf.AppImage
./artifacts/DuckStation-Mini-armhf.AppImage
./artifacts/duckstation-mac-release.zip

31
.github/workflows/translation-lint.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Translation Lint
on:
pull_request:
paths:
- 'src/duckstation-qt/translations/*.ts'
push:
branches:
- master
- dev
paths:
- 'src/duckstation-qt/translations/*.ts'
workflow_dispatch:
permissions:
contents: read
jobs:
translation-lint:
runs-on: ubuntu-slim
timeout-minutes: 120
steps:
- uses: actions/checkout@v6
# Meh, can't be bothered to work out exactly which one was modified, just check them all.
- name: Check Translation Placeholders
shell: bash
run: |
for i in src/duckstation-qt/translations/*.ts; do
python scripts/verify_translation_placeholders.py "$i"
done

View File

@@ -3,23 +3,26 @@ name: Upload Caches
on:
workflow_dispatch:
permissions:
contents: read
jobs:
upload-windows-cache:
runs-on: windows-2022
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
uses: actions/cache@v5
with:
path: |
dep/msvc/deps-arm64
dep/msvc/deps-x64
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat') }}
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat', 'scripts/deps/versions') }}
- name: Zip Cache Files
if: steps.cache-deps.outputs.cache-hit == 'true'
@@ -30,7 +33,7 @@ jobs:
- name: Upload Cache Files
if: steps.cache-deps.outputs.cache-hit == 'true'
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@v6
with:
name: "windows"
path: "deps-*.zip"

View File

@@ -4,24 +4,63 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
windows-x64-build:
name: "x64"
windows-build:
name: "${{ matrix.name }}"
runs-on: windows-2022
timeout-minutes: 120
timeout-minutes: 240
strategy:
matrix:
include:
- name: "x64"
arch: "x64"
vcvars: "x64"
config: "ReleaseLTCG-Clang"
platform: "x64"
bindir: "x64"
assetname: "duckstation-windows-x64-release.zip"
installerassetname: "duckstation-windows-x64-installer.exe"
updatername: "updater-x64-ReleaseLTCG.exe"
installername: "installer-x64-ReleaseLTCG.exe"
uninstallername: "uninstaller-x64-ReleaseLTCG.exe"
- name: "x64 SSE2"
arch: "x64-sse2"
vcvars: "x64"
config: "ReleaseLTCG-Clang-SSE2"
platform: "x64"
bindir: "x64"
assetname: "duckstation-windows-x64-sse2-release.zip"
installerassetname: "duckstation-windows-x64-sse2-installer.exe"
updatername: "updater-x64-ReleaseLTCG-SSE2.exe"
installername: "installer-x64-ReleaseLTCG-SSE2.exe"
uninstallername: "uninstaller-x64-ReleaseLTCG-SSE2.exe"
- name: "ARM64"
arch: "arm64"
vcvars: "amd64_arm64"
config: "ReleaseLTCG-Clang"
platform: "ARM64"
bindir: "ARM64"
assetname: "duckstation-windows-arm64-release.zip"
installerassetname: "duckstation-windows-arm64-installer.exe"
updatername: "updater-ARM64-ReleaseLTCG.exe"
installername: "installer-ARM64-ReleaseLTCG.exe"
uninstallername: "uninstaller-ARM64-ReleaseLTCG.exe"
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
uses: actions/cache@v5
with:
path: |
dep/msvc/deps-arm64
dep/msvc/deps-x64
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat') }}
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat', 'scripts/deps/versions') }}
- name: Build x64 Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
@@ -35,29 +74,21 @@ jobs:
DEBUG: 0
run: scripts/deps/build-dependencies-windows-arm64.bat
- name: Initialize Build Tag
shell: cmd
run: |
echo #pragma once > src/scmversion/tag.h
- name: Set Build Tag Asset
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
echo #pragma once > src/scmversion/tag.h
echo #define UPDATER_RELEASE_CHANNEL "preview" >> src/scmversion/tag.h
echo #define UPDATER_RELEASE_IS_OFFICIAL 1 >> src/scmversion/tag.h
- name: Tag as Rolling Release Build
- name: Tag as Stable Build
if: github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
echo #pragma once > src/scmversion/tag.h
echo #define UPDATER_RELEASE_CHANNEL "latest" >> src/scmversion/tag.h
echo #define UPDATER_RELEASE_IS_OFFICIAL 1 >> src/scmversion/tag.h
- name: Update RC Version Fields
shell: cmd
@@ -71,230 +102,46 @@ jobs:
shell: cmd
run: |
cd data/resources
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
curl --retry 5 --retry-all-errors -LO "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile x64 Release Build
- name: Compile ${{ matrix.name }} Release Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG-Clang
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.vcvars }}
msbuild duckstation.sln -t:Build -p:Platform=${{ matrix.platform }};Configuration=${{ matrix.config }}
- name: Create x64 Symbols Archive
- name: Create ${{ matrix.name }} Symbols Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-release-symbols.zip ./bin/x64/*.pdb
"C:\Program Files\7-Zip\7z.exe" a -mx9 -r duckstation-windows-${{ matrix.arch }}-release-symbols.zip ./bin/${{ matrix.bindir }}/*.pdb
- name: Remove Extra Bloat Before Archiving
shell: cmd
run: |
del /Q bin\x64\*.pdb bin\x64\*.exp bin\x64\*.lib bin\x64\*.iobj bin\x64\*.ipdb bin\x64\common-tests*
rename bin\x64\updater-x64-ReleaseLTCG.exe updater.exe
del /Q bin\${{ matrix.bindir }}\*.pdb bin\${{ matrix.bindir }}\*.exp bin\${{ matrix.bindir }}\*.lib bin\${{ matrix.bindir }}\*.iobj bin\${{ matrix.bindir }}\*.ipdb bin\${{ matrix.bindir }}\common-tests*
- name: Create x64 Release Archive
- name: Rename Updater and Installer Programs
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-release.zip ./bin/x64/*
rename bin\${{ matrix.bindir }}\${{ matrix.updatername }} updater.exe
rename bin\${{ matrix.bindir }}\${{ matrix.uninstallername }} uninstaller.exe
move bin\${{ matrix.bindir }}\${{ matrix.installername }} ${{ matrix.installerassetname }}.tmp
- name: Upload x64 Release Artifact
uses: actions/upload-artifact@v4.3.3
- name: Create ${{ matrix.name }} Release Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -mx9 -r ${{ matrix.assetname }} ./bin/${{ matrix.bindir }}/*
- name: Create ${{ matrix.name }} Installer Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -mx9 -r installer.7z ./bin/${{ matrix.bindir }}/*
copy /B ${{ matrix.installerassetname }}.tmp + installer.7z ${{ matrix.installerassetname }}
del /Q ${{ matrix.installerassetname }}.tmp
- name: Upload ${{ matrix.name }} Artifacts
uses: actions/upload-artifact@v6
with:
name: "windows-x64"
path: "duckstation-windows-x64-release*.zip"
windows-x64-sse2-build:
name: "x64 SSE2"
runs-on: windows-2022
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
with:
path: |
dep/msvc/deps-arm64
dep/msvc/deps-x64
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat') }}
- name: Build x64 Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
env:
DEBUG: 0
run: scripts/deps/build-dependencies-windows-x64.bat
- name: Build ARM64 Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
env:
DEBUG: 0
run: scripts/deps/build-dependencies-windows-arm64.bat
- name: Initialize Build Tag
shell: cmd
run: |
echo #pragma once > src/scmversion/tag.h
- name: Set Build Tag Asset
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-sse2-release.zip" >> src/scmversion/tag.h
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
- name: Tag as Rolling Release Build
if: github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
- name: Update RC Version Fields
shell: cmd
run: |
cd src\scmversion
call update_rc_version.bat
cd ..\..
git update-index --assume-unchanged src/duckstation-qt/duckstation-qt.rc
- name: Download Patch Archives
shell: cmd
run: |
cd data/resources
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile x64 Release Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG-Clang-SSE2
- name: Create x64 Symbols Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-sse2-release-symbols.zip ./bin/x64/*.pdb
- name: Remove Extra Bloat Before Archiving
shell: cmd
run: |
del /Q bin\x64\*.pdb bin\x64\*.exp bin\x64\*.lib bin\x64\*.iobj bin\x64\*.ipdb bin\x64\common-tests*
rename bin\x64\updater-x64-ReleaseLTCG-SSE2.exe updater.exe
- name: Create x64 Release Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-sse2-release.zip ./bin/x64/*
- name: Upload x64 Release Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: "windows-x64-sse2"
path: "duckstation-windows-x64-sse2-release*.zip"
windows-arm64-build:
name: "ARM64"
runs-on: windows-2022
timeout-minutes: 120
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
submodules: true
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v4.0.2
with:
path: |
dep/msvc/deps-arm64
dep/msvc/deps-x64
key: deps ${{ hashFiles('scripts/deps/build-dependencies-windows-arm64.bat', 'scripts/deps/build-dependencies-windows-x64.bat') }}
- name: Build x64 Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
env:
DEBUG: 0
run: scripts/deps/build-dependencies-windows-x64.bat
- name: Build ARM64 Dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
env:
DEBUG: 0
run: scripts/deps/build-dependencies-windows-arm64.bat
- name: Initialize Build Tag
shell: cmd
run: |
echo #pragma once > src/scmversion/tag.h
- name: Set Build Tag Asset
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_ASSET "duckstation-windows-arm64-release.zip" >> src/scmversion/tag.h
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
- name: Tag as Preview Release
if: github.ref == 'refs/heads/master'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
- name: Tag as Rolling Release
if: github.ref == 'refs/heads/dev'
shell: cmd
run: |
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
- name: Update RC Version Fields
shell: cmd
run: |
cd src\scmversion
call update_rc_version.bat
cd ..\..
git update-index --assume-unchanged src/duckstation-qt/duckstation-qt.rc
- name: Download Patch Archives
shell: cmd
run: |
cd data/resources
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/cheats.zip"
aria2c -Z "https://github.com/duckstation/chtdb/releases/download/latest/patches.zip"
- name: Compile ARM64 Release Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
msbuild duckstation.sln -t:Build -p:Platform=ARM64;Configuration=ReleaseLTCG-Clang
- name: Create ARM64 symbols archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-arm64-release-symbols.zip ./bin/ARM64/*.pdb
- name: Remove Extra Bloat Before Archiving
shell: cmd
run: |
del /Q bin\ARM64\*.pdb bin\ARM64\*.exp bin\ARM64\*.lib bin\ARM64\*.iobj bin\ARM64\*.ipdb bin\ARM64\common-tests*
rename bin\ARM64\updater-ARM64-ReleaseLTCG.exe updater.exe
- name: Create ARM64 Release Archive
shell: cmd
run: |
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-arm64-release.zip ./bin/ARM64/*
- name: Upload ARM64 Release Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: "windows-arm64"
path: "duckstation-windows-arm64-release*.zip"
name: "windows-${{ matrix.arch }}"
path: "duckstation-windows-${{ matrix.arch }}-*.*"

View File

@@ -1,4 +1,14 @@
cmake_minimum_required(VERSION 3.16)
# SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
# SPDX-License-Identifier: CC-BY-NC-ND-4.0 + Packaging Restriction
#
# NOTE: In addition to the terms of CC-BY-NC-ND-4.0, you may not use this file to create
# packages or build recipes without explicit permission from the copyright holder.
#
# Unless otherwise specified, other files supporting the build system are covered under
# the same terms.
#
cmake_minimum_required(VERSION 3.19)
project(duckstation C CXX)
# Policy settings.
@@ -12,14 +22,9 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
endif()
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|MinSizeRel|RelWithDebInfo|Release")
message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Release.")
set(CMAKE_BUILD_TYPE "Release")
message(FATAL_ERROR "CMAKE_BUILD_TYPE not set. Please set it first.")
endif()
message(STATUS "CMake Version: ${CMAKE_VERSION}")
message(STATUS "CMake System Name: ${CMAKE_SYSTEM_NAME}")
message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}")
# Pull in modules.
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
include(DuckStationUtils)
@@ -34,6 +39,7 @@ detect_cache_line_size()
# Build options. Depends on system attributes.
include(DuckStationBuildOptions)
include(DuckStationDependencies)
include(DuckStationCompilerRequirement)
# Enable PIC on Linux, otherwise the builds do not support ASLR.
if(LINUX OR BSD)
@@ -44,11 +50,8 @@ endif()
# Release build optimizations for MSVC.
if(MSVC)
add_definitions("/D_CRT_SECURE_NO_WARNINGS")
add_compile_definitions("_UNICODE" "UNICODE" "_CRT_NONSTDC_NO_DEPRECATE" "_CRT_SECURE_NO_WARNINGS")
foreach(config CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
# Set warning level 3 instead of 4.
string(REPLACE "/W3" "/W4" ${config} "${${config}}")
# Enable intrinsic functions, disable minimal rebuild, UTF-8 source, set __cplusplus version.
set(${config} "${${config}} /Oi /Gm- /utf-8 /Zc:__cplusplus")
endforeach()
@@ -67,6 +70,10 @@ if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /OPT:REF /OPT:ICF")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} /OPT:REF /OPT:ICF")
set(CMAKE_EXE_LINKER_FLAGS_DEVEL "${CMAKE_EXE_LINKER_FLAGS_DEVEL} /OPT:REF /OPT:ICF")
else()
# Force debug symbols for Linux builds.
add_debug_symbol_flag(CMAKE_C_FLAGS_RELEASE)
add_debug_symbol_flag(CMAKE_CXX_FLAGS_RELEASE)
endif()
# Warning disables.
@@ -92,21 +99,20 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")
endif()
# Rewrite paths in macros to be relative to the source directory.
# Helpful for reproducible builds.
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND NOT CMAKE_GENERATOR MATCHES "Xcode" AND
(COMPILER_CLANG OR COMPILER_CLANG_CL OR COMPILER_GCC))
file(RELATIVE_PATH source_dir_remap "${CMAKE_BINARY_DIR}" "${CMAKE_SOURCE_DIR}")
string(REGEX REPLACE "\/+$" "" source_dir_remap "${source_dir_remap}")
set(source_dir_remap_str "\"${CMAKE_SOURCE_DIR}\"=\"${source_dir_remap}\"")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffile-prefix-map=${source_dir_remap_str}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffile-prefix-map=${source_dir_remap_str}")
endif()
# Write binaries to a seperate directory.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
# Installation directories. If INSTALL_SELF_CONTAINED is set, everything goes
# into one directory, otherwise CMAKE_INSTALL_PREFIX/bin is used (for Flatpak).
if(ALLOW_INSTALL)
if(INSTALL_SELF_CONTAINED)
set(CMAKE_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}")
set(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}")
else()
# Let GNUInstallDirs set the destinations.
include(GNUInstallDirs)
endif()
endif()
# Enable large file support on Linux 32-bit platforms.
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
add_definitions("-D_FILE_OFFSET_BITS=64")
@@ -117,13 +123,6 @@ if(BUILD_TESTS)
enable_testing()
endif()
# Prevent fmt from being built with exceptions, or being thrown at call sites.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFMT_EXCEPTIONS=0")
# Use C++20.
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Recursively include the source tree.
add_subdirectory(dep)
add_subdirectory(src)

View File

@@ -1,47 +0,0 @@
# Borrowed from PCSX2.
if(APPLE)
function(add_metal_sources target sources)
if(CMAKE_GENERATOR MATCHES "Xcode")
# If we're generating an xcode project, you can just add the shaders to the main pcsx2 target and xcode will deal with them properly
# This will make sure xcode supplies code completion, etc (if you use a custom command, it won't)
set_target_properties(${target} PROPERTIES
XCODE_ATTRIBUTE_MTL_ENABLE_DEBUG_INFO INCLUDE_SOURCE
)
foreach(shader IN LISTS sources)
target_sources(${target} PRIVATE ${shader})
set_source_files_properties(${shader} PROPERTIES LANGUAGE METAL)
endforeach()
else()
function(generateMetallib std triple outputName)
set(MetalShaderOut)
set(flags
-ffast-math
$<$<NOT:$<CONFIG:Release,MinSizeRel>>:-gline-tables-only>
$<$<NOT:$<CONFIG:Release,MinSizeRel>>:-MO>
)
foreach(shader IN LISTS sources)
file(RELATIVE_PATH relativeShader "${CMAKE_SOURCE_DIR}" "${shader}")
set(shaderOut ${CMAKE_CURRENT_BINARY_DIR}/${outputName}/${relativeShader}.air)
list(APPEND MetalShaderOut ${shaderOut})
get_filename_component(shaderDir ${shaderOut} DIRECTORY)
add_custom_command(OUTPUT ${shaderOut}
COMMAND ${CMAKE_COMMAND} -E make_directory ${shaderDir}
COMMAND xcrun metal ${flags} -std=${std} -target ${triple} -o ${shaderOut} -c ${shader}
DEPENDS ${shader}
)
set(metallib ${CMAKE_CURRENT_BINARY_DIR}/${outputName}.metallib)
endforeach()
add_custom_command(OUTPUT ${metallib}
COMMAND xcrun metallib -o ${metallib} ${MetalShaderOut}
DEPENDS ${MetalShaderOut}
)
target_sources(${target} PRIVATE ${metallib})
set_source_files_properties(${metallib} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endfunction()
generateMetallib(macos-metal2.0 air64-apple-macos10.13 default)
generateMetallib(macos-metal2.2 air64-apple-macos10.15 Metal22)
generateMetallib(macos-metal2.3 air64-apple-macos11.0 Metal23)
endif()
endfunction()
endif()

View File

@@ -42,8 +42,6 @@ function(copy_base_translations target)
target_sources(${target} PRIVATE ${path})
if(APPLE)
set_source_files_properties(${path} PROPERTIES MACOSX_PACKAGE_LOCATION Resources/translations)
elseif(ALLOW_INSTALL)
install(FILES "${path}" DESTINATION "${CMAKE_INSTALL_BINDIR}/translations")
else()
add_custom_command(TARGET ${target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${path}" "$<TARGET_FILE_DIR:${target}>/translations")

View File

@@ -1,8 +1,8 @@
# Renderer options.
option(ENABLE_OPENGL "Build with OpenGL renderer" ON)
option(ENABLE_VULKAN "Build with Vulkan renderer" ON)
option(BUILD_NOGUI_FRONTEND "Build the NoGUI frontend" OFF)
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
option(BUILD_MINI_FRONTEND "Build the Mini frontend" OFF)
option(BUILD_REGTEST "Build regression test runner" OFF)
option(BUILD_TESTS "Build unit tests" OFF)
option(DISABLE_SSE4 "Build with SSE4 instructions disabled, reduces performance" OFF)
@@ -10,8 +10,6 @@ option(DISABLE_SSE4 "Build with SSE4 instructions disabled, reduces performance"
if(LINUX OR BSD)
option(ENABLE_X11 "Support X11 window system" ON)
option(ENABLE_WAYLAND "Support Wayland window system" ON)
option(ALLOW_INSTALL "Allow installation to CMAKE_INSTALL_PREFIX" OFF)
option(INSTALL_SELF_CONTAINED "Make self-contained install, i.e. everything in one directory" ON)
endif()
if(APPLE)
option(SKIP_POSTPROCESS_BUNDLE "Disable bundle post-processing, including Qt additions" OFF)

View File

@@ -1,3 +1,5 @@
message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}")
if(ENABLE_OPENGL)
message(STATUS "Building with OpenGL support.")
endif()
@@ -24,18 +26,23 @@ if(BUILD_TESTS)
message(STATUS "Building unit tests.")
endif()
if(ALLOW_INSTALL)
message(WARNING "Install target is enabled. This will install all DuckStation files into:
${CMAKE_INSTALL_PREFIX}
It does **not** use the LSB subdirectories of bin, share, etc, so you should disable this option if it is set to /usr or /usr/local.")
if(INSTALL_SELF_CONTAINED)
message(STATUS "Creating self-contained install at ${CMAKE_INSTALL_PREFIX}")
else()
message(STATUS "Creating relative install at ${CMAKE_INSTALL_PREFIX}")
message(STATUS " CMAKE_INSTALL_BINDIR: ${CMAKE_INSTALL_BINDIR}")
# Refuse to build in hostile package environments. The code and build script licenses do not allow for
# packages, and I'm sick of dealing with people complaining about things broken by packagers, and then
# being attacked by package maintainers who violate their distribution's codes of conduct. Attempts to
# request removal of these packages have been unsuccessful, so we have to resort to this.
# NOTE: You do NOT have permission to distribute build scripts or patches that modify the build system
# without explicit permission from the copyright holder.
# DuckStation's code is public so it can be audited and learned from. Not to repackage.
# This is why we can't have nice things.
if(EXISTS /etc/os-release)
file(READ /etc/os-release OS_RELEASE_CONTENT)
if(OS_RELEASE_CONTENT MATCHES "ID=arch" OR OS_RELEASE_CONTENT MATCHES "ID_LIKE=arch" OR OS_RELEASE_CONTENT MATCHES "ID=nixos")
message(FATAL_ERROR "Unsupported environment.")
endif()
endif()
if(DEFINED ENV{NIX_BUILD_TOP} OR DEFINED ENV{NIX_STORE} OR DEFINED ENV{IN_NIX_SHELL} OR EXISTS "/etc/NIXOS")
message(FATAL_ERROR "Unsupported environment.")
endif()
if(DEFINED HOST_MIN_PAGE_SIZE AND DEFINED HOST_MAX_PAGE_SIZE)
message(STATUS "Building with a dynamic page size of ${HOST_MIN_PAGE_SIZE} - ${HOST_MAX_PAGE_SIZE} bytes.")

View File

@@ -0,0 +1,16 @@
# Use C++20.
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# C++20 feature checks. Some Linux environments are incomplete.
check_cpp20_feature("__cpp_structured_bindings" 201606)
check_cpp20_feature("__cpp_constinit" 201907)
check_cpp20_feature("__cpp_designated_initializers" 201707)
check_cpp20_feature("__cpp_using_enum" 201907)
check_cpp20_feature("__cpp_lib_bit_cast" 201806)
check_cpp20_feature("__cpp_lib_bitops" 201907)
check_cpp20_feature("__cpp_lib_int_pow2" 202002)
check_cpp20_feature("__cpp_lib_starts_ends_with" 201711)
check_cpp20_attribute("likely" 201803)
check_cpp20_attribute("unlikely" 201803)
check_cpp20_attribute("no_unique_address" 201803)

View File

@@ -1,52 +1,60 @@
# From PCSX2: On macOS, Mono.framework contains an ancient version of libpng. We don't want that.
# Avoid it by telling cmake to avoid finding frameworks while we search for libpng.
if(APPLE)
set(FIND_FRAMEWORK_BACKUP ${CMAKE_FIND_FRAMEWORK})
set(CMAKE_FIND_FRAMEWORK NEVER)
# Set prefix path to look for our bundled dependencies first on Windows.
if(WIN32 AND CPU_ARCH_X64)
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/dep/msvc/deps-x64")
elseif(WIN32 AND CPU_ARCH_ARM64)
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/dep/msvc/deps-arm64")
endif()
# Enable threads everywhere.
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
find_package(SDL2 2.30.8 REQUIRED)
find_package(Zstd 1.5.6 REQUIRED)
# pkg-config gets pulled transitively on some platforms.
if(NOT WIN32 AND NOT APPLE)
find_package(PkgConfig REQUIRED)
endif()
# libpng relies on zlib, which we need the system version for on Mac.
if(APPLE OR CPU_ARCH_ARM32 OR CPU_ARCH_ARM64)
find_package(ZLIB REQUIRED)
endif()
# Enforce use of bundled dependencies to avoid conflicts with system libraries.
set(FIND_ROOT_PATH_BACKUP ${CMAKE_FIND_ROOT_PATH})
set(FIND_ROOT_PATH_MODE_INCLUDE_BACKUP ${CMAKE_FIND_ROOT_PATH_MODE_INCLUDE})
set(FIND_ROOT_PATH_MODE_LIBRARY_BACKUP ${CMAKE_FIND_ROOT_PATH_MODE_LIBRARY})
set(FIND_ROOT_PATH_MODE_PACKAGE_BACKUP ${CMAKE_FIND_ROOT_PATH_MODE_PACKAGE})
set(FIND_ROOT_PATH_MODE_PROGRAM_BACKUP ${CMAKE_FIND_ROOT_PATH_MODE_PROGRAM})
set(CMAKE_FIND_ROOT_PATH ${CMAKE_PREFIX_PATH})
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
# Search for local zlib version outside of Mac.
if(NOT APPLE AND NOT CPU_ARCH_ARM32 AND NOT CPU_ARCH_ARM64)
find_package(ZLIB 1.3.1 REQUIRED)
endif()
# Bundled dependencies.
find_package(zstd 1.5.7 REQUIRED)
find_package(WebP REQUIRED) # v1.4.0, spews an error on Linux because no pkg-config.
find_package(ZLIB REQUIRED) # 1.3, but Mac currently doesn't use it.
find_package(PNG 1.6.40 REQUIRED)
find_package(PNG 1.6.54 REQUIRED)
find_package(JPEG REQUIRED)
find_package(Freetype 2.13.2 REQUIRED) # 2.13.3, but flatpak is still on 2.13.2.
find_package(lunasvg 2.4.1 REQUIRED)
find_package(SDL3 3.4.0 REQUIRED)
find_package(Freetype 2.14.1 REQUIRED)
find_package(harfbuzz REQUIRED)
find_package(plutosvg 0.0.6 REQUIRED)
find_package(cpuinfo REQUIRED)
find_package(DiscordRPC 3.4.0 REQUIRED)
find_package(SoundTouch 2.3.3 REQUIRED)
find_package(libzip 1.11.1 REQUIRED)
if(NOT WIN32)
find_package(CURL REQUIRED)
endif()
if(ENABLE_X11)
find_package(X11 REQUIRED)
if (NOT X11_xcb_FOUND OR NOT X11_xcb_randr_FOUND OR NOT X11_X11_xcb_FOUND)
message(FATAL_ERROR "XCB, XCB-randr and X11-xcb are required")
endif()
endif()
if(ENABLE_WAYLAND)
find_package(ECM REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}")
find_package(Wayland REQUIRED Egl)
endif()
if(BUILD_QT_FRONTEND)
find_package(Qt6 6.8.0 COMPONENTS Core Gui Widgets LinguistTools REQUIRED)
endif()
find_package(libzip 1.11.4 REQUIRED)
find_package(Shaderc REQUIRED)
find_package(spirv_cross_c_shared REQUIRED)
if(LINUX AND NOT (ALLOW_INSTALL AND INSTALL_SELF_CONTAINED))
if(NOT WIN32 AND NOT APPLE)
find_package(Libbacktrace REQUIRED)
# We need to add the rpath for shaderc to the executable.
get_target_property(SHADERC_LIBRARY Shaderc::shaderc_shared IMPORTED_LOCATION)
get_filename_component(SHADERC_LIBRARY_DIRECTORY ${SHADERC_LIBRARY} DIRECTORY)
@@ -56,24 +64,59 @@ if(LINUX AND NOT (ALLOW_INSTALL AND INSTALL_SELF_CONTAINED))
list(APPEND CMAKE_BUILD_RPATH ${SPIRV_CROSS_LIBRARY_DIRECTORY})
endif()
if(LINUX)
find_package(UDEV REQUIRED)
# Restore system package search path.
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ${FIND_ROOT_PATH_MODE_INCLUDE_BACKUP})
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ${FIND_ROOT_PATH_MODE_LIBRARY_BACKUP})
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ${FIND_ROOT_PATH_MODE_PACKAGE_BACKUP})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ${FIND_ROOT_PATH_MODE_PROGRAM_BACKUP})
set(CMAKE_FIND_ROOT_PATH ${FIND_ROOT_PATH_BACKUP})
# Qt has transitive dependencies on system libs, so do it afterwards.
if(BUILD_QT_FRONTEND)
# All our builds include Qt, so this is not a problem.
set(QT_NO_PRIVATE_MODULE_WARNING ON)
if(LINUX)
find_package(Qt6 6.10.2 COMPONENTS Core Gui GuiPrivate Widgets LinguistTools DBus REQUIRED)
else()
find_package(Qt6 6.10.2 COMPONENTS Core Gui GuiPrivate Widgets LinguistTools REQUIRED)
endif()
# Have to verify it down here, don't want users using unpatched Qt.
if(NOT Qt6_DIR MATCHES "^${CMAKE_PREFIX_PATH}")
message(FATAL_ERROR "Using incorrect Qt library. Check your dependencies.")
endif()
endif()
if(NOT WIN32 AND NOT APPLE)
find_package(Libbacktrace REQUIRED)
# Libraries that are pulled in from host.
if(NOT WIN32)
find_package(CURL REQUIRED)
if(LINUX)
find_package(UDEV REQUIRED)
endif()
if(NOT APPLE)
if(ENABLE_X11)
find_package(X11 REQUIRED)
if (NOT X11_xcb_FOUND OR NOT X11_xcb_randr_FOUND OR NOT X11_X11_xcb_FOUND)
message(FATAL_ERROR "XCB, XCB-randr and X11-xcb are required")
endif()
endif()
if(ENABLE_WAYLAND)
find_package(ECM REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}")
find_package(Wayland REQUIRED Egl)
endif()
endif()
endif()
if(NOT ANDROID AND NOT WIN32)
find_package(FFMPEG COMPONENTS avcodec avformat avutil swresample swscale)
if(NOT WIN32)
find_package(FFMPEG 8.0.1 COMPONENTS avcodec avformat avutil swresample swscale)
if(NOT FFMPEG_FOUND)
message(WARNING "FFmpeg not found, using bundled headers.")
endif()
endif()
if(NOT ANDROID AND NOT FFMPEG_FOUND)
if(NOT FFMPEG_FOUND)
set(FFMPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/dep/ffmpeg/include")
endif()
if(APPLE)
set(CMAKE_FIND_FRAMEWORK ${FIND_FRAMEWORK_BACKUP})
endif()

View File

@@ -1,3 +1,5 @@
include(CheckSourceCompiles)
function(disable_compiler_warnings_for_target target)
if(MSVC)
target_compile_options(${target} PRIVATE "/W0")
@@ -74,8 +76,8 @@ function(detect_architecture)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1" PARENT_SCOPE)
elseif(MSVC AND NOT DISABLE_SSE4)
# Clang defines these macros, MSVC does not.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D__SSE3__ /D__SSE4_1__")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D__SSE3__ /D__SSE4_1__")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D__SSE3__ /D__SSE4_1__" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D__SSE3__ /D__SSE4_1__" PARENT_SCOPE)
endif()
elseif(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64") AND
CMAKE_SIZEOF_VOID_P EQUAL 8) # Might have an A64 kernel, e.g. Raspbian.
@@ -118,8 +120,11 @@ function(detect_page_size)
# For universal Apple builds, we use preprocessor macros to determine page size.
# Similar for Windows, except it's always 4KB.
if(NOT CPU_ARCH_ARM64 OR NOT LINUX)
unset(HOST_PAGE_SIZE CACHE)
unset(HOST_PAGE_SIZE PARENT_SCOPE)
unset(HOST_MIN_PAGE_SIZE CACHE)
unset(HOST_MIN_PAGE_SIZE PARENT_SCOPE)
unset(HOST_MAX_PAGE_SIZE CACHE)
unset(HOST_MAX_PAGE_SIZE PARENT_SCOPE)
return()
elseif(DEFINED HOST_PAGE_SIZE)
@@ -166,6 +171,7 @@ endfunction()
function(detect_cache_line_size)
# This is only needed for ARM64, or if the user hasn't overridden it explicitly.
if(NOT CPU_ARCH_ARM64 OR HOST_CACHE_LINE_SIZE)
unset(HOST_CACHE_LINE_SIZE CACHE)
unset(HOST_CACHE_LINE_SIZE PARENT_SCOPE)
return()
endif()
@@ -240,8 +246,132 @@ function(get_scm_version)
endif()
endfunction()
function(install_imported_dep_library name)
get_target_property(SONAME "${name}" IMPORTED_SONAME_RELEASE)
get_target_property(LOCATION "${name}" IMPORTED_LOCATION_RELEASE)
install(FILES "${LOCATION}" RENAME "${SONAME}" DESTINATION "${CMAKE_INSTALL_LIBDIR}")
function(add_debug_symbol_flag var)
# CMake's regex engine is missing so many features...
set(value "${${var}}")
if (NOT " ${value} " MATCHES " -g[1-3]? ")
message(STATUS "Adding -g1 to ${var}.")
set(${var} "${value} -g1" PARENT_SCOPE)
endif()
endfunction()
function(check_cpp20_feature MACRO MINIMUM_VALUE)
set(CACHE_VAR "CHECK_CPP20_FEATURE_${MACRO}")
if(NOT DEFINED ${CACHE_VAR})
# Create a small source code snippet that fails to compile if the feature is not available.
set(TEMP_FILE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cpp")
file(WRITE "${TEMP_FILE}" "#include <version>
#if !defined(${MACRO}) || ${MACRO} < ${MINIMUM_VALUE}L
#error Missing feature
#endif
")
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
try_compile(HAS_FEATURE
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} "${TEMP_FILE}"
CXX_STANDARD 20
CXX_STANDARD_REQUIRED TRUE
)
set(${CACHE_VAR} ${HAS_FEATURE} CACHE INTERNAL "Cached feature test result for ${MACRO}")
endif()
if(NOT HAS_FEATURE)
message(FATAL_ERROR "${MACRO} is not supported by your compiler, at least ${MINIMUM_VALUE} is required.")
endif()
endfunction()
function(check_cpp20_attribute ATTRIBUTE MINIMUM_VALUE)
set(CACHE_VAR "CHECK_CPP20_ATTRIBUTE_${MACRO}")
if(NOT DEFINED ${CACHE_VAR})
set(TEMP_FILE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cpp")
file(WRITE "${TEMP_FILE}" "#include <version>
#if !defined(__has_cpp_attribute) || __has_cpp_attribute(${ATTRIBUTE}) < ${MINIMUM_VALUE}L
#error Missing feature
#endif
")
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
try_compile(HAS_FEATURE
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} "${TEMP_FILE}"
CXX_STANDARD 20
CXX_STANDARD_REQUIRED TRUE
)
set(${CACHE_VAR} ${HAS_FEATURE} CACHE INTERNAL "Cached attribute test result for ${MACRO}")
endif()
if(NOT HAS_FEATURE)
message(FATAL_ERROR "${ATTRIBUTE} is not supported by your compiler, at least ${MINIMUM_VALUE} is required.")
endif()
endfunction()
if(APPLE)
function(add_metal_sources target sources library_name metal_std)
set(air_files)
set(compile_flags -std=${metal_std} -ffast-math)
foreach(source IN LISTS sources)
get_filename_component(source_name ${source} NAME)
set(air_file ${CMAKE_CURRENT_BINARY_DIR}/${library_name}/${source_name}.air)
list(APPEND air_files ${air_file})
add_custom_command(
OUTPUT ${air_file}
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/${library_name}
COMMAND xcrun metal ${compile_flags} -o ${air_file} -c ${source}
DEPENDS ${source}
COMMENT "Compiling Metal shader ${source_name}"
)
endforeach()
set(metallib_file ${CMAKE_CURRENT_BINARY_DIR}/${library_name}.metallib)
add_custom_command(
OUTPUT ${metallib_file}
COMMAND xcrun metallib -o ${metallib_file} ${air_files}
DEPENDS ${air_files}
COMMENT "Linking Metal library ${library_name}.metallib"
)
target_sources(${target} PRIVATE ${metallib_file})
set_source_files_properties(${metallib_file} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endfunction()
endif()
function(add_resources TARGET DEST_SUBDIR SOURCE_DIR)
# Recursively find all files in the source directory
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS "${SOURCE_DIR}/*")
foreach(SOURCE_FILE IN LISTS SOURCE_FILES)
# Skip directories
if(IS_DIRECTORY "${SOURCE_FILE}")
continue()
endif()
# Get the path relative to SOURCE_DIR
file(RELATIVE_PATH REL_PATH "${SOURCE_DIR}" "${SOURCE_FILE}")
# Get the subdirectory portion (if any)
get_filename_component(REL_SUBDIR "${REL_PATH}" DIRECTORY)
if(APPLE)
# On macOS, add as source with MACOSX_PACKAGE_LOCATION
target_sources(${TARGET} PRIVATE "${SOURCE_FILE}")
if(REL_SUBDIR)
set_source_files_properties("${SOURCE_FILE}" PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources/${REL_SUBDIR}")
else()
set_source_files_properties("${SOURCE_FILE}" PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
endif()
else()
# On other platforms, use custom command to copy files
if(REL_SUBDIR)
set(DEST_PATH "$<TARGET_FILE_DIR:${TARGET}>/${DEST_SUBDIR}/${REL_SUBDIR}")
else()
set(DEST_PATH "$<TARGET_FILE_DIR:${TARGET}>/${DEST_SUBDIR}")
endif()
add_custom_command(TARGET ${TARGET} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${DEST_PATH}"
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SOURCE_FILE}" "${DEST_PATH}/"
COMMENT "Copying ${REL_PATH} to ${DEST_SUBDIR}"
)
endif()
endforeach()
endfunction()

View File

@@ -1,45 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# - Try to find Facebook zstd library
# This will define
# Zstd_FOUND
# Zstd_INCLUDE_DIR
# Zstd_LIBRARY
#
find_path(Zstd_INCLUDE_DIR NAMES zstd.h)
find_library(Zstd_LIBRARY_DEBUG NAMES zstdd zstd_staticd)
find_library(Zstd_LIBRARY_RELEASE NAMES zstd zstd_static)
include(SelectLibraryConfigurations)
SELECT_LIBRARY_CONFIGURATIONS(Zstd)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
Zstd DEFAULT_MSG
Zstd_LIBRARY Zstd_INCLUDE_DIR
)
mark_as_advanced(Zstd_INCLUDE_DIR Zstd_LIBRARY)
if(Zstd_FOUND AND NOT (TARGET Zstd::Zstd))
add_library (Zstd::Zstd UNKNOWN IMPORTED)
set_target_properties(Zstd::Zstd
PROPERTIES
IMPORTED_LOCATION ${Zstd_LIBRARY}
INTERFACE_INCLUDE_DIRECTORIES ${Zstd_INCLUDE_DIR})
endif()

186
CMakeModules/Findzstd.cmake Normal file
View File

@@ -0,0 +1,186 @@
# Copyright (C) 2020 Dieter Baron and Thomas Klausner
#
# The authors can be contacted at <info@libzip.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. The names of the authors may not be used to endorse or promote
# products derived from this software without specific prior
# written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#[=======================================================================[.rst:
Findzstd
-------
Finds the Zstandard (zstd) library.
Imported Targets
^^^^^^^^^^^^^^^^
This module provides the following imported targets, if found:
``zstd::libzstd_shared``
The shared Zstandard library
``zstd::libzstd_static``
The shared Zstandard library
Result Variables
^^^^^^^^^^^^^^^^
This will define the following variables:
``zstd_FOUND``
True if the system has the Zstandard library.
``zstd_VERSION``
The version of the Zstandard library which was found.
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables may also be set:
``zstd_INCLUDE_DIR``
The directory containing ``zstd.h``.
``zstd_STATIC_LIBRARY``
The path to the Zstandard static library.
``zstd_SHARED_LIBRARY``
The path to the Zstandard shared library.
``zstd_DLL``
The path to the Zstandard DLL.
#]=======================================================================]
find_package(PkgConfig)
pkg_check_modules(PC_zstd QUIET libzstd)
find_path(zstd_INCLUDE_DIR
NAMES zstd.h
HINTS ${PC_zstd_INCLUDE_DIRS}
)
find_file(zstd_DLL
NAMES libzstd.dll zstd.dll
PATH_SUFFIXES bin
HINTS ${PC_zstd_PREFIX}
)
# On Windows, we manually define the library names to avoid mistaking the
# implib for the static library
if(zstd_DLL)
set(_zstd_win_static_name zstd-static)
set(_zstd_win_shared_name zstd)
else()
# vcpkg removes the -static suffix in static builds
set(_zstd_win_static_name zstd zstd_static)
set(_zstd_win_shared_name)
endif()
set(_previous_suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES})
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".dylib" ".dll.a" ".lib")
find_library(zstd_SHARED_LIBRARY
NAMES zstd ${_zstd_win_shared_name}
HINTS ${PC_zstd_LIBDIR}
)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a" ".lib")
find_library(zstd_STATIC_LIBRARY
NAMES zstd ${_zstd_win_static_name}
HINTS ${PC_zstd_LIBDIR}
)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_previous_suffixes})
# Set zstd_LIBRARY to the shared library or fall back to the static library
if(zstd_SHARED_LIBRARY)
set(_zstd_LIBRARY ${zstd_SHARED_LIBRARY})
else()
set(_zstd_LIBRARY ${zstd_STATIC_LIBRARY})
endif()
# Extract version information from the header file
if(zstd_INCLUDE_DIR)
file(STRINGS ${zstd_INCLUDE_DIR}/zstd.h _ver_major_line
REGEX "^#define ZSTD_VERSION_MAJOR *[0-9]+"
LIMIT_COUNT 1)
string(REGEX MATCH "[0-9]+"
zstd_MAJOR_VERSION "${_ver_major_line}")
file(STRINGS ${zstd_INCLUDE_DIR}/zstd.h _ver_minor_line
REGEX "^#define ZSTD_VERSION_MINOR *[0-9]+"
LIMIT_COUNT 1)
string(REGEX MATCH "[0-9]+"
zstd_MINOR_VERSION "${_ver_minor_line}")
file(STRINGS ${zstd_INCLUDE_DIR}/zstd.h _ver_release_line
REGEX "^#define ZSTD_VERSION_RELEASE *[0-9]+"
LIMIT_COUNT 1)
string(REGEX MATCH "[0-9]+"
zstd_RELEASE_VERSION "${_ver_release_line}")
set(Zstd_VERSION "${zstd_MAJOR_VERSION}.${zstd_MINOR_VERSION}.${zstd_RELEASE_VERSION}")
unset(_ver_major_line)
unset(_ver_minor_line)
unset(_ver_release_line)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(zstd
FOUND_VAR zstd_FOUND
REQUIRED_VARS
_zstd_LIBRARY
zstd_INCLUDE_DIR
VERSION_VAR zstd_VERSION
)
if(zstd_FOUND AND zstd_SHARED_LIBRARY AND NOT TARGET zstd::libzstd_shared)
add_library(zstd::libzstd_shared SHARED IMPORTED)
if(WIN32)
set_target_properties(zstd::libzstd_shared PROPERTIES
IMPORTED_LOCATION "${zstd_DLL}"
IMPORTED_IMPLIB "${zstd_SHARED_LIBRARY}"
)
else()
set_target_properties(zstd::libzstd_shared PROPERTIES
IMPORTED_LOCATION "${zstd_SHARED_LIBRARY}"
)
endif()
set_target_properties(zstd::libzstd_shared PROPERTIES
INTERFACE_COMPILE_OPTIONS "${PC_zstd_CFLAGS_OTHER}"
INTERFACE_INCLUDE_DIRECTORIES "${zstd_INCLUDE_DIR}"
)
endif()
if(zstd_FOUND AND zstd_STATIC_LIBRARY AND NOT TARGET zstd::libzstd_static)
add_library(zstd::libzstd_static STATIC IMPORTED)
set_target_properties(zstd::libzstd_static PROPERTIES
IMPORTED_LOCATION "${zstd_STATIC_LIBRARY}"
INTERFACE_COMPILE_OPTIONS "${PC_zstd_CFLAGS_OTHER}"
INTERFACE_INCLUDE_DIRECTORIES "${zstd_INCLUDE_DIR}"
)
endif()
mark_as_advanced(
zstd_INCLUDE_DIR
zstd_DLL
zstd_SHARED_LIBRARY
zstd_STATIC_LIBRARY
)

127
README.md
View File

@@ -1,9 +1,8 @@
# DuckStation - PlayStation 1, aka. PSX Emulator
[Features](#features) | [Downloading and Running](#downloading-and-running) | [Building](#building) | [Disclaimers](#disclaimers)
**Latest Builds for Windows 10/11 (x64/ARM64), Linux (AppImage/Flatpak), and macOS (11.0+ Universal):** https://github.com/stenzek/duckstation/releases/tag/latest
**Game Compatibility List:** https://docs.google.com/spreadsheets/d/e/2PACX-1vRE0jjiK_aldpICoy5kVQlpk2f81Vo6P4p9vfg4d7YoTOoDlH4PQHoXjTD2F7SdN8SSBLoEAItaIqQo/pubhtml
**Latest Builds for Windows 10/11 (x64/ARM64), Linux (AppImage x64/ARM32/ARM64), and macOS (13.3+ Universal):** https://github.com/stenzek/duckstation/releases/tag/latest
**Discord Server:** https://www.duckstation.org/discord.html
@@ -23,20 +22,23 @@ DuckStation features a fully-featured frontend built using Qt, as well as a full
Other features include:
- CPU Recompiler/JIT (x86-64, armv7/AArch32, AArch64, RISC-V/RV64).
- Hardware (D3D11, D3D12, OpenGL, Vulkan, Metal) and software rendering.
- Hardware renderer supporting D3D11, D3D12, OpenGL, Vulkan and Metal APIs.
- Upscaling, texture filtering, and true colour (24-bit) in hardware renderers.
- Accurate blending via Rasterizer Order Views/Fragment Shader Interlock.
- PGXP for geometry precision, texture correction, and depth buffer emulation.
- Accurate blending via Rasterizer Order Views/Fragment Shader Interlock.
- Texture replacement system in hardware renderers.
- Vectorized and multi-threaded software renderer.
- Motion adaptive deinterlacing.
- Adaptive downsampling filter.
- Screen rotation for vertical or "TATE" shmup games.
- Post processing shader chains (GLSL and Reshade FX).
- Post processing shader chains (GLSL, Reshade FX and Slang Presets).
- Border overlays/bezels displayed around game content.
- "Fast boot" for skipping BIOS splash/intro.
- Save state support, with runahead and rewind.
- Windows, Linux, macOS support.
- Supports reading directly from CD, bin/cue images, raw bin/img files, MAME CHD, single-track ECM, MDS/MDF, and unencrypted PBP formats.
- Preloading of disc images to RAM to avoid disk sleeping hitches.
- Merging of multi-disc games in game list/grid with memory cards shared between discs.
- Automatic loading/applying of PPF patches.
- Direct booting of homebrew executables.
- Direct loading of Portable Sound Format (psf) files.
@@ -44,6 +46,7 @@ Other features include:
- Digital and analog controllers for input (rumble is forwarded to host).
- GunCon and Justifier lightgun support (simulated with mouse).
- NeGcon support.
- Controller presets and per-game configuration.
- Qt and "Big Picture" UI.
- Automatic updates with preview and latest channels.
- Automatic content scanning - game titles/hashes are provided by redump.org.
@@ -56,74 +59,99 @@ Other features include:
- RetroAchievements.
- Discord Rich Presence.
- Video capture with Media Foundation (Windows) and [FFmpeg](https://www.ffmpeg.org/) (All Platforms) backends.
- Free camera function.
- Parallel port cartridge emulation.
## System Requirements
- A CPU faster than a potato. But it needs to be x86_64, AArch32/armv7, AArch64/ARMv8, or RISC-V/RV64.
- For the hardware renderers, a GPU capable of OpenGL 3.1/OpenGL ES 3.1/Direct3D 11 Feature Level 10.0 (or Vulkan 1.0) and above. So, basically anything made in the last 10 years or so.
- A GPU capable of OpenGL 3.1/OpenGL ES 3.1/Direct3D 11 Feature Level 10.0/Vulkan 1.0. So, basically anything made in the last 10 years or so.
- SDL, XInput or DInput compatible game controller (e.g. XB360/XBOne/XBSeries). DualShock 3 users on Windows will need to install the official DualShock 3 drivers included as part of PlayStation Now.
## Downloading and running
Binaries of DuckStation for Windows x64/ARM64, Linux x86_64 (in AppImage/Flatpak formats), and macOS Universal Binaries are available via GitHub Releases and are automatically built with every commit/push.
Binaries of DuckStation for Windows x64/ARM64, Linux x86_64/ARM32/ARM64 (in AppImage format), and macOS Universal Binaries are available via GitHub Releases and are automatically built with every commit/push.
As per the terms of CC-BY-NC-ND, redistribution of **unmodified releases and code** is permitted. However, we would prefer if you linked to https://www.duckstation.org/ instead. Please note that pre-configured settings and packages are considered modifications.
For x86 machines (most systems), you will need a CPU that supports the SSE4.1 instruction set for the "normal" build. This includes all Intel CPUs manufactured after 2007, and AMD CPUs manufactured after 2011. If you have a CPU that is older, you will need to download the "SSE2" build from the releases page, which has lower performance but still supports these CPUs.
The main releases page is limited to the last 30 releases due to automatic updater limitations. Older releases can be downloaded from https://github.com/duckstation/old-releases/releases.
### Update Channels
The automatic updater in DuckStation has two channels: "Stable" and "Preview".
- "Stable Releases": Less frequent updates, and tracks the "latest" release on GitHub. Releases in this channel have had more testing.
- "Preview Releases": Built whenever a commit is pushed to the repository, and tracks the pre-release on GitHub. This channel contains builds which have had minimal testing, and may contain bugs or issues.
By default, the updater will track the channel you downloaded from. You can change the channel in `Settings -> Interface -> Updates`.
### Windows
DuckStation **requires** Windows 10/11, specifically version 1809 or newer. If you are still using Windows 7/8/8.1, DuckStation **will not run** on your operating system. Running these operating systems in 2023 should be considered a security risk, and I would recommend updating to something which receives vendor support.
If you must use an older operating system, [v0.1-5624](https://github.com/stenzek/duckstation/releases/tag/v0.1-5624) is the last version which will run. But do not expect to recieve any assistance, these builds are no longer supported.
DuckStation **requires** Windows 10/11, specifically version 1809 or newer. If you are still using Windows 7/8/8.1, DuckStation **will not run** on your operating system. Running these operating systems in 2026 should be considered a security risk, and I would recommend updating to something which receives vendor support.
If you must use an older operating system, [v0.1-5624](https://github.com/duckstation/old-releases/releases/tag/v0.1-5624) is the last version which will run. But do not expect to receive any assistance, these builds are no longer supported.
To download:
- Go to https://github.com/stenzek/duckstation/releases/tag/latest, and download the Windows x64 build. This is a zip archive containing the prebuilt binary.
- Alternatively, direct download link: https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-x64-release.zip
- Extract the archive **to a subdirectory**. The archive has no root subdirectory, so extracting to the current directory will drop a bunch of files in your download directory if you do not extract to a subdirectory.
Windows builds are provided in two formats:
- **Installer (.exe, recommended):** An installer which extracts DuckStation to your user-local programs directory, and optionally creates Start Menu/Desktop shortcuts.
- **Archive (.zip):** A zip archive containing the prebuilt binary. Choose this option if you want a "portable" installation, or do not want to run an installer.
Once downloaded and extracted, you can launch the emulator with `duckstation-qt-x64-ReleaseLTCG.exe`. Follow the Setup Wizard to get started.
To use the installer, simply download the installer from the releases page, run it, and follow the prompts.
- Direct download link: https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-x64-installer.exe
- ARM64 download link (Snapdragon laptops): https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-arm64-installer.exe
- Legacy SSE2 installer (for pre-2008 CPUs): https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-x64-sse2-installer.exe
The installer is still a new addition, so if you encounter issues please let us know via Discord.
To use the archive or portable installation, follow these steps:
1. Download https://github.com/stenzek/duckstation/releases/download/latest/duckstation-windows-x64-release.zip. If you have an ARM64 Windows machine such as Snapdragon, download `duckstation-windows-arm64-release.zip` instead.
2. Extract the archive **to a subdirectory**. The archive has no root subdirectory, so extracting to the current directory will drop a bunch of files in your download directory if you do not extract to a subdirectory.
3. If you want a portable installation (see [User Directories](#user-directories)), create an empty file named `portable.txt` in the same directory as the executable.
4. Once downloaded and extracted, you can launch the emulator with `duckstation-qt-x64-ReleaseLTCG.exe`. Follow the Setup Wizard to get started.
**If you get an error about `vcruntime140_1.dll` being missing, you will need to update your Visual C++ runtime.** You can do that from this page: https://support.microsoft.com/en-au/help/2977003/the-latest-supported-visual-c-downloads. Specifically, you want the x64 runtime, which can be downloaded from https://aka.ms/vs/17/release/vc_redist.x64.exe.
### Linux
DuckStation is provided for x86_64 Linux in AppImage and Flatpak formats. The release on [Flathub](https://flathub.org/apps/org.duckstation.DuckStation) is official, and synchronized with the latest rolling/stable release on GitHub.
DuckStation is provided for x86_64/ARM32/ARM64 Linux in AppImage formats.
#### AppImage
The AppImages require a distribution equivalent to Ubuntu 22.04 or newer to run.
- Go to https://github.com/stenzek/duckstation/releases/tag/latest, and download `duckstation-x64.AppImage`.
- Run `chmod a+x` on the downloaded AppImage -- following this step, the AppImage can be run like a typical executable.
1. Download https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage. If you have an ARM64 Linux machine, you should download `DuckStation-arm64.AppImage`.
2. Run `chmod a+x` on the downloaded AppImage -- following this step, the AppImage can be run like a typical executable. Alternatively, in your file manager of choice, enable execute permissions via the file properties dialog.
3. When running the AppImage for the first time, it will prompt to create a launcher shortcut.
#### Flatpak
If you were previously using the Flatpak package, to migrate your data from the Flatpak to the AppImage, you can run the following command:
```bash
mv ~/.var/app/org.duckstation.DuckStation/config/duckstation ~/.local/share
```
- Go to https://github.com/stenzek/duckstation/releases/tag/latest, and download `duckstation-x64.flatpak`.
- Run `flatpak install ./duckstation-x64.flatpak`.
You will need to re-add your game directories after switching to the AppImage.
or, if you have FlatHub set up:
- Run `flatpak install org.duckstation.DuckStation`.
Use `flatpak run org.duckstation.DuckStation` to start, or select `DuckStation` in the launcher of your desktop environment. Follow the Setup Wizard to get started.
### macOS
Universal MacOS builds are provided for both x64 and ARM64 (Apple Silicon).
Universal macOS builds are provided for both x86_64 (Intel) and ARM64 (Apple Silicon).
MacOS Big Sir (11.0) is required, as this is also the minimum requirement for Qt.
macOS Ventura (13.3) is required, as this is also the minimum requirement for Qt.
To download:
- Go to https://github.com/stenzek/duckstation/releases/tag/latest, and download `duckstation-mac-release.zip`.
- Extract the zip by double-clicking it.
- Open DuckStation.app, optionally moving it to your desired location first.
- Depending on GateKeeper configuration, you may need to right click -> Open the first time you run it, as code signing certificates are out of the question for a project which brings in zero revenue.
1. Download https://github.com/stenzek/duckstation/releases/download/latest/duckstation-mac-release.zip.
2. Extract the zip by double-clicking it.
3. Open `DuckStation.app`, optionally moving it to your desired location first.
If you receive a message about the app being from an unidentified developer:
1. Open System Settings -> Privacy & Security, or enter "Gatekeeper" in the search bar.
2. Under the "Security" section, there should be a message about DuckStation being blocked. Click "Open Anyway".
Unfortunately this is required as Apple requires code signing for apps to be run without warnings, and I do not have a code signing certificate since a yearly cost is out of the question for a project which brings in zero revenue.
### Android
You will need a device with armv7 (32-bit ARM), AArch64 (64-bit ARM), or x86_64 (64-bit x86). 64-bit is preferred, the requirements are higher for 32-bit, you'll probably want at least a 1.5GHz CPU.
Download from Google Play: https://play.google.com/store/apps/details?id=com.github.stenzek.duckstation
APK and Beta Downloads: https://www.duckstation.org/android/
**No support is provided for the Android app**, it is free and your expectations should be in line with that. Please **do not** email me about issues about it, or ask for help, you will be ignored.
To use:
@@ -142,7 +170,7 @@ For example, if your disc image was named `Spyro3.cue`, you would place the SBI
CHD images with built-in subchannel information are also supported.
If you are playing directly from a disc and your CD/DVD drive does not support subchannel reading, or has a skew with the returned SubQ, you can place the SBI file in the `subchannel` directory under the user directory, with the serial or title of the game.
If you are playing directly from a disc and your CD/DVD drive does not support subchannel reading, or has a skew with the returned SubQ, you can place the SBI file in the `subchannels` directory under the user directory, with the serial or title of the game.
### Cheats and patch database
@@ -154,8 +182,7 @@ Each release includes the latest version of the database, however you are free t
### Windows
Requirements:
- Visual Studio 2022
- Visual Studio 2026 or newer with the "Desktop development with C++" workload installed.
1. Clone the respository: `git clone https://github.com/stenzek/duckstation.git`.
2. Download the dependencies pack from https://github.com/stenzek/duckstation-ext-qt-minimal/releases/download/latest/deps-x64.7z, and extract it to `dep\msvc`.
@@ -170,17 +197,12 @@ Requirements:
Ubuntu/Debian package names:
```
autoconf automake build-essential clang cmake curl extra-cmake-modules git libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdecor-0-dev libegl-dev libevdev-dev libfontconfig-dev libfreetype-dev libgtk-3-dev libgudev-1.0-dev libharfbuzz-dev libinput-dev libopengl-dev libpipewire-0.3-dev libpulse-dev libssl-dev libudev-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-cursor-dev libxcb-damage0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xinput-dev libxcb-xkb-dev libxext-dev libxkbcommon-x11-dev libxrandr-dev libtool lld llvm nasm ninja-build pkg-config zlib1g-dev
autoconf automake build-essential clang cmake curl extra-cmake-modules git libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdecor-0-dev libegl-dev libevdev-dev libfontconfig-dev libfreetype-dev libgtk-3-dev libgudev-1.0-dev libharfbuzz-dev libinput-dev libopengl-dev libpipewire-0.3-dev libpulse-dev libssl-dev libudev-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-cursor-dev libxcb-damage0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xinput-dev libxcb-xkb-dev libxext-dev libxkbcommon-x11-dev libxrandr-dev libxss-dev libtool lld llvm nasm ninja-build pkg-config zlib1g-dev
```
Fedora package names:
```
alsa-lib-devel autoconf automake brotli-devel clang cmake dbus-devel egl-wayland-devel extra-cmake-modules fontconfig-devel gcc-c++ gtk3-devel libavcodec-free-devel libavformat-free-devel libavutil-free-devel libcurl-devel libdecor-devel libevdev-devel libICE-devel libinput-devel libSM-devel libswresample-free-devel libswscale-free-devel libX11-devel libXau-devel libxcb-devel libXcomposite-devel libXcursor-devel libXext-devel libXfixes-devel libXft-devel libXi-devel libxkbcommon-devel libxkbcommon-x11-devel libXpresent-devel libXrandr-devel libXrender-devel libtool lld llvm make mesa-libEGL-devel mesa-libGL-devel nasm ninja-build openssl-devel patch pcre2-devel perl-Digest-SHA pipewire-devel pulseaudio-libs-devel systemd-devel wayland-devel xcb-util-cursor-devel xcb-util-devel xcb-util-errors-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel xcb-util-xrm-devel zlib-devel
```
Arch package names:
```
base-devel clang cmake curl dbus extra-cmake-modules freetype git libjpeg-turbo libpng libwebp libx11 libxrandr lld llvm ninja qt6-base qt6-imageformats qt6-svg qt6-tools wayland zstd
alsa-lib-devel autoconf automake brotli-devel clang cmake dbus-devel egl-wayland-devel extra-cmake-modules fontconfig-devel gcc-c++ gtk3-devel libavcodec-free-devel libavformat-free-devel libavutil-free-devel libcurl-devel libdecor-devel libevdev-devel libICE-devel libinput-devel libSM-devel libswresample-free-devel libswscale-free-devel libX11-devel libXau-devel libxcb-devel libXcomposite-devel libXcursor-devel libXext-devel libXfixes-devel libXft-devel libXi-devel libxkbcommon-devel libxkbcommon-x11-devel libXpresent-devel libXrandr-devel libXrender-devel libXScrnSaver-devel libtool lld llvm make mesa-libEGL-devel mesa-libGL-devel nasm ninja-build openssl-devel patch pcre2-devel perl-Digest-SHA pipewire-devel pulseaudio-libs-devel systemd-devel wayland-devel xcb-util-cursor-devel xcb-util-devel xcb-util-errors-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel xcb-util-xrm-devel zlib-devel
```
#### Building
@@ -197,7 +219,6 @@ Requirements:
- CMake
- Xcode
1. Clone the repository: `git clone https://github.com/stenzek/duckstation.git`.
2. Build the dependencies. This will take a while. `scripts/deps/build-dependencies-mac.sh deps`.
2. Run CMake to configure the build system: `cmake -Bbuild-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_PREFIX_PATH="$PWD/deps"`.
@@ -210,20 +231,22 @@ An optional [SDL game controller database file](#sdl-game-controller-database) c
This is located in the following places depending on the platform you're using:
- Windows: My Documents\DuckStation
- Windows: `AppData\Local\DuckStation` (old installs will use `Documents\DuckStation`).
- Linux: `$XDG_DATA_HOME/duckstation`, or `~/.local/share/duckstation`.
- macOS: `~/Library/Application Support/DuckStation`.
So, if you were using Linux, you would place your BIOS images in `~/.local/share/duckstation/bios`. This directory will be created upon running DuckStation
for the first time.
So, if you were using Linux, you would place your BIOS images in `~/.local/share/duckstation/bios`. This directory will be created upon running DuckStation for the first time.
If you wish to use a "portable" build, where the user directory is the same as where the executable is located, create an empty file named `portable.txt`
in the same directory as the DuckStation executable.
If you wish to use a "portable" build, where the user directory is the same as where the executable is located, create an empty file named `portable.txt` in the same directory as the DuckStation executable.
A shortcut to open the user directory is available by selecting `Open Data Directory` from the `Tools` menu.
DuckStation allows you to override certain resources by placing files in the `resources` subdirectory of the user directory. This includes images and sound effects (e.g. menu navigation/achievement unlock). Please refer to https://github.com/stenzek/duckstation/wiki/Resource-Overrides for more information.
## Bindings for Qt frontend
Your keyboard or game controller can be used to simulate a variety of PlayStation controllers. Controller input is supported through DInput, XInput, and SDL backends and can be changed through `Settings -> Controllers`.
To bind your input device, go to `Settings -> Controllers`, and select the virtual controller you want to map. Automatic mapping handles the majority of ocntrollers. However, if you need to manually bind a controller, click the box below the button/axis name, and press the key or button on your input device that you wish to bind to.
To bind your input device, go to `Settings -> Controllers`, and select the virtual controller you want to map. Automatic mapping handles the majority of controllers. However, if you need to manually bind a controller, click the box below the button/axis name, and press the key or button on your input device that you wish to bind to.
## SDL Game Controller Database
DuckStation releases ship with a database of game controller mappings for the SDL controller backend, courtesy of https://github.com/mdqinc/SDL_GameControllerDB. The included `gamecontrollerdb.txt` file can be found in the `resources` subdirectory of the DuckStation program directory.

View File

@@ -1,6 +1,7 @@
Tradução:
# DuckStation - Emulador de PlayStation 1, também conhecido como PSX
[Últimas Notícias](#latest-news) | [Recursos](#features) | [Download e Execução](#downloading-and-running) | [Compilação](#building) | [Avisos Legais](#disclaimers)
**Últimas Versões para Windows 10/11, Linux (AppImage/Flatpak) e macOS:** https://github.com/stenzek/duckstation/releases/tag/latest
@@ -93,19 +94,19 @@ ou, se você tiver o FlatHub configurado:
- Execute `flatpak install org.duckstation.DuckStation`.
Use `flatpak run org.duckstation.DuckStation` para iniciar, ou selecione `DuckStation` no lançador do seu ambiente de desktop. Siga o Assistente de Configuração para começar.
### macOS
São fornecidas compilações universais do MacOS para x64 e ARM64 (Apple Silicon).
São fornecidas compilações universais do macOS para x86_64 (Intel) e ARM64 (Apple Silicon).
MacOS Big Sir (11.0) é necessário, pois também é o requisito mínimo para o Qt.
macOS Ventura (13.3) é necessário, pois também é o requisito mínimo para o Qt.
Para baixar:
- Acesse https://github.com/stenzek/duckstation/releases/tag/latest e baixe `duckstation-mac-release.zip`.
- Extraia o arquivo ZIP dando um duplo clique nele.
- Abra o DuckStation.app, opcionalmente movendo-o para a localização desejada antes.
- Abra o `DuckStation.app`, opcionalmente movendo-o para a localização desejada antes.
- Dependendo da configuração do GateKeeper, você pode precisar clicar com o botão direito -> Abrir na primeira vez que executá-lo, já que certificados de assinatura de código estão fora de questão para um projeto que não gera receita alguma.
### Android
Você precisará de um dispositivo com armv7 (32 bits ARM), AArch64 (64 bits ARM) ou x86_64 (64 bits x86). 64 bits são preferíveis, os requisitos são mais altos para 32 bits, você provavelmente vai querer pelo menos um CPU de 1,5 GHz.

File diff suppressed because it is too large Load Diff

View File

@@ -80434,6 +80434,13 @@ LSP-180210:
- tracks:
- size: 142627632
md5: "92389d0f95fd92337a3a53831a5dbfd7"
LSP-90535200:
name: "P.K.'s Place 2 - Hoopo at Sea! (USA) (Rev 1)"
trackData:
- version: Rev 1
tracks:
- size: 123830448
md5: "1b8a72c9b778392ab55b5cb91afd9ce3"
LSP-180310:
name: "P.K.'s Place 3 - Carlos at the Races! (USA)"
trackData:

3291
data/resources/discsets.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2ZM12 20C16.42 20 20 16.42 20 12C20 7.58 16.42 4 12 4C7.58 4 4 7.58 4 12C4 16.42 7.58 20 12 20ZM12 11H16V13H12V16L8 12L12 8V11Z"></path></svg>

After

Width:  |  Height:  |  Size: 316 B

View File

@@ -0,0 +1,9 @@
void main()
{
// Radial gradient at (0.6, 0.4), moving horizontally slowly
float r1 = length(v_tex0 - vec2(0.6, 0.4));
float r2 = length(v_tex0 - vec2(0.61, 0.41));
float r = mix(r1, r2, sin(u_time / 5.0));
vec3 bg_color = vec3(0.1, 0.1, 0.6) * (1.0f - r);
o_col0 = vec4(bg_color, 1.0);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View File

@@ -0,0 +1,10 @@
void main()
{
vec2 uv = v_tex0 * 2.0 - 1.0;
uv.x *= u_display_size.x / u_display_size.y;
vec2 center = vec2(cos(u_time * 0.2) * 1.5, (sin(u_time * 0.2) * 0.2) * 0.5 + 1.2);
float dist = length(uv - center);
float gradient = smoothstep(0.0, 1.0, dist);
o_col0 = vec4(mix(vec3(0.5, 0.5, 0.9), vec3(0.05, 0.05, 0.2), gradient), 1.0);
}

View File

@@ -0,0 +1,30 @@
const float PI = 3.14159265359;
const float SCALE = 150.0;
const float LENGTH = 7.5;
// https://www.shadertoy.com/view/Xt23Ry
float rand(float co) {
return fract(sin(co * 91.3458) * 47453.5453);
}
vec3 background(vec2 pos) {
// Radial gradient at (0.6, 0.4).
float r = length(pos - vec2(0.6, 0.4));
return vec3(r * 0.1);
}
// Inspired by https://www.shadertoy.com/view/Wtl3D7
vec3 trails(vec2 pos, vec3 bg_color, vec3 fg_color) {
float cdist = length(pos) * SCALE;
float rv = rand(ceil(cdist));
float rotation = u_time * rv * 0.005;
float nangle = atan(pos.y, pos.x) / PI;
float intensity = smoothstep(rv, rv - 1.5, fract(nangle + rotation + rv * 0.1) * LENGTH) * step(0.1, cdist / SCALE);
return mix(bg_color, fg_color * rv, intensity);
}
void main() {
vec3 bg_color = background(v_tex0);
vec3 fg_color = vec3(0.7, 0.7, 1.5);
o_col0 = vec4(trails(v_tex0, bg_color, fg_color), 1.0);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M21 3C21.5523 3 22 3.44772 22 4V11H20V5H4V19H10V21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM21 13C21.5523 13 22 13.4477 22 14V20C22 20.5523 21.5523 21 21 21H13C12.4477 21 12 20.5523 12 20V14C12 13.4477 12.4477 13 13 13H21ZM11.5 7L9.45711 9.04311L11.7071 11.2929L10.2929 12.7071L8.04311 10.4571L6 12.5V7H11.5Z"></path></svg>

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="exit.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="2.640625"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-width="2856"
inkscape:window-height="1651"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
fill="#ffffff"
d="m 363.3838,123.77433 108.17663,108.17663 c 6.3426,6.3426 9.95436,15.06368 9.95436,24.04904 0,8.98535 -3.61176,17.70643 -9.95436,24.04904 L 363.3838,388.22566 c -5.63787,5.63787 -13.21376,8.72108 -21.14202,8.72108 -16.47315,0 -29.86309,-13.38994 -29.86309,-29.86309 V 312.37869 H 199.6213 c -15.59223,0 -28.18935,-12.59711 -28.18935,-28.18935 v -56.37869 c 0,-15.59223 12.59712,-28.18935 28.18935,-28.18935 h 112.75739 v -54.70496 c 0,-16.47315 13.38994,-29.86309 29.86309,-29.86309 7.92826,0 15.50415,3.1713 21.14202,8.72108 z m -191.95185,-8.72108 h -56.3787 c -15.59222,0 -28.189349,12.59712 -28.189349,28.18935 v 225.51479 c 0,15.59223 12.597119,28.18935 28.189349,28.18935 h 56.3787 c 15.59223,0 28.18935,12.59712 28.18935,28.18935 0,15.59223 -12.59712,28.18935 -28.18935,28.18935 h -56.3787 c -46.688603,0 -84.56804,-37.87944 -84.56804,-84.56805 V 143.2426 c 0,-46.688607 37.879437,-84.568041 84.56804,-84.568041 h 56.3787 c 15.59223,0 28.18935,12.597115 28.18935,28.189347 0,15.592224 -12.59712,28.189344 -28.18935,28.189344 z"
id="path1"
style="stroke-width:0.880917" />
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="game-list.svg"
width="640"
height="640"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#000001"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="0.93429246"
inkscape:cx="436.69409"
inkscape:cy="330.73156"
inkscape:window-width="2844"
inkscape:window-height="1651"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
fill="#ffffff"
d="m 264.14016,286.21023 c -46.25894,0 -83.78977,37.53084 -83.78977,83.78977 0,46.25893 37.53083,83.78978 83.78977,83.78978 h 111.71968 c 46.25894,0 83.78977,-37.53085 83.78977,-83.78978 0,-46.25894 -37.53083,-83.78977 -83.78977,-83.78977 z m 132.66713,45.38613 a 17.456203,17.456203 0 1 1 0,34.91239 17.456203,17.456203 0 1 1 0,-34.91239 z m -45.38612,59.35108 a 17.456203,17.456203 0 1 1 34.91239,0 17.456203,17.456203 0 1 1 -34.91239,0 z m -97.75473,-45.38612 c 0,-5.80419 4.66954,-10.47373 10.47372,-10.47373 5.80418,0 10.47371,4.66954 10.47371,10.47373 v 13.96496 h 13.96497 c 5.80417,0 10.47373,4.66953 10.47373,10.47372 0,5.80419 -4.66954,10.47372 -10.47373,10.47372 h -13.96497 v 13.96496 c 0,5.80419 -4.66953,10.47373 -10.47371,10.47373 -5.80419,0 -10.47372,-4.66954 -10.47372,-10.47373 v -13.96496 h -13.96496 c -5.8042,0 -10.47373,-4.66953 -10.47373,-10.47372 0,-5.8042 4.66953,-10.47373 10.47373,-10.47373 h 13.96496 z"
id="path1"
style="stroke-width:0.436405" />
<path
fill="#ffffff"
d="m 89.226718,138.67812 c -9.066093,0 -16.483806,7.41772 -16.483806,16.48381 v 329.67613 c 0,9.06609 7.417713,16.4838 16.483806,16.4838 H 550.77329 c 9.06608,0 16.4838,-7.41771 16.4838,-16.4838 V 155.16193 c 0,-9.06609 -7.41772,-16.48381 -16.4838,-16.48381 z m -65.935226,16.48381 c 0,-36.36739 29.567828,-65.935223 65.935226,-65.935223 H 550.77329 c 36.36739,0 65.93522,29.567833 65.93522,65.935223 v 329.67613 c 0,36.36739 -29.56783,65.93523 -65.93522,65.93523 H 89.226718 c -36.367398,0 -65.935226,-29.56784 -65.935226,-65.93523 z m 98.902838,65.93523 c 0,-18.20753 14.76011,-32.96759 32.96761,-32.96759 18.20751,0 32.96761,14.76006 32.96761,32.96759 0,18.20752 -14.7601,32.96759 -32.96761,32.96759 -18.2075,0 -32.96761,-14.76007 -32.96761,-32.96759 z m 107.14475,0 c 0,-13.70217 11.02352,-24.72572 24.72569,-24.72572 h 230.77329 c 13.70216,0 24.72571,11.02355 24.72571,24.72572 0,13.70217 -11.02355,24.72572 -24.72571,24.72572 H 254.06477 c -13.70217,0 -24.72569,-11.02355 -24.72569,-24.72572 z"
id="path1-5"
style="stroke-width:1.03024"
sodipodi:nodetypes="ssssssssssssssssssssssssssssss" />
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ffffff" d="M2.13127 13.6308C1.9492 12.5349 1.95521 11.434 2.13216 10.3695C3.23337 10.3963 4.22374 9.86798 4.60865 8.93871C4.99357 8.00944 4.66685 6.93557 3.86926 6.17581C4.49685 5.29798 5.27105 4.51528 6.17471 3.86911C6.9345 4.66716 8.0087 4.99416 8.93822 4.60914C9.86774 4.22412 10.3961 3.23332 10.369 2.13176C11.4649 1.94969 12.5658 1.9557 13.6303 2.13265C13.6036 3.23385 14.1319 4.22422 15.0612 4.60914C15.9904 4.99406 17.0643 4.66733 17.8241 3.86975C18.7019 4.49734 19.4846 5.27153 20.1308 6.1752C19.3327 6.93499 19.0057 8.00919 19.3907 8.93871C19.7757 9.86823 20.7665 10.3966 21.8681 10.3695C22.0502 11.4654 22.0442 12.5663 21.8672 13.6308C20.766 13.6041 19.7756 14.1324 19.3907 15.0616C19.0058 15.9909 19.3325 17.0648 20.1301 17.8245C19.5025 18.7024 18.7283 19.4851 17.8247 20.1312C17.0649 19.3332 15.9907 19.0062 15.0612 19.3912C14.1316 19.7762 13.6033 20.767 13.6303 21.8686C12.5344 22.0507 11.4335 22.0447 10.3691 21.8677C10.3958 20.7665 9.86749 19.7761 8.93822 19.3912C8.00895 19.0063 6.93508 19.333 6.17532 20.1306C5.29749 19.503 4.51479 18.7288 3.86862 17.8252C4.66667 17.0654 4.99367 15.9912 4.60865 15.0616C4.22363 14.1321 3.23284 13.6038 2.13127 13.6308ZM11.9997 15.0002C13.6565 15.0002 14.9997 13.657 14.9997 12.0002C14.9997 10.3433 13.6565 9.00018 11.9997 9.00018C10.3428 9.00018 8.99969 10.3433 8.99969 12.0002C8.99969 13.657 10.3428 15.0002 11.9997 15.0002Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="start-bios.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="2.640625"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-width="2852"
inkscape:window-height="1651"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
fill="#ffffff"
d="m 186.11835,53.343194 c 0,-11.617826 -9.34668,-20.964498 -20.9645,-20.964498 -11.61782,0 -20.9645,9.346672 -20.9645,20.964498 v 34.940832 c -30.83528,0 -55.905324,25.070044 -55.905324,55.905324 H 53.343194 c -11.617826,0 -20.964498,9.34668 -20.964498,20.9645 0,11.61782 9.346672,20.9645 20.964498,20.9645 H 88.284026 V 235.0355 H 53.343194 c -11.617826,0 -20.964498,9.34668 -20.964498,20.96449 0,11.61783 9.346672,20.96451 20.964498,20.96451 h 34.940832 v 48.91716 H 53.343194 c -11.617826,0 -20.964498,9.34666 -20.964498,20.96449 0,11.61783 9.346672,20.9645 20.964498,20.9645 h 34.940832 c 0,30.83528 25.070044,55.90533 55.905324,55.90533 v 34.94082 c 0,11.61783 9.34668,20.9645 20.9645,20.9645 11.61782,0 20.9645,-9.34667 20.9645,-20.9645 v -34.94082 h 48.91715 v 34.94082 c 0,11.61783 9.34668,20.9645 20.96449,20.9645 11.61783,0 20.96451,-9.34667 20.96451,-20.9645 v -34.94082 h 48.91716 v 34.94082 c 0,11.61783 9.34666,20.9645 20.96449,20.9645 11.61783,0 20.9645,-9.34667 20.9645,-20.9645 v -34.94082 c 30.83528,0 55.90533,-25.07005 55.90533,-55.90533 h 34.94082 c 11.61783,0 20.9645,-9.34667 20.9645,-20.9645 0,-11.61783 -9.34667,-20.96449 -20.9645,-20.96449 H 423.71598 V 276.9645 h 34.94082 c 11.61783,0 20.9645,-9.34668 20.9645,-20.96451 0,-11.61781 -9.34667,-20.96449 -20.9645,-20.96449 h -34.94082 v -48.91715 h 34.94082 c 11.61783,0 20.9645,-9.34668 20.9645,-20.9645 0,-11.61782 -9.34667,-20.9645 -20.9645,-20.9645 h -34.94082 c 0,-30.83528 -25.07005,-55.905324 -55.90533,-55.905324 V 53.343194 c 0,-11.617826 -9.34667,-20.964498 -20.9645,-20.964498 -11.61783,0 -20.96449,9.346672 -20.96449,20.964498 V 88.284026 H 276.9645 V 53.343194 c 0,-11.617826 -9.34668,-20.964498 -20.96451,-20.964498 -11.61781,0 -20.96449,9.346672 -20.96449,20.964498 v 34.940832 h -48.91715 z m -13.97634,90.846156 h 167.71598 c 15.46131,0 27.95266,12.49134 27.95266,27.95266 v 167.71598 c 0,15.46131 -12.49135,27.95266 -27.95266,27.95266 H 172.14201 c -15.46132,0 -27.95266,-12.49135 -27.95266,-27.95266 V 172.14201 c 0,-15.46132 12.49134,-27.95266 27.95266,-27.95266 z m 167.71598,27.95266 H 172.14201 v 167.71598 h 167.71598 z"
id="path1"
style="stroke-width:0.87352" />
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="start-disc.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.8685849"
inkscape:cx="269.72282"
inkscape:cy="294.60797"
inkscape:window-width="2856"
inkscape:window-height="1652"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
fill="#ffffff"
d="m 49.005172,256 a 206.99483,206.99483 0 1 1 413.989658,0 206.99483,206.99483 0 1 1 -413.989658,0 z M 256,281.87436 a 25.874355,25.874355 0 1 1 0,-51.74871 25.874355,25.874355 0 1 1 0,51.74871 z M 178.37694,256 a 77.62306,77.62306 0 1 0 155.24612,0 77.62306,77.62306 0 1 0 -155.24612,0 z m -51.7487,-12.93717 c 0,-28.30008 14.15003,-57.48958 36.54752,-79.88707 22.39749,-22.39749 51.58699,-36.54752 79.88707,-36.54752 7.11544,0 12.93717,-5.82173 12.93717,-12.93718 0,-7.11545 -5.82173,-12.93718 -12.93717,-12.93718 -36.70924,0 -72.12476,18.03119 -98.24169,44.06726 -26.11692,26.03607 -44.06726,61.53245 -44.06726,98.24169 0,7.11544 5.82173,12.93717 12.93718,12.93717 7.11545,0 12.93718,-5.82173 12.93718,-12.93717 z"
id="path1"
style="stroke-width:0.808574" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 576 576"
version="1.1"
id="svg1"
sodipodi:docname="start-file.svg"
width="576"
height="576"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="true"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="2.640625"
inkscape:cx="287.81065"
inkscape:cy="225.70414"
inkscape:window-width="2852"
inkscape:window-height="1651"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
<path
fill="#ffffff"
d="m 375.58614,492.32782 h 43.78453 c 10.39883,0 19.97669,-5.47306 25.17611,-14.50363 L 546.71069,302.68606 c 5.29063,-9.03055 5.29063,-20.15913 0.0912,-29.2809 -5.19941,-9.12179 -14.77728,-14.59484 -25.26731,-14.59484 H 156.66347 c -10.39883,0 -19.9767,5.47306 -25.17611,14.50363 L 69.0944,380.22117 V 142.05155 c 0,-8.02715 6.567679,-14.59484 14.594844,-14.59484 H 190.87013 c 3.83116,0 7.57108,1.55071 10.30762,4.28724 l 24.17271,24.17271 c 19.15573,19.15573 45.15279,29.91943 72.24447,29.91943 h 107.1809 c 8.02716,0 14.59484,6.56767 14.59484,14.59484 v 29.1897 h 43.78454 v -29.1897 c 0,-32.19988 -26.17951,-58.37938 -58.37938,-58.37938 h -107.1809 c -15.50702,0 -30.37551,-6.11158 -41.32164,-17.05772 L 232.10058,100.72991 C 221.15444,89.783772 206.28594,83.672181 190.77892,83.672181 H 83.689244 c -32.199876,0 -58.379378,26.179509 -58.379378,58.379369 v 291.89689 c 0,32.19988 26.179502,58.37938 58.379378,58.37938 h 21.618616 z"
id="path1"
style="stroke-width:0.912178" />
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,10 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 113.48 122.88">
<!-- https://uxwing.com/wp-content/themes/uxwing/download/sport-and-awards/trophy-icon.png -->
<title>trophy</title>
<path style="fill:#808080;" d="M3.21,18.74H19.86q0-4,.06-8.26V0H93.05V10.49c0,2.92,0,5.66,0,8.26h17.24a3.08,3.08,0,0,1,3.07,2.93,77.67,77.67,0,0,1-.4,13.9A34,34,0,0,1,109.11,48a21.77,21.77,0,0,1-8.8,8.6A31.91,31.91,0,0,1,86.41,60C83.14,65.43,78.78,68,73.68,72.67c-6.17,4.71-10.81,8.26-7.2,19.13h5.39a7.84,7.84,0,0,1,7.82,7.82v3.15h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v5.23a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77v-5.23A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26h.77V99.62a7.75,7.75,0,0,1,2.3-5.51v0a7.81,7.81,0,0,1,5.51-2.29h6.06c3.22-10.26-1-13.58-6.83-18.17A44.47,44.47,0,0,1,27.34,60,31.87,31.87,0,0,1,13,56.54a21.47,21.47,0,0,1-8.73-8.6A34.07,34.07,0,0,1,.51,35.58,78.1,78.1,0,0,1,.13,21.9v-.08a3.08,3.08,0,0,1,3.09-3.08ZM92.71,30a121.67,121.67,0,0,1-2,18,15.17,15.17,0,0,0,5-1.9,10.49,10.49,0,0,0,3.69-3.89,18,18,0,0,0,1.93-6,45.37,45.37,0,0,0,.5-6.25H92.71ZM20.12,30H12a49.78,49.78,0,0,0,.45,6.27,18.41,18.41,0,0,0,1.8,6,10.13,10.13,0,0,0,3.57,3.88A14.57,14.57,0,0,0,22.54,48a92,92,0,0,1-2.42-18Z"/>
<path style="fill:#A0A0A0;" d="M20.08,21.82H3.21C2.75,31.1,3.34,40,7,46.43c3.43,6.11,9.7,10.15,20.62,10.46a27.9,27.9,0,0,1-3.48-5.51c-6.56-.88-10.36-3.59-12.54-7.67S8.94,34.32,8.94,28.14a1.23,1.23,0,0,1,1.23-1.23h9.91V21.82Zm72.77,5.1h10.82a1.23,1.23,0,0,1,1.23,1.22c0,6.2-.56,11.54-2.84,15.6s-6.16,6.75-12.7,7.64a25.38,25.38,0,0,1-3.69,5.52c11-.29,17.29-4.33,20.77-10.45,3.67-6.47,4.29-15.34,3.84-24.62H92.85v5.09Z"/>
<path style="fill:#222;" d="M79.69,102.76h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v10.63a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77V110.48A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26H79.69Z"/>
<path style="fill:#C0C0C0;" d="M70.64,108H35.72a4.22,4.22,0,0,0-3,1.25h0a4.26,4.26,0,0,0-1.25,3v5.28H81.55v-5.28a4.26,4.26,0,0,0-1.26-3,4.31,4.31,0,0,0-3-1.26Z"/>
<path style="fill:#909090;" d="M50.71,93h6V75.21c-22.17-7.88-24.26-35-29.55-72.57H22.53V29.41C23,39.6,24.68,47.14,27,52.91a38.19,38.19,0,0,0,8.39,12.8,68.65,68.65,0,0,0,6.71,5.78C49.11,77,54.19,81,50.71,93Z"/>
<path style="fill:#B0B0B0;" d="M56.71,93H63c-3.88-12.71,1.68-17,9-22.55,8.05-6.14,18.5-14.12,18.5-40.35V2.64H27.16C30.58,26.92,32.66,46.81,39.67,60A39.14,39.14,0,0,0,49,71.13a29.3,29.3,0,0,0,5.47,3.17,19.1,19.1,0,0,0,2.21.74v.15l.07,0V93Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,13 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 113.48 122.88">
<!-- https://uxwing.com/wp-content/themes/uxwing/download/sport-and-awards/trophy-icon.png -->
<title>trophy</title>
<path style="fill:#f39d00;" d="M3.21,18.74H19.86q0-4,.06-8.26V0H93.05V10.49c0,2.92,0,5.66,0,8.26h17.24a3.08,3.08,0,0,1,3.07,2.93,77.67,77.67,0,0,1-.4,13.9A34,34,0,0,1,109.11,48a21.77,21.77,0,0,1-8.8,8.6A31.91,31.91,0,0,1,86.41,60C83.14,65.43,78.78,68,73.68,72.67c-6.17,4.71-10.81,8.26-7.2,19.13h5.39a7.84,7.84,0,0,1,7.82,7.82v3.15h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v5.23a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77v-5.23A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26h.77V99.62a7.75,7.75,0,0,1,2.3-5.51v0a7.81,7.81,0,0,1,5.51-2.29h6.06c3.22-10.26-1-13.58-6.83-18.17A44.47,44.47,0,0,1,27.34,60,31.87,31.87,0,0,1,13,56.54a21.47,21.47,0,0,1-8.73-8.6A34.07,34.07,0,0,1,.51,35.58,78.1,78.1,0,0,1,.13,21.9v-.08a3.08,3.08,0,0,1,3.09-3.08ZM92.71,30a121.67,121.67,0,0,1-2,18,15.17,15.17,0,0,0,5-1.9,10.49,10.49,0,0,0,3.69-3.89,18,18,0,0,0,1.93-6,45.37,45.37,0,0,0,.5-6.25H92.71ZM20.12,30H12a49.78,49.78,0,0,0,.45,6.27,18.41,18.41,0,0,0,1.8,6,10.13,10.13,0,0,0,3.57,3.88A14.57,14.57,0,0,0,22.54,48a92,92,0,0,1-2.42-18Z"/>
<path style="fill:#f9c809;" d="M20.08,21.82H3.21C2.75,31.1,3.34,40,7,46.43c3.43,6.11,9.7,10.15,20.62,10.46a27.9,27.9,0,0,1-3.48-5.51c-6.56-.88-10.36-3.59-12.54-7.67S8.94,34.32,8.94,28.14a1.23,1.23,0,0,1,1.23-1.23h9.91V21.82Zm72.77,5.1h10.82a1.23,1.23,0,0,1,1.23,1.22c0,6.2-.56,11.54-2.84,15.6s-6.16,6.75-12.7,7.64a25.38,25.38,0,0,1-3.69,5.52c11-.29,17.29-4.33,20.77-10.45,3.67-6.47,4.29-15.34,3.84-24.62H92.85v5.09Z"/>
<path style="fill:#222;" d="M79.69,102.76h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v10.63a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77V110.48A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26H79.69Z"/>
<path style="fill:#ead79e;" d="M70.64,108H35.72a4.22,4.22,0,0,0-3,1.25h0a4.26,4.26,0,0,0-1.25,3v5.28H81.55v-5.28a4.26,4.26,0,0,0-1.26-3,4.31,4.31,0,0,0-3-1.26Z"/>
<path style="fill:#f8b705;" d="M50.71,93h6V75.21c-22.17-7.88-24.26-35-29.55-72.57H22.53V29.41C23,39.6,24.68,47.14,27,52.91a38.19,38.19,0,0,0,8.39,12.8,68.65,68.65,0,0,0,6.71,5.78C49.11,77,54.19,81,50.71,93Z"/>
<path style="fill:#fac809;" d="M56.71,93H63c-3.88-12.71,1.68-17,9-22.55,8.05-6.14,18.5-14.12,18.5-40.35V2.64H27.16C30.58,26.92,32.66,46.81,39.67,60A39.14,39.14,0,0,0,49,71.13a29.3,29.3,0,0,0,5.47,3.17,19.1,19.1,0,0,0,2.21.74v.15l.07,0V93Z"/>
<path style="fill:#f39d00;" d="M58.26,20.13,61.06,27l7.39.56a1.9,1.9,0,0,1,1,3.41l-5.59,4.74,1.76,7.18a1.9,1.9,0,0,1-1.41,2.29,1.88,1.88,0,0,1-1.49-.26L56.5,41l-6.29,3.89a1.9,1.9,0,0,1-2.62-.62,1.85,1.85,0,0,1-.23-1.44l1.75-7.18-5.66-4.8a1.91,1.91,0,0,1,1.09-3.35L51.93,27l2.81-6.84a1.91,1.91,0,0,1,3.52,0Z"/>
<polygon style="fill:#fff;" points="56.5 20.86 59.75 28.78 68.31 29.43 61.76 34.98 63.79 43.3 56.5 38.79 49.21 43.3 51.24 34.98 44.69 29.43 53.24 28.78 56.5 20.86 56.5 20.86 56.5 20.86"/>
<path style="fill:#fff;" d="M76.62,47.62l-.07.1a3.79,3.79,0,0,0-5.17.83l-.1-.08a3.52,3.52,0,0,0,.62-2.75,3.57,3.57,0,0,0-1.44-2.42,26.79,26.79,0,0,0,2.82.53,3.58,3.58,0,0,0,2.42-1.45l.1.07a3.81,3.81,0,0,0,.82,5.17ZM84.27,34.8l-.07.1a3.78,3.78,0,0,0-5.17.82l-.1-.07a3.79,3.79,0,0,0-.83-5.17l.07-.1a3.8,3.8,0,0,0,5.18-.83l.09.08a3.79,3.79,0,0,0,.83,5.17Zm.06-13.56-.13.18a6.94,6.94,0,0,0-9.46,1.51l-.18-.13a6.5,6.5,0,0,0,1.14-5,6.49,6.49,0,0,0-2.65-4.43l.13-.18a6.94,6.94,0,0,0,9.46-1.51l.18.13a6.5,6.5,0,0,0-1.14,5,6.51,6.51,0,0,0,2.65,4.43Z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,10 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 113.48 122.88">
<!-- https://uxwing.com/wp-content/themes/uxwing/download/sport-and-awards/trophy-icon.png -->
<title>trophy</title>
<path style="fill:#f39d00;" d="M3.21,18.74H19.86q0-4,.06-8.26V0H93.05V10.49c0,2.92,0,5.66,0,8.26h17.24a3.08,3.08,0,0,1,3.07,2.93,77.67,77.67,0,0,1-.4,13.9A34,34,0,0,1,109.11,48a21.77,21.77,0,0,1-8.8,8.6A31.91,31.91,0,0,1,86.41,60C83.14,65.43,78.78,68,73.68,72.67c-6.17,4.71-10.81,8.26-7.2,19.13h5.39a7.84,7.84,0,0,1,7.82,7.82v3.15h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v5.23a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77v-5.23A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26h.77V99.62a7.75,7.75,0,0,1,2.3-5.51v0a7.81,7.81,0,0,1,5.51-2.29h6.06c3.22-10.26-1-13.58-6.83-18.17A44.47,44.47,0,0,1,27.34,60,31.87,31.87,0,0,1,13,56.54a21.47,21.47,0,0,1-8.73-8.6A34.07,34.07,0,0,1,.51,35.58,78.1,78.1,0,0,1,.13,21.9v-.08a3.08,3.08,0,0,1,3.09-3.08ZM92.71,30a121.67,121.67,0,0,1-2,18,15.17,15.17,0,0,0,5-1.9,10.49,10.49,0,0,0,3.69-3.89,18,18,0,0,0,1.93-6,45.37,45.37,0,0,0,.5-6.25H92.71ZM20.12,30H12a49.78,49.78,0,0,0,.45,6.27,18.41,18.41,0,0,0,1.8,6,10.13,10.13,0,0,0,3.57,3.88A14.57,14.57,0,0,0,22.54,48a92,92,0,0,1-2.42-18Z"/>
<path style="fill:#f9c809;" d="M20.08,21.82H3.21C2.75,31.1,3.34,40,7,46.43c3.43,6.11,9.7,10.15,20.62,10.46a27.9,27.9,0,0,1-3.48-5.51c-6.56-.88-10.36-3.59-12.54-7.67S8.94,34.32,8.94,28.14a1.23,1.23,0,0,1,1.23-1.23h9.91V21.82Zm72.77,5.1h10.82a1.23,1.23,0,0,1,1.23,1.22c0,6.2-.56,11.54-2.84,15.6s-6.16,6.75-12.7,7.64a25.38,25.38,0,0,1-3.69,5.52c11-.29,17.29-4.33,20.77-10.45,3.67-6.47,4.29-15.34,3.84-24.62H92.85v5.09Z"/>
<path style="fill:#222;" d="M79.69,102.76h.77A7.69,7.69,0,0,1,85.91,105h0a7.67,7.67,0,0,1,2.26,5.45v10.63a1.77,1.77,0,0,1-1.77,1.77H26.58a1.77,1.77,0,0,1-1.77-1.77V110.48A7.66,7.66,0,0,1,27.07,105h0a7.66,7.66,0,0,1,5.44-2.26H79.69Z"/>
<path style="fill:#ead79e;" d="M70.64,108H35.72a4.22,4.22,0,0,0-3,1.25h0a4.26,4.26,0,0,0-1.25,3v5.28H81.55v-5.28a4.26,4.26,0,0,0-1.26-3,4.31,4.31,0,0,0-3-1.26Z"/>
<path style="fill:#f8b705;" d="M50.71,93h6V75.21c-22.17-7.88-24.26-35-29.55-72.57H22.53V29.41C23,39.6,24.68,47.14,27,52.91a38.19,38.19,0,0,0,8.39,12.8,68.65,68.65,0,0,0,6.71,5.78C49.11,77,54.19,81,50.71,93Z"/>
<path style="fill:#fac809;" d="M56.71,93H63c-3.88-12.71,1.68-17,9-22.55,8.05-6.14,18.5-14.12,18.5-40.35V2.64H27.16C30.58,26.92,32.66,46.81,39.67,60A39.14,39.14,0,0,0,49,71.13a29.3,29.3,0,0,0,5.47,3.17,19.1,19.1,0,0,0,2.21.74v.15l.07,0V93Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,6 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 111.24">
<title>risk</title>
<path d="M2.5,85l43-74.41h0a22.59,22.59,0,0,1,8-8.35,15.72,15.72,0,0,1,16,0,22.52,22.52,0,0,1,7.93,8.38l.23.44,42.08,73.07a20.91,20.91,0,0,1,3,10.84A16.44,16.44,0,0,1,121,102.4a15.45,15.45,0,0,1-5.74,6,21,21,0,0,1-11.35,2.78v0H17.7c-.21,0-.43,0-.64,0a19,19,0,0,1-7.83-1.74,15.83,15.83,0,0,1-6.65-5.72A16.26,16.26,0,0,1,0,95.18a21.66,21.66,0,0,1,2.2-9.62c.1-.2.2-.4.31-.59Z"/>
<path style="fill:#fec901;fill-rule:evenodd;" d="M9.09,88.78l43-74.38c5.22-8.94,13.49-9.2,18.81,0l42.32,73.49c4.12,6.79,2.41,15.9-9.31,15.72H17.7C9.78,103.79,5,97.44,9.09,88.78Z"/>
<path style="fill:#010101;" d="M57.55,83.15a5.47,5.47,0,0,1,5.85-1.22,5.65,5.65,0,0,1,2,1.3A5.49,5.49,0,0,1,67,86.77a5.12,5.12,0,0,1-.08,1.4,5.22,5.22,0,0,1-.42,1.34,5.51,5.51,0,0,1-5.2,3.25,5.63,5.63,0,0,1-2.26-.53,5.51,5.51,0,0,1-2.81-2.92A6,6,0,0,1,55.9,88a5.28,5.28,0,0,1,0-1.31h0a6,6,0,0,1,.56-2,4.6,4.6,0,0,1,1.14-1.56Zm8.12-10.21c-.19,4.78-8.28,4.78-8.46,0-.82-8.19-2.92-27.63-2.85-35.32.07-2.37,2-3.78,4.55-4.31a11.65,11.65,0,0,1,2.48-.25,12.54,12.54,0,0,1,2.5.25c2.59.56,4.63,2,4.63,4.43V38l-2.84,35Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,11 @@
# Psx.jpg Credits
To the Author: SOQUEROEU.
The "psx.jpg" background was edited from the one obtained from "Soqueroeu TV Backgrounds 2.0" repository: https://github.com/soqueroeu/Soqueroeu-TV-Backgrounds_V2.0/tree/main.
The material is free to use according to the agreement below:
## AGREEMENT
This pack is free. You should not pay for anything related to this graphics pack and shader preset. You may distribute and reproduce part from this content, as long as you give credit to the authors involved. You may not profit from the sale of products that contain material in this package without the author's prior permission.

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

View File

@@ -0,0 +1,7 @@
image: "psx.webp"
displayStartX: 990
displayStartY: 260
displayEndX: 2850
displayEndY: 1655
alphaBlend: false
destinationAlphaBlend: false

View File

@@ -1,2 +0,0 @@
lbsubmit.wav: https://freesound.org/people/Eponn/sounds/636656/
unlock.wav and message.wav are from https://github.com/RetroAchievements/RAInterface

View File

@@ -0,0 +1,3 @@
lbsubmit.wav: https://pixabay.com/sound-effects/notification-sound-7062/
unlock.wav: https://pixabay.com/sound-effects/notification-pluck-on-269288/
message.wav: https://pixabay.com/sound-effects/system-notification-199277/

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
nav_activate.wav: BBRS_SFX_MenuItemScrolling by FairSonicStudio -- https://freesound.org/s/744322/ -- License: Attribution 4.0
nav_back.wav: menu_target by ZeltBolt -- https://freesound.org/s/833056/ -- License: Attribution 4.0
nav_move.wav: Click / Tick / Menu Navigation by Foxfire- -- https://freesound.org/s/702168/ -- License: Creative Commons 0
content_start.wav: sf3-sfx-menu-validate.wav by broumbroum -- https://freesound.org/s/50565/ -- License: Attribution 3.0

View File

@@ -1,9 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<pre>
DuckStation PS1 Emulator
Copyright (C) 2019-2024 Connor McLaughlin &lt;stenzek@gmail.com&gt;
<pre>DuckStation PS1 Emulator
Copyright (C) 2019-2026 Connor McLaughlin &lt;stenzek@gmail.com&gt;
This program is licensed under the terms of the Creative Commons<br>
Attribution-NonCommercial-NoDerivatives International License<br>
@@ -874,11 +873,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
</pre>
<h3>lunasvg - <a href="https://github.com/sammycage/lunasvg">https://github.com/sammycage/lunasvg</a></h3>
<h3>plutosvg - <a href="https://github.com/sammycage/plutosvg">https://github.com/sammycage/plutosvg</a></h3>
<pre>
MIT License
Copyright (c) 2020-2024 Samuel Ugochukwu <sammycageagle@gmail.com>
Copyright (c) 2020-2025 Samuel Ugochukwu <sammycageagle@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -965,8 +964,8 @@ commercial products, provided that all warranty or liability claims are
assumed by the product vendor.
Copyright (C)2009-2024 D. R. Commander. All Rights Reserved.
Copyright (C)2015 Viktor Szathmáry. All Rights Reserved.
Copyright (C)2009-2025 D. R. Commander. All Rights Reserved.
Copyright (C)2015 Viktor Szathmáry. All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -1322,7 +1321,11 @@ either in source code form or as a compiled binary, for any purpose, commercial
and by any means.
</pre>
<h3>PromptFont - </h3><a href="https://shinmera.github.io/promptfont/">https://shinmera.github.io/promptfont/</a></h3>
<h3>Roboto - <a href="https://fonts.google.com/specimen/Roboto">https://fonts.google.com/specimen/Roboto</a></h3>
<h3>Noto Sans - <a href="https://fonts.google.com/noto/specimen/Noto+Sans">https://fonts.google.com/noto/specimen/Noto+Sans</a></h3>
<h3>Google Sans Code - <a href="https://github.com/googlefonts/googlesans-code">https://github.com/googlefonts/googlesans-code</a></h3>
<h3>PromptFont - <a href="https://shinmera.github.io/promptfont/">https://shinmera.github.io/promptfont/</a></h3>
<h3>Font Awesome 7 - <a href="https://fontawesome.com/">https://fontawesome.com/</a></h3>
<pre>
This Font Software is licensed under the SIL Open Font License,
Version 1.1. This license is copied below, and is also available
@@ -2566,7 +2569,7 @@ SOFTWARE.
<h3>Texture Decompression Routines</h3>
<pre>
Copyright (C) 2009 Benjamin Dobell, Glass Echidna
Copyright (C) 2012 - 2022, Matthäus G. "Anteru" Chajdas (https://anteru.net)
Copyright (C) 2012 - 2022, Matthäus G. "Anteru" Chajdas (https://anteru.net)
Copyright (C) 2020 Richard Geldreich, Jr.
Permission is hereby granted, free of charge, to any person obtaining a copy of

View File

@@ -1,6 +1,15 @@
set(FMT_INSTALL OFF CACHE BOOL "")
set(_saved_CMAKE_MESSAGE_LOG_LEVEL ${CMAKE_MESSAGE_LOG_LEVEL})
set(CMAKE_MESSAGE_LOG_LEVEL NOTICE)
add_subdirectory(fmt EXCLUDE_FROM_ALL)
disable_compiler_warnings_for_target(fmt)
# Prevent fmt from being built with exceptions, or being thrown at call sites.
target_compile_definitions(fmt PUBLIC
"FMT_EXCEPTIONS=0"
"FMT_USE_RTTI=0"
"FMT_CPP_LIB_FILESYSTEM=0"
)
add_subdirectory(minizip EXCLUDE_FROM_ALL)
disable_compiler_warnings_for_target(minizip)
add_subdirectory(lzma EXCLUDE_FROM_ALL)
@@ -55,3 +64,4 @@ if(WIN32)
add_subdirectory(winpixeventruntime EXCLUDE_FROM_ALL)
endif()
set(CMAKE_MESSAGE_LOG_LEVEL ${_saved_CMAKE_MESSAGE_LOG_LEVEL})

View File

@@ -46,6 +46,8 @@ target_include_directories(cubeb
EXPORT=
RANDOM_PREFIX=speex
)
add_library(speex_resampler_headers INTERFACE)
target_include_directories(speex_resampler_headers INTERFACE subprojects)
# $<BUILD_INTERFACE:> required because of https://gitlab.kitware.com/cmake/cmake/-/issues/15415
target_link_libraries(cubeb PRIVATE $<BUILD_INTERFACE:speex>)
@@ -178,4 +180,4 @@ if(HAVE_SYS_SOUNDCARD_H)
endif()
endif()
endif()
endif()
endif()

View File

@@ -55,7 +55,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
@@ -111,7 +111,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -158,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
@@ -216,7 +216,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
@@ -267,7 +267,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
@@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
@@ -370,7 +370,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
@@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
@@ -456,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest

View File

@@ -1 +1 @@
7.0.2
8.0

View File

@@ -187,17 +187,6 @@ struct AVCodecParameters;
* @{
*/
#if FF_API_BUFFER_MIN_SIZE
/**
* @ingroup lavc_encoding
* minimum encoding buffer size
* Used to avoid some checks during header writing.
* @deprecated Unused: avcodec_receive_packet() does not work
* with preallocated packet buffers.
*/
#define AV_INPUT_BUFFER_MIN_SIZE 16384
#endif
/**
* @ingroup lavc_encoding
*/
@@ -234,18 +223,9 @@ typedef struct RcOverride{
* Use qpel MC.
*/
#define AV_CODEC_FLAG_QPEL (1 << 4)
#if FF_API_DROPCHANGED
/**
* Don't output frames whose parameters differ from first
* decoded frame in stream.
*
* @deprecated callers should implement this functionality in their own code
*/
#define AV_CODEC_FLAG_DROPCHANGED (1 << 5)
#endif
/**
* Request the encoder to output reconstructed frames, i.e.\ frames that would
* be produced by decoding the encoded bistream. These frames may be retrieved
* be produced by decoding the encoded bitstream. These frames may be retrieved
* by calling avcodec_receive_frame() immediately after a successful call to
* avcodec_receive_packet().
*
@@ -419,6 +399,12 @@ typedef struct RcOverride{
*/
#define AV_CODEC_EXPORT_DATA_FILM_GRAIN (1 << 3)
/**
* Decoding only.
* Do not apply picture enhancement layers, export them instead.
*/
#define AV_CODEC_EXPORT_DATA_ENHANCEMENTS (1 << 4)
/**
* The decoder will keep a reference to the frame and may reuse it later.
*/
@@ -509,16 +495,21 @@ typedef struct AVCodecContext {
int flags2;
/**
* some codecs need / can use extradata like Huffman tables.
* MJPEG: Huffman tables
* rv10: additional flags
* MPEG-4: global headers (they can be in the bitstream or here)
* The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger
* than extradata_size to avoid problems if it is read with the bitstream reader.
* The bytewise contents of extradata must not depend on the architecture or CPU endianness.
* Must be allocated with the av_malloc() family of functions.
* - encoding: Set/allocated/freed by libavcodec.
* - decoding: Set/allocated/freed by user.
* Out-of-band global headers that may be used by some codecs.
*
* - decoding: Should be set by the caller when available (typically from a
* demuxer) before opening the decoder; some decoders require this to be
* set and will fail to initialize otherwise.
*
* The array must be allocated with the av_malloc() family of functions;
* allocated size must be at least AV_INPUT_BUFFER_PADDING_SIZE bytes
* larger than extradata_size.
*
* - encoding: May be set by the encoder in avcodec_open2() (possibly
* depending on whether the AV_CODEC_FLAG_GLOBAL_HEADER flag is set).
*
* After being set, the array is owned by the codec and freed in
* avcodec_free_context().
*/
uint8_t *extradata;
int extradata_size;
@@ -559,23 +550,6 @@ typedef struct AVCodecContext {
*/
AVRational framerate;
#if FF_API_TICKS_PER_FRAME
/**
* For some codecs, the time base is closer to the field rate than the frame rate.
* Most notably, H.264 and MPEG-2 specify time_base as half of frame duration
* if no telecine is used ...
*
* Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2.
*
* @deprecated
* - decoding: Use AVCodecDescriptor.props & AV_CODEC_PROP_FIELDS
* - encoding: Set AVCodecContext.framerate instead
*
*/
attribute_deprecated
int ticks_per_frame;
#endif
/**
* Codec delay.
*
@@ -1175,6 +1149,10 @@ typedef struct AVCodecContext {
* this callback and filled with the extra buffers if there are more
* buffers than buf[] can hold. extended_buf will be freed in
* av_frame_unref().
* Decoders will generally initialize the whole buffer before it is output
* but it can in rare error conditions happen that uninitialized data is passed
* through. \important The buffers returned by get_buffer* should thus not contain sensitive
* data.
*
* If AV_CODEC_CAP_DR1 is not set then get_buffer2() must call
* avcodec_default_get_buffer2() instead of providing buffers allocated by
@@ -1538,6 +1516,7 @@ typedef struct AVCodecContext {
#define FF_DCT_MMX 3
#define FF_DCT_ALTIVEC 5
#define FF_DCT_FAAN 6
#define FF_DCT_NEON 7
/**
* IDCT algorithm, see FF_IDCT_* below.
@@ -1637,165 +1616,29 @@ typedef struct AVCodecContext {
* See the AV_PROFILE_* defines in defs.h.
*/
int profile;
#if FF_API_FF_PROFILE_LEVEL
/** @deprecated The following defines are deprecated; use AV_PROFILE_*
* in defs.h instead. */
#define FF_PROFILE_UNKNOWN -99
#define FF_PROFILE_RESERVED -100
#define FF_PROFILE_AAC_MAIN 0
#define FF_PROFILE_AAC_LOW 1
#define FF_PROFILE_AAC_SSR 2
#define FF_PROFILE_AAC_LTP 3
#define FF_PROFILE_AAC_HE 4
#define FF_PROFILE_AAC_HE_V2 28
#define FF_PROFILE_AAC_LD 22
#define FF_PROFILE_AAC_ELD 38
#define FF_PROFILE_MPEG2_AAC_LOW 128
#define FF_PROFILE_MPEG2_AAC_HE 131
#define FF_PROFILE_DNXHD 0
#define FF_PROFILE_DNXHR_LB 1
#define FF_PROFILE_DNXHR_SQ 2
#define FF_PROFILE_DNXHR_HQ 3
#define FF_PROFILE_DNXHR_HQX 4
#define FF_PROFILE_DNXHR_444 5
#define FF_PROFILE_DTS 20
#define FF_PROFILE_DTS_ES 30
#define FF_PROFILE_DTS_96_24 40
#define FF_PROFILE_DTS_HD_HRA 50
#define FF_PROFILE_DTS_HD_MA 60
#define FF_PROFILE_DTS_EXPRESS 70
#define FF_PROFILE_DTS_HD_MA_X 61
#define FF_PROFILE_DTS_HD_MA_X_IMAX 62
#define FF_PROFILE_EAC3_DDP_ATMOS 30
#define FF_PROFILE_TRUEHD_ATMOS 30
#define FF_PROFILE_MPEG2_422 0
#define FF_PROFILE_MPEG2_HIGH 1
#define FF_PROFILE_MPEG2_SS 2
#define FF_PROFILE_MPEG2_SNR_SCALABLE 3
#define FF_PROFILE_MPEG2_MAIN 4
#define FF_PROFILE_MPEG2_SIMPLE 5
#define FF_PROFILE_H264_CONSTRAINED (1<<9) // 8+1; constraint_set1_flag
#define FF_PROFILE_H264_INTRA (1<<11) // 8+3; constraint_set3_flag
#define FF_PROFILE_H264_BASELINE 66
#define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
#define FF_PROFILE_H264_MAIN 77
#define FF_PROFILE_H264_EXTENDED 88
#define FF_PROFILE_H264_HIGH 100
#define FF_PROFILE_H264_HIGH_10 110
#define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
#define FF_PROFILE_H264_MULTIVIEW_HIGH 118
#define FF_PROFILE_H264_HIGH_422 122
#define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
#define FF_PROFILE_H264_STEREO_HIGH 128
#define FF_PROFILE_H264_HIGH_444 144
#define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
#define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
#define FF_PROFILE_H264_CAVLC_444 44
#define FF_PROFILE_VC1_SIMPLE 0
#define FF_PROFILE_VC1_MAIN 1
#define FF_PROFILE_VC1_COMPLEX 2
#define FF_PROFILE_VC1_ADVANCED 3
#define FF_PROFILE_MPEG4_SIMPLE 0
#define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
#define FF_PROFILE_MPEG4_CORE 2
#define FF_PROFILE_MPEG4_MAIN 3
#define FF_PROFILE_MPEG4_N_BIT 4
#define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
#define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
#define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
#define FF_PROFILE_MPEG4_HYBRID 8
#define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
#define FF_PROFILE_MPEG4_CORE_SCALABLE 10
#define FF_PROFILE_MPEG4_ADVANCED_CODING 11
#define FF_PROFILE_MPEG4_ADVANCED_CORE 12
#define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
#define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
#define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 1
#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 2
#define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 32768
#define FF_PROFILE_JPEG2000_DCINEMA_2K 3
#define FF_PROFILE_JPEG2000_DCINEMA_4K 4
#define FF_PROFILE_VP9_0 0
#define FF_PROFILE_VP9_1 1
#define FF_PROFILE_VP9_2 2
#define FF_PROFILE_VP9_3 3
#define FF_PROFILE_HEVC_MAIN 1
#define FF_PROFILE_HEVC_MAIN_10 2
#define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
#define FF_PROFILE_HEVC_REXT 4
#define FF_PROFILE_HEVC_SCC 9
#define FF_PROFILE_VVC_MAIN_10 1
#define FF_PROFILE_VVC_MAIN_10_444 33
#define FF_PROFILE_AV1_MAIN 0
#define FF_PROFILE_AV1_HIGH 1
#define FF_PROFILE_AV1_PROFESSIONAL 2
#define FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT 0xc0
#define FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT 0xc1
#define FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT 0xc2
#define FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS 0xc3
#define FF_PROFILE_MJPEG_JPEG_LS 0xf7
#define FF_PROFILE_SBC_MSBC 1
#define FF_PROFILE_PRORES_PROXY 0
#define FF_PROFILE_PRORES_LT 1
#define FF_PROFILE_PRORES_STANDARD 2
#define FF_PROFILE_PRORES_HQ 3
#define FF_PROFILE_PRORES_4444 4
#define FF_PROFILE_PRORES_XQ 5
#define FF_PROFILE_ARIB_PROFILE_A 0
#define FF_PROFILE_ARIB_PROFILE_C 1
#define FF_PROFILE_KLVA_SYNC 0
#define FF_PROFILE_KLVA_ASYNC 1
#define FF_PROFILE_EVC_BASELINE 0
#define FF_PROFILE_EVC_MAIN 1
#endif
/**
* Encoding level descriptor.
* - encoding: Set by user, corresponds to a specific level defined by the
* codec, usually corresponding to the profile level, if not specified it
* is set to FF_LEVEL_UNKNOWN.
* is set to AV_LEVEL_UNKNOWN.
* - decoding: Set by libavcodec.
* See AV_LEVEL_* in defs.h.
*/
int level;
#if FF_API_FF_PROFILE_LEVEL
/** @deprecated The following define is deprecated; use AV_LEVEL_UNKOWN
* in defs.h instead. */
#define FF_LEVEL_UNKNOWN -99
#endif
#if FF_API_CODEC_PROPS
/**
* Properties of the stream that gets decoded
* - encoding: unused
* - decoding: set by libavcodec
*/
attribute_deprecated
unsigned properties;
#define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
#define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
#define FF_CODEC_PROPERTY_FILM_GRAIN 0x00000004
#endif
/**
* Skip loop filtering for selected frames.
@@ -1884,8 +1727,13 @@ typedef struct AVCodecContext {
* For SUBTITLE_ASS subtitle type, it should contain the whole ASS
* [Script Info] and [V4+ Styles] section, plus the [Events] line and
* the Format line following. It shouldn't include any Dialogue line.
* - encoding: Set/allocated/freed by user (before avcodec_open2())
* - decoding: Set/allocated/freed by libavcodec (by avcodec_open2())
*
* - encoding: May be set by the caller before avcodec_open2() to an array
* allocated with the av_malloc() family of functions.
* - decoding: May be set by libavcodec in avcodec_open2().
*
* After being set, the array is owned by the codec and freed in
* avcodec_free_context().
*/
int subtitle_header_size;
uint8_t *subtitle_header;
@@ -2071,7 +1919,7 @@ typedef struct AVCodecContext {
* - encoding: may be set by user before calling avcodec_open2() for
* encoder configuration. Afterwards owned and freed by the
* encoder.
* - decoding: unused
* - decoding: may be set by libavcodec in avcodec_open2().
*/
AVFrameSideData **decoded_side_data;
int nb_decoded_side_data;
@@ -2369,24 +2217,6 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
*/
int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options);
#if FF_API_AVCODEC_CLOSE
/**
* Close a given AVCodecContext and free all the data associated with it
* (but not the AVCodecContext itself).
*
* Calling this function on an AVCodecContext that hasn't been opened will free
* the codec-specific data allocated in avcodec_alloc_context3() with a non-NULL
* codec. Subsequent calls will do nothing.
*
* @deprecated Do not use this function. Use avcodec_free_context() to destroy a
* codec context (either open or closed). Opening and closing a codec context
* multiple times is not supported anymore -- use multiple codec contexts
* instead.
*/
attribute_deprecated
int avcodec_close(AVCodecContext *avctx);
#endif
/**
* Free all allocated data in the given subtitle struct.
*
@@ -2690,6 +2520,36 @@ int avcodec_get_hw_frames_parameters(AVCodecContext *avctx,
enum AVPixelFormat hw_pix_fmt,
AVBufferRef **out_frames_ref);
enum AVCodecConfig {
AV_CODEC_CONFIG_PIX_FORMAT, ///< AVPixelFormat, terminated by AV_PIX_FMT_NONE
AV_CODEC_CONFIG_FRAME_RATE, ///< AVRational, terminated by {0, 0}
AV_CODEC_CONFIG_SAMPLE_RATE, ///< int, terminated by 0
AV_CODEC_CONFIG_SAMPLE_FORMAT, ///< AVSampleFormat, terminated by AV_SAMPLE_FMT_NONE
AV_CODEC_CONFIG_CHANNEL_LAYOUT, ///< AVChannelLayout, terminated by {0}
AV_CODEC_CONFIG_COLOR_RANGE, ///< AVColorRange, terminated by AVCOL_RANGE_UNSPECIFIED
AV_CODEC_CONFIG_COLOR_SPACE, ///< AVColorSpace, terminated by AVCOL_SPC_UNSPECIFIED
};
/**
* Retrieve a list of all supported values for a given configuration type.
*
* @param avctx An optional context to use. Values such as
* `strict_std_compliance` may affect the result. If NULL,
* default values are used.
* @param codec The codec to query, or NULL to use avctx->codec.
* @param config The configuration to query.
* @param flags Currently unused; should be set to zero.
* @param out_configs On success, set to a list of configurations, terminated
* by a config-specific terminator, or NULL if all
* possible values are supported.
* @param out_num_configs On success, set to the number of elements in
*out_configs, excluding the terminator. Optional.
*/
int avcodec_get_supported_config(const AVCodecContext *avctx,
const AVCodec *codec, enum AVCodecConfig config,
unsigned flags, const void **out_configs,
int *out_num_configs);
/**
@@ -3040,7 +2900,7 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
*
* @note for encoders, this function will only do something if the encoder
* declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder
* will drain any remaining packets, and can then be re-used for a different
* will drain any remaining packets, and can then be reused for a different
* stream (as opposed to sending a null frame which will leave the encoder
* in a permanent EOF state after draining). This can be desirable if the
* cost of tearing down and replacing the encoder instance is high.
@@ -3075,8 +2935,8 @@ void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size);
void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size);
/**
* @return a positive value if s is open (i.e. avcodec_open2() was called on it
* with no corresponding avcodec_close()), 0 otherwise.
* @return a positive value if s is open (i.e. avcodec_open2() was called on it),
* 0 otherwise.
*/
int avcodec_is_open(AVCodecContext *s);

View File

@@ -1,149 +0,0 @@
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_AVFFT_H
#define AVCODEC_AVFFT_H
#include "libavutil/attributes.h"
#include "version_major.h"
#if FF_API_AVFFT
/**
* @file
* @ingroup lavc_fft
* FFT functions
*/
/**
* @defgroup lavc_fft FFT functions
* @ingroup lavc_misc
*
* @{
*/
typedef float FFTSample;
typedef struct FFTComplex {
FFTSample re, im;
} FFTComplex;
typedef struct FFTContext FFTContext;
/**
* Set up a complex FFT.
* @param nbits log2 of the length of the input array
* @param inverse if 0 perform the forward transform, if 1 perform the inverse
* @deprecated use av_tx_init from libavutil/tx.h with a type of AV_TX_FLOAT_FFT
*/
attribute_deprecated
FFTContext *av_fft_init(int nbits, int inverse);
/**
* Do the permutation needed BEFORE calling ff_fft_calc().
* @deprecated without replacement
*/
attribute_deprecated
void av_fft_permute(FFTContext *s, FFTComplex *z);
/**
* Do a complex FFT with the parameters defined in av_fft_init(). The
* input data must be permuted before. No 1.0/sqrt(n) normalization is done.
* @deprecated use the av_tx_fn value returned by av_tx_init, which also does permutation
*/
attribute_deprecated
void av_fft_calc(FFTContext *s, FFTComplex *z);
attribute_deprecated
void av_fft_end(FFTContext *s);
/**
* @deprecated use av_tx_init from libavutil/tx.h with a type of AV_TX_FLOAT_MDCT,
* with a flag of AV_TX_FULL_IMDCT for a replacement to av_imdct_calc.
*/
attribute_deprecated
FFTContext *av_mdct_init(int nbits, int inverse, double scale);
attribute_deprecated
void av_imdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
attribute_deprecated
void av_imdct_half(FFTContext *s, FFTSample *output, const FFTSample *input);
attribute_deprecated
void av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
attribute_deprecated
void av_mdct_end(FFTContext *s);
/* Real Discrete Fourier Transform */
enum RDFTransformType {
DFT_R2C,
IDFT_C2R,
IDFT_R2C,
DFT_C2R,
};
typedef struct RDFTContext RDFTContext;
/**
* Set up a real FFT.
* @param nbits log2 of the length of the input array
* @param trans the type of transform
*
* @deprecated use av_tx_init from libavutil/tx.h with a type of AV_TX_FLOAT_RDFT
*/
attribute_deprecated
RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans);
attribute_deprecated
void av_rdft_calc(RDFTContext *s, FFTSample *data);
attribute_deprecated
void av_rdft_end(RDFTContext *s);
/* Discrete Cosine Transform */
typedef struct DCTContext DCTContext;
enum DCTTransformType {
DCT_II = 0,
DCT_III,
DCT_I,
DST_I,
};
/**
* Set up DCT.
*
* @param nbits size of the input array:
* (1 << nbits) for DCT-II, DCT-III and DST-I
* (1 << nbits) + 1 for DCT-I
* @param type the type of transform
*
* @note the first element of the input of DST-I is ignored
*
* @deprecated use av_tx_init from libavutil/tx.h with an appropriate type of AV_TX_FLOAT_DCT
*/
attribute_deprecated
DCTContext *av_dct_init(int nbits, enum DCTTransformType type);
attribute_deprecated
void av_dct_calc(DCTContext *s, FFTSample *data);
attribute_deprecated
void av_dct_end (DCTContext *s);
/**
* @}
*/
#endif /* FF_API_AVFFT */
#endif /* AVCODEC_AVFFT_H */

View File

@@ -80,21 +80,6 @@
*/
#define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6)
#if FF_API_SUBFRAMES
/**
* Codec can output multiple frames per AVPacket
* Normally demuxers return one frame at a time, demuxers which do not do
* are connected to a parser to split what they return into proper frames.
* This flag is reserved to the very rare category of codecs which have a
* bitstream that cannot be split into frames without timeconsuming
* operations like full decoding. Demuxers carrying such bitstreams thus
* may return multiple frames in a packet. This has many disadvantages like
* prohibiting stream copy in many cases thus it should only be considered
* as a last resort.
*/
#define AV_CODEC_CAP_SUBFRAMES (1 << 8)
#endif
/**
* Codec is experimental and is thus avoided in favor of non experimental
* encoders
@@ -205,10 +190,19 @@ typedef struct AVCodec {
*/
int capabilities;
uint8_t max_lowres; ///< maximum value for lowres supported by the decoder
const AVRational *supported_framerates; ///< array of supported framerates, or NULL if any, array is terminated by {0,0}
const enum AVPixelFormat *pix_fmts; ///< array of supported pixel formats, or NULL if unknown, array is terminated by -1
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
const enum AVSampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
/**
* Deprecated codec capabilities.
*/
attribute_deprecated
const AVRational *supported_framerates; ///< @deprecated use avcodec_get_supported_config()
attribute_deprecated
const enum AVPixelFormat *pix_fmts; ///< @deprecated use avcodec_get_supported_config()
attribute_deprecated
const int *supported_samplerates; ///< @deprecated use avcodec_get_supported_config()
attribute_deprecated
const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
const AVClass *priv_class; ///< AVClass for the private context
const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {AV_PROFILE_UNKNOWN}
@@ -226,7 +220,9 @@ typedef struct AVCodec {
/**
* Array of supported channel layouts, terminated with a zeroed layout.
* @deprecated use avcodec_get_supported_config()
*/
attribute_deprecated
const AVChannelLayout *ch_layouts;
} AVCodec;

View File

@@ -206,7 +206,9 @@ enum AVCodecID {
AV_CODEC_ID_BMV_VIDEO,
AV_CODEC_ID_VBLE,
AV_CODEC_ID_DXTORY,
#if FF_API_V408_CODECID
AV_CODEC_ID_V410,
#endif
AV_CODEC_ID_XWD,
AV_CODEC_ID_CDXL,
AV_CODEC_ID_XBM,
@@ -254,8 +256,10 @@ enum AVCodecID {
AV_CODEC_ID_012V,
AV_CODEC_ID_AVUI,
AV_CODEC_ID_TARGA_Y216,
#if FF_API_V408_CODECID
AV_CODEC_ID_V308,
AV_CODEC_ID_V408,
#endif
AV_CODEC_ID_YUV4,
AV_CODEC_ID_AVRN,
AV_CODEC_ID_CPIA,
@@ -322,6 +326,11 @@ enum AVCodecID {
AV_CODEC_ID_RTV1,
AV_CODEC_ID_VMIX,
AV_CODEC_ID_LEAD,
AV_CODEC_ID_DNXUC,
AV_CODEC_ID_RV60,
AV_CODEC_ID_JPEGXL_ANIM,
AV_CODEC_ID_APV,
AV_CODEC_ID_PRORES_RAW,
/* various PCM "codecs" */
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs
@@ -416,6 +425,8 @@ enum AVCodecID {
AV_CODEC_ID_ADPCM_IMA_MOFLEX,
AV_CODEC_ID_ADPCM_IMA_ACORN,
AV_CODEC_ID_ADPCM_XMD,
AV_CODEC_ID_ADPCM_IMA_XBOX,
AV_CODEC_ID_ADPCM_SANYO,
/* AMR */
AV_CODEC_ID_AMR_NB = 0x12000,
@@ -543,6 +554,8 @@ enum AVCodecID {
AV_CODEC_ID_AC4,
AV_CODEC_ID_OSQ,
AV_CODEC_ID_QOA,
AV_CODEC_ID_LC3,
AV_CODEC_ID_G728,
/* subtitle codecs */
AV_CODEC_ID_FIRST_SUBTITLE = 0x17000, ///< A dummy ID pointing at the start of subtitle codecs.
@@ -572,6 +585,7 @@ enum AVCodecID {
AV_CODEC_ID_HDMV_TEXT_SUBTITLE,
AV_CODEC_ID_TTML,
AV_CODEC_ID_ARIB_CAPTION,
AV_CODEC_ID_IVTV_VBI,
/* other specific kind of codecs (generally used for attachments) */
AV_CODEC_ID_FIRST_UNKNOWN = 0x18000, ///< A dummy ID pointing at the start of various fake codecs.
@@ -588,6 +602,8 @@ enum AVCodecID {
AV_CODEC_ID_TIMED_ID3,
AV_CODEC_ID_BIN_DATA,
AV_CODEC_ID_SMPTE_2038,
AV_CODEC_ID_LCEVC,
AV_CODEC_ID_SMPTE_436M_ANC,
AV_CODEC_ID_PROBE = 0x19000, ///< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it

View File

@@ -148,7 +148,7 @@ typedef struct AVCodecParameters {
* durations. Should be set to { 0, 1 } when some frames have differing
* durations or if the value is not known.
*
* @note This field correponds to values that are stored in codec-level
* @note This field corresponds to values that are stored in codec-level
* headers and is typically overridden by container/transport-layer
* timestamps, when available. It should thus be used only as a last resort,
* when no higher-level timing information is available.

View File

@@ -0,0 +1,130 @@
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_CONTAINER_FIFO_H
#define AVUTIL_CONTAINER_FIFO_H
#include <stddef.h>
/**
* AVContainerFifo is a FIFO for "containers" - dynamically allocated reusable
* structs (e.g. AVFrame or AVPacket). AVContainerFifo uses an internal pool of
* such containers to avoid allocating and freeing them repeatedly.
*/
typedef struct AVContainerFifo AVContainerFifo;
enum AVContainerFifoFlags {
/**
* Signal to av_container_fifo_write() that it should make a new reference
* to data in src rather than consume its contents.
*
* @note you must handle this flag manually in your own fifo_transfer()
* callback
*/
AV_CONTAINER_FIFO_FLAG_REF = (1 << 0),
/**
* This and all higher bits in flags may be set to any value by the caller
* and are guaranteed to be passed through to the fifo_transfer() callback
* and not be interpreted by AVContainerFifo code.
*/
AV_CONTAINER_FIFO_FLAG_USER = (1 << 16),
};
/**
* Allocate a new AVContainerFifo for the container type defined by provided
* callbacks.
*
* @param opaque user data that will be passed to the callbacks provided to this
* function
* @param container_alloc allocate a new container instance and return a pointer
* to it, or NULL on failure
* @param container_reset reset the provided container instance to a clean state
* @param container_free free the provided container instance
* @param fifo_transfer Transfer the contents of container src to dst.
* @param flags currently unused
*
* @return newly allocated AVContainerFifo, or NULL on failure
*/
AVContainerFifo*
av_container_fifo_alloc(void *opaque,
void* (*container_alloc)(void *opaque),
void (*container_reset)(void *opaque, void *obj),
void (*container_free) (void *opaque, void *obj),
int (*fifo_transfer) (void *opaque, void *dst, void *src, unsigned flags),
unsigned flags);
/**
* Allocate an AVContainerFifo instance for AVFrames.
*
* @param flags currently unused
*/
AVContainerFifo *av_container_fifo_alloc_avframe(unsigned flags);
/**
* Free a AVContainerFifo and everything in it.
*/
void av_container_fifo_free(AVContainerFifo **cf);
/**
* Write the contents of obj to the FIFO.
*
* The fifo_transfer() callback previously provided to av_container_fifo_alloc()
* will be called with obj as src in order to perform the actual transfer.
*/
int av_container_fifo_write(AVContainerFifo *cf, void *obj, unsigned flags);
/**
* Read the next available object from the FIFO into obj.
*
* The fifo_read() callback previously provided to av_container_fifo_alloc()
* will be called with obj as dst in order to perform the actual transfer.
*/
int av_container_fifo_read(AVContainerFifo *cf, void *obj, unsigned flags);
/**
* Access objects stored in the FIFO without retrieving them. The
* fifo_transfer() callback will NOT be invoked and the FIFO state will not be
* modified.
*
* @param pobj Pointer to the object stored in the FIFO will be written here on
* success. The object remains owned by the FIFO and the caller may
* only access it as long as the FIFO is not modified.
* @param offset Position of the object to retrieve - 0 is the next item that
* would be read, 1 the one after, etc. Must be smaller than
* av_container_fifo_can_read().
*
* @retval 0 success, a pointer was written into pobj
* @retval AVERROR(EINVAL) invalid offset value
*/
int av_container_fifo_peek(AVContainerFifo *cf, void **pobj, size_t offset);
/**
* Discard the specified number of elements from the FIFO.
*
* @param nb_elems number of elements to discard, MUST NOT be larger than
* av_fifo_can_read(f)
*/
void av_container_fifo_drain(AVContainerFifo *cf, size_t nb_elems);
/**
* @return number of objects available for reading
*/
size_t av_container_fifo_can_read(const AVContainerFifo *cf);
#endif // AVCODEC_CONTAINER_FIFO_H

View File

@@ -73,6 +73,7 @@
#define AV_PROFILE_AAC_HE_V2 28
#define AV_PROFILE_AAC_LD 22
#define AV_PROFILE_AAC_ELD 38
#define AV_PROFILE_AAC_USAC 41
#define AV_PROFILE_MPEG2_AAC_LOW 128
#define AV_PROFILE_MPEG2_AAC_HE 131
@@ -159,6 +160,7 @@
#define AV_PROFILE_HEVC_MAIN_10 2
#define AV_PROFILE_HEVC_MAIN_STILL_PICTURE 3
#define AV_PROFILE_HEVC_REXT 4
#define AV_PROFILE_HEVC_MULTIVIEW_MAIN 6
#define AV_PROFILE_HEVC_SCC 9
#define AV_PROFILE_VVC_MAIN_10 1
@@ -183,6 +185,9 @@
#define AV_PROFILE_PRORES_4444 4
#define AV_PROFILE_PRORES_XQ 5
#define AV_PROFILE_PRORES_RAW 0
#define AV_PROFILE_PRORES_RAW_HQ 1
#define AV_PROFILE_ARIB_PROFILE_A 0
#define AV_PROFILE_ARIB_PROFILE_C 1
@@ -192,6 +197,14 @@
#define AV_PROFILE_EVC_BASELINE 0
#define AV_PROFILE_EVC_MAIN 1
#define AV_PROFILE_APV_422_10 33
#define AV_PROFILE_APV_422_12 44
#define AV_PROFILE_APV_444_10 55
#define AV_PROFILE_APV_444_12 66
#define AV_PROFILE_APV_4444_10 77
#define AV_PROFILE_APV_4444_12 88
#define AV_PROFILE_APV_400_10 99
#define AV_LEVEL_UNKNOWN -99
@@ -323,6 +336,20 @@ typedef struct AVProducerReferenceTime {
int flags;
} AVProducerReferenceTime;
/**
* RTCP SR (Sender Report) information
*
* The received sender report information for an RTSP
* stream, exposed as AV_PKT_DATA_RTCP_SR side data.
*/
typedef struct AVRTCPSenderReport {
uint32_t ssrc; ///< Synchronization source identifier
uint64_t ntp_timestamp; ///< NTP time when the report was sent
uint32_t rtp_timestamp; ///< RTP time when the report was sent
uint32_t sender_nb_packets; ///< Total number of packets sent
uint32_t sender_nb_bytes; ///< Total number of bytes sent (excluding headers or padding)
} AVRTCPSenderReport;
/**
* Encode extradata length to a buffer. Used by xiph codecs.
*

View File

@@ -1,6 +1,4 @@
/*
* Version macros.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
@@ -18,23 +16,31 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVFILTER_VERSION_MAJOR_H
#define AVFILTER_VERSION_MAJOR_H
#ifndef AVUTIL_HWCONTEXT_AMF_H
#define AVUTIL_HWCONTEXT_AMF_H
#include "pixfmt.h"
#include "hwcontext.h"
#include <AMF/core/Factory.h>
#include <AMF/core/Context.h>
#include <AMF/core/Trace.h>
#include <AMF/core/Debug.h>
/**
* @file
* @ingroup lavfi
* Libavfilter version macros
* This struct is allocated as AVHWDeviceContext.hwctx
*/
typedef struct AVAMFDeviceContext {
void * library;
AMFFactory *factory;
void *trace_writer;
#define LIBAVFILTER_VERSION_MAJOR 10
int64_t version; ///< version of AMF runtime
AMFContext *context;
AMF_MEMORY_TYPE memory_type;
} AVAMFDeviceContext;
/**
* FF_API_* defines may be placed below to indicate public API that will be
* dropped at a future version bump. The defines themselves are not part of
* the public API and may change, break or disappear at any time.
*/
enum AMF_SURFACE_FORMAT av_av_to_amf_format(enum AVPixelFormat fmt);
enum AVPixelFormat av_amf_to_av_format(enum AMF_SURFACE_FORMAT fmt);
#define FF_API_LINK_PUBLIC (LIBAVFILTER_VERSION_MAJOR < 11)
#endif /* AVFILTER_VERSION_MAJOR_H */
#endif /* AVUTIL_HWCONTEXT_AMF_H */

View File

@@ -1,8 +1,8 @@
/*
* Version macros.
*
* This file is part of FFmpeg.
*
* Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com>
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
@@ -18,14 +18,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef POSTPROC_VERSION_MAJOR_H
#define POSTPROC_VERSION_MAJOR_H
#ifndef AVUTIL_HWCONTEXT_OH_H
#define AVUTIL_HWCONTEXT_OH_H
/**
* @file
* Libpostproc version macros
* OpenHarmony codec device
*/
typedef struct AVOHCodecDeviceContext {
/**
* Pointer to OHNativeWindow
*/
void *native_window;
} AVOHCodecDeviceContext;
#define LIBPOSTPROC_VERSION_MAJOR 58
#endif /* POSTPROC_VERSION_MAJOR_H */
#endif /* AVUTIL_HWCONTEXT_OH_H */

View File

@@ -59,10 +59,6 @@ enum AVPacketSideDataType {
* An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows:
* @code
* u32le param_flags
* if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT)
* s32le channel_count
* if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT)
* u64le channel_layout
* if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE)
* s32le sample_rate
* if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS)
@@ -146,7 +142,7 @@ enum AVPacketSideDataType {
AV_PKT_DATA_CPB_PROPERTIES,
/**
* Recommmends skipping the specified number of samples
* Recommends skipping the specified number of samples
* @code
* u32le number of samples to skip from start of this packet
* u32le number of samples to skip from end of this packet
@@ -330,6 +326,42 @@ enum AVPacketSideDataType {
*/
AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,
/**
* The number of pixels to discard from the top/bottom/left/right border of the
* decoded frame to obtain the sub-rectangle intended for presentation.
*
* @code
* u32le crop_top
* u32le crop_bottom
* u32le crop_left
* u32le crop_right
* @endcode
*/
AV_PKT_DATA_FRAME_CROPPING,
/**
* Raw LCEVC payload data, as a uint8_t array, with NAL emulation
* bytes intact.
*/
AV_PKT_DATA_LCEVC,
/**
* This side data contains information about the reference display width(s)
* and reference viewing distance(s) as well as information about the
* corresponding reference stereo pair(s), i.e., the pair(s) of views to be
* displayed for the viewer's left and right eyes on the reference display
* at the reference viewing distance.
* The payload is the AV3DReferenceDisplaysInfo struct defined in
* libavutil/tdrdi.h.
*/
AV_PKT_DATA_3D_REFERENCE_DISPLAYS,
/**
* Contains the last received RTCP SR (Sender Report) information
* in the form of the AVRTCPSenderReport struct.
*/
AV_PKT_DATA_RTCP_SR,
/**
* The number of side data types.
* This is not part of the public API/ABI in the sense that it may
@@ -341,8 +373,6 @@ enum AVPacketSideDataType {
AV_PKT_DATA_NB
};
#define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED
/**
* This structure stores auxiliary information for decoding, presenting, or
* otherwise processing the coded stream. It is typically exported by demuxers
@@ -351,11 +381,11 @@ enum AVPacketSideDataType {
*
* Global side data is handled as follows:
* - During demuxing, it may be exported through
* @ref AVStream.codecpar.side_data "AVStream's codec parameters", which can
* @ref AVCodecParameters.coded_side_data "AVStream's codec parameters", which can
* then be passed as input to decoders through the
* @ref AVCodecContext.coded_side_data "decoder context's side data", for
* initialization.
* - For muxing, it can be fed through @ref AVStream.codecpar.side_data
* - For muxing, it can be fed through @ref AVCodecParameters.coded_side_data
* "AVStream's codec parameters", typically the output of encoders through
* the @ref AVCodecContext.coded_side_data "encoder context's side data", for
* initialization.
@@ -863,6 +893,13 @@ int av_packet_make_writable(AVPacket *pkt);
*/
void av_packet_rescale_ts(AVPacket *pkt, AVRational tb_src, AVRational tb_dst);
/**
* Allocate an AVContainerFifo instance for AVPacket.
*
* @param flags currently unused
*/
struct AVContainerFifo *av_container_fifo_alloc_avpacket(unsigned flags);
/**
* @}
*/

View File

@@ -0,0 +1,297 @@
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_REFSTRUCT_H
#define AVUTIL_REFSTRUCT_H
#include <stddef.h>
/**
* RefStruct is an API for creating reference-counted objects
* with minimal overhead. The API is designed for objects,
* not buffers like the AVBuffer API. The main differences
* to the AVBuffer API are as follows:
*
* - It uses void* instead of uint8_t* as its base type due to
* its focus on objects.
* - There are no equivalents of AVBuffer and AVBufferRef.
* E.g. there is no way to get the usable size of the object:
* The user is supposed to know what is at the other end of
* the pointer. It also avoids one level of indirection.
* - Custom allocators are not supported. This allows to simplify
* the implementation and reduce the amount of allocations.
* - It also has the advantage that the user's free callback need
* only free the resources owned by the object, but not the
* object itself.
* - Because referencing (and replacing) an object managed by the
* RefStruct API does not involve allocations, they can not fail
* and therefore need not be checked.
*
* @note Referencing and unreferencing the buffers is thread-safe and thus
* may be done from multiple threads simultaneously without any need for
* additional locking.
*/
/**
* This union is used for all opaque parameters in this API to spare the user
* to cast const away in case the opaque to use is const-qualified.
*
* The functions provided by this API with an AVRefStructOpaque come in pairs
* named foo_c and foo. The foo function accepts void* as opaque and is just
* a wrapper around the foo_c function; "_c" means "(potentially) const".
*/
typedef union {
void *nc;
const void *c;
} AVRefStructOpaque;
/**
* If this flag is set in av_refstruct_alloc_ext_c(), the object will not
* be initially zeroed.
*/
#define AV_REFSTRUCT_FLAG_NO_ZEROING (1 << 0)
/**
* Allocate a refcounted object of usable size `size` managed via
* the RefStruct API.
*
* By default (in the absence of flags to the contrary),
* the returned object is initially zeroed.
*
* @param size Desired usable size of the returned object.
* @param flags A bitwise combination of AV_REFSTRUCT_FLAG_* flags.
* @param opaque A pointer that will be passed to the free_cb callback.
* @param free_cb A callback for freeing this object's content
* when its reference count reaches zero;
* it must not free the object itself.
* @return A pointer to an object of the desired size or NULL on failure.
*/
void *av_refstruct_alloc_ext_c(size_t size, unsigned flags, AVRefStructOpaque opaque,
void (*free_cb)(AVRefStructOpaque opaque, void *obj));
/**
* A wrapper around av_refstruct_alloc_ext_c() for the common case
* of a non-const qualified opaque.
*
* @see av_refstruct_alloc_ext_c()
*/
static inline
void *av_refstruct_alloc_ext(size_t size, unsigned flags, void *opaque,
void (*free_cb)(AVRefStructOpaque opaque, void *obj))
{
return av_refstruct_alloc_ext_c(size, flags, (AVRefStructOpaque){.nc = opaque},
free_cb);
}
/**
* Equivalent to av_refstruct_alloc_ext(size, 0, NULL, NULL)
*/
static inline
void *av_refstruct_allocz(size_t size)
{
return av_refstruct_alloc_ext(size, 0, NULL, NULL);
}
/**
* Decrement the reference count of the underlying object and automatically
* free the object if there are no more references to it.
*
* `*objp == NULL` is legal and a no-op.
*
* @param objp Pointer to a pointer that is either NULL or points to an object
* managed via this API. `*objp` is set to NULL on return.
*/
void av_refstruct_unref(void *objp);
/**
* Create a new reference to an object managed via this API,
* i.e. increment the reference count of the underlying object
* and return obj.
* @return a pointer equal to obj.
*/
void *av_refstruct_ref(void *obj);
/**
* Analog of av_refstruct_ref(), but for constant objects.
* @see av_refstruct_ref()
*/
const void *av_refstruct_ref_c(const void *obj);
/**
* Ensure `*dstp` refers to the same object as src.
*
* If `*dstp` is already equal to src, do nothing. Otherwise unreference `*dstp`
* and replace it with a new reference to src in case `src != NULL` (this
* involves incrementing the reference count of src's underlying object) or
* with NULL otherwise.
*
* @param dstp Pointer to a pointer that is either NULL or points to an object
* managed via this API.
* @param src A pointer to an object managed via this API or NULL.
*/
void av_refstruct_replace(void *dstp, const void *src);
/**
* Check whether the reference count of an object managed
* via this API is 1.
*
* @param obj A pointer to an object managed via this API.
* @return 1 if the reference count of obj is 1; 0 otherwise.
*/
int av_refstruct_exclusive(const void *obj);
/**
* AVRefStructPool is an API for a thread-safe pool of objects managed
* via the RefStruct API.
*
* Frequently allocating and freeing large or complicated objects may be slow
* and wasteful. This API is meant to solve this in cases when the caller
* needs a set of interchangeable objects.
*
* At the beginning, the user must call allocate the pool via
* av_refstruct_pool_alloc() or its analogue av_refstruct_pool_alloc_ext().
* Then whenever an object is needed, call av_refstruct_pool_get() to
* get a new or reused object from the pool. This new object works in all
* aspects the same way as the ones created by av_refstruct_alloc_ext().
* However, when the last reference to this object is unreferenced, it is
* (optionally) reset and returned to the pool instead of being freed and
* will be reused for subsequent av_refstruct_pool_get() calls.
*
* When the caller is done with the pool and no longer needs to create any new
* objects, av_refstruct_pool_uninit() must be called to mark the pool as
* freeable. Then entries returned to the pool will then be freed.
* Once all the entries are freed, the pool will automatically be freed.
*
* Allocating and releasing objects with this API is thread-safe as long as
* the user-supplied callbacks (if provided) are thread-safe.
*/
/**
* The buffer pool. This structure is opaque and not meant to be accessed
* directly. It is allocated with the allocators below and freed with
* av_refstruct_pool_uninit().
*/
typedef struct AVRefStructPool AVRefStructPool;
/**
* If this flag is not set, every object in the pool will be zeroed before
* the init callback is called or before it is turned over to the user
* for the first time if no init callback has been provided.
*/
#define AV_REFSTRUCT_POOL_FLAG_NO_ZEROING AV_REFSTRUCT_FLAG_NO_ZEROING
/**
* If this flag is set and both init_cb and reset_cb callbacks are provided,
* then reset_cb will be called if init_cb fails.
* The object passed to reset_cb will be in the state left by init_cb.
*/
#define AV_REFSTRUCT_POOL_FLAG_RESET_ON_INIT_ERROR (1 << 16)
/**
* If this flag is set and both init_cb and free_entry_cb callbacks are
* provided, then free_cb will be called if init_cb fails.
*
* It will be called after reset_cb in case reset_cb and the
* AV_REFSTRUCT_POOL_FLAG_RESET_ON_INIT_ERROR flag are also set.
*
* The object passed to free_cb will be in the state left by
* the callbacks applied earlier (init_cb potentially followed by reset_cb).
*/
#define AV_REFSTRUCT_POOL_FLAG_FREE_ON_INIT_ERROR (1 << 17)
/**
* If this flag is set, the entries will be zeroed before
* being returned to the user (after the init or reset callbacks
* have been called (if provided)). Furthermore, to avoid zeroing twice
* it also makes the pool behave as if the AV_REFSTRUCT_POOL_FLAG_NO_ZEROING
* flag had been provided.
*/
#define AV_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME (1 << 18)
/**
* Equivalent to av_refstruct_pool_alloc(size, flags, NULL, NULL, NULL, NULL, NULL)
*/
AVRefStructPool *av_refstruct_pool_alloc(size_t size, unsigned flags);
/**
* Allocate an AVRefStructPool, potentially using complex callbacks.
*
* @param size size of the entries of the pool
* @param flags a bitwise combination of AV_REFSTRUCT_POOL_FLAG_* flags
* @param opaque A pointer that will be passed to the callbacks below.
* @param init A callback that will be called directly after a new entry
* has been allocated. obj has already been zeroed unless
* the AV_REFSTRUCT_POOL_FLAG_NO_ZEROING flag is in use.
* @param reset A callback that will be called after an entry has been
* returned to the pool and before it is reused.
* @param free_entry A callback that will be called when an entry is freed
* after the pool has been marked as to be uninitialized.
* @param free A callback that will be called when the pool itself is
* freed (after the last entry has been returned and freed).
*/
AVRefStructPool *av_refstruct_pool_alloc_ext_c(size_t size, unsigned flags,
AVRefStructOpaque opaque,
int (*init_cb)(AVRefStructOpaque opaque, void *obj),
void (*reset_cb)(AVRefStructOpaque opaque, void *obj),
void (*free_entry_cb)(AVRefStructOpaque opaque, void *obj),
void (*free_cb)(AVRefStructOpaque opaque));
/**
* A wrapper around av_refstruct_pool_alloc_ext_c() for the common case
* of a non-const qualified opaque.
*
* @see av_refstruct_pool_alloc_ext_c()
*/
static inline
AVRefStructPool *av_refstruct_pool_alloc_ext(size_t size, unsigned flags,
void *opaque,
int (*init_cb)(AVRefStructOpaque opaque, void *obj),
void (*reset_cb)(AVRefStructOpaque opaque, void *obj),
void (*free_entry_cb)(AVRefStructOpaque opaque, void *obj),
void (*free_cb)(AVRefStructOpaque opaque))
{
return av_refstruct_pool_alloc_ext_c(size, flags, (AVRefStructOpaque){.nc = opaque},
init_cb, reset_cb, free_entry_cb, free_cb);
}
/**
* Get an object from the pool, reusing an old one from the pool when
* available.
*
* Every call to this function must happen before av_refstruct_pool_uninit().
* Otherwise undefined behaviour may occur.
*
* @param pool the pool from which to get the object
* @return a reference to the object on success, NULL on error.
*/
void *av_refstruct_pool_get(AVRefStructPool *pool);
/**
* Mark the pool as being available for freeing. It will actually be freed
* only once all the allocated buffers associated with the pool are released.
* Thus it is safe to call this function while some of the allocated buffers
* are still in use.
*
* It is illegal to try to get a new entry after this function has been called.
*
* @param poolp pointer to a pointer to either NULL or a pool to be freed.
* `*poolp` will be set to NULL.
*/
static inline void av_refstruct_pool_uninit(AVRefStructPool **poolp)
{
av_refstruct_unref(poolp);
}
#endif /* AVUTIL_REFSTRUCT_H */

View File

@@ -0,0 +1,254 @@
/*
* MXF SMPTE-436M VBI/ANC parsing functions
* Copyright (c) 2025 Jacob Lifshay
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_SMPTE_436M_H
#define AVCODEC_SMPTE_436M_H
#include <stdint.h>
/**
* Iterator over the ANC packets in a single AV_CODEC_ID_SMPTE_436M_ANC AVPacket's data
*/
typedef struct AVSmpte436mAncIterator {
uint16_t anc_packets_left;
int size_left;
const uint8_t *data_left;
} AVSmpte436mAncIterator;
/**
* Wrapping Type from Table 7 (page 13) of:
* https://pub.smpte.org/latest/st436/s436m-2006.pdf
*/
typedef enum AVSmpte436mWrappingType
{
AV_SMPTE_436M_WRAPPING_TYPE_VANC_FRAME = 1,
AV_SMPTE_436M_WRAPPING_TYPE_VANC_FIELD_1 = 2,
AV_SMPTE_436M_WRAPPING_TYPE_VANC_FIELD_2 = 3,
AV_SMPTE_436M_WRAPPING_TYPE_VANC_PROGRESSIVE_FRAME = 4,
AV_SMPTE_436M_WRAPPING_TYPE_HANC_FRAME = 0x11,
AV_SMPTE_436M_WRAPPING_TYPE_HANC_FIELD_1 = 0x12,
AV_SMPTE_436M_WRAPPING_TYPE_HANC_FIELD_2 = 0x13,
AV_SMPTE_436M_WRAPPING_TYPE_HANC_PROGRESSIVE_FRAME = 0x14,
/** not a real wrapping type, just here to guarantee the enum is big enough */
AV_SMPTE_436M_WRAPPING_TYPE_MAX = 0xFF,
} AVSmpte436mWrappingType;
/**
* Payload Sample Coding from Table 4 (page 10) and Table 7 (page 13) of:
* https://pub.smpte.org/latest/st436/s436m-2006.pdf
*/
typedef enum AVSmpte436mPayloadSampleCoding
{
/** only used for VBI */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_1BIT_LUMA = 1,
/** only used for VBI */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_1BIT_COLOR_DIFF = 2,
/** only used for VBI */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_1BIT_LUMA_AND_COLOR_DIFF = 3,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_LUMA = 4,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_COLOR_DIFF = 5,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_LUMA_AND_COLOR_DIFF = 6,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_10BIT_LUMA = 7,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_10BIT_COLOR_DIFF = 8,
/** used for VBI and ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_10BIT_LUMA_AND_COLOR_DIFF = 9,
/** only used for ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_LUMA_WITH_PARITY_ERROR = 10,
/** only used for ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_COLOR_DIFF_WITH_PARITY_ERROR = 11,
/** only used for ANC */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_8BIT_LUMA_AND_COLOR_DIFF_WITH_PARITY_ERROR = 12,
/** not a real sample coding, just here to guarantee the enum is big enough */
AV_SMPTE_436M_PAYLOAD_SAMPLE_CODING_MAX = 0xFF,
} AVSmpte436mPayloadSampleCoding;
/** the payload capacity of AVSmpte291mAnc8bit (and of AVSmpte291mAnc10bit when that gets added) */
#define AV_SMPTE_291M_ANC_PAYLOAD_CAPACITY 0xFF
/**
* An ANC packet with an 8-bit payload.
* This can be decoded from AVSmpte436mCodedAnc::payload.
*
* Note: Some ANC packets need a 10-bit payload, if stored in this struct,
* the most-significant 2 bits of each sample are discarded.
*/
typedef struct AVSmpte291mAnc8bit {
uint8_t did;
uint8_t sdid_or_dbn;
uint8_t data_count;
uint8_t payload[AV_SMPTE_291M_ANC_PAYLOAD_CAPACITY];
uint8_t checksum;
} AVSmpte291mAnc8bit;
/** max number of samples that can be stored in the payload of AVSmpte436mCodedAnc */
#define AV_SMPTE_436M_CODED_ANC_SAMPLE_CAPACITY \
(AV_SMPTE_291M_ANC_PAYLOAD_CAPACITY + 4) /* 4 for did, sdid_or_dbn, data_count, and checksum */
/** max number of bytes that can be stored in the payload of AVSmpte436mCodedAnc */
#define AV_SMPTE_436M_CODED_ANC_PAYLOAD_CAPACITY (((AV_SMPTE_436M_CODED_ANC_SAMPLE_CAPACITY + 2) / 3) * 4)
/**
* An encoded ANC packet within a single AV_CODEC_ID_SMPTE_436M_ANC AVPacket's data.
* The repeated section of Table 7 (page 13) of:
* https://pub.smpte.org/latest/st436/s436m-2006.pdf
*/
typedef struct AVSmpte436mCodedAnc {
uint16_t line_number;
AVSmpte436mWrappingType wrapping_type;
AVSmpte436mPayloadSampleCoding payload_sample_coding;
uint16_t payload_sample_count;
uint32_t payload_array_length;
/** the payload, has size payload_array_length.
* can be decoded into AVSmpte291mAnc8bit
*/
uint8_t payload[AV_SMPTE_436M_CODED_ANC_PAYLOAD_CAPACITY];
} AVSmpte436mCodedAnc;
/**
* Validate a AVSmpte436mCodedAnc structure. Doesn't check if the payload is valid.
* @param[in] anc ANC packet to validate
* @return 0 on success, AVERROR codes otherwise.
*/
int av_smpte_436m_coded_anc_validate(const AVSmpte436mCodedAnc *anc);
/**
* Encode ANC packets into a single AV_CODEC_ID_SMPTE_436M_ANC AVPacket's data.
* @param[in] anc_packet_count number of ANC packets to encode
* @param[in] anc_packets the ANC packets to encode
* @param[in] size the size of out. ignored if out is NULL.
* @param[out] out Output bytes. Doesn't write anything if out is NULL.
* @return the number of bytes written on success, AVERROR codes otherwise.
* If out is NULL, returns the number of bytes it would have written.
*/
int av_smpte_436m_anc_encode(uint8_t *out, int size, int anc_packet_count, const AVSmpte436mCodedAnc *anc_packets);
struct AVPacket;
/**
* Append more ANC packets to a single AV_CODEC_ID_SMPTE_436M_ANC AVPacket's data.
* @param[in] anc_packet_count number of ANC packets to encode
* @param[in] anc_packets the ANC packets to encode
* @param pkt the AVPacket to append to.
* it must either be size 0 or contain valid SMPTE_436M_ANC data.
* @return 0 on success, AVERROR codes otherwise.
*/
int av_smpte_436m_anc_append(struct AVPacket *pkt, int anc_packet_count, const AVSmpte436mCodedAnc *anc_packets);
/**
* Set up iteration over the ANC packets in a single AV_CODEC_ID_SMPTE_436M_ANC AVPacket's data.
* @param[in] buf Pointer to the data from a AV_CODEC_ID_SMPTE_436M_ANC AVPacket.
* @param[in] buf_size Size of the data from a AV_CODEC_ID_SMPTE_436M_ANC AVPacket.
* @param[out] iter Pointer to the iterator.
* @return 0 on success, AVERROR codes otherwise.
*/
int av_smpte_436m_anc_iter_init(AVSmpte436mAncIterator *iter, const uint8_t *buf, int buf_size);
/**
* Get the next ANC packet from the iterator, advancing the iterator.
* @param[in,out] iter Pointer to the iterator.
* @param[out] anc The returned ANC packet.
* @return 0 on success, AVERROR_EOF when the iterator has reached the end, AVERROR codes otherwise.
*/
int av_smpte_436m_anc_iter_next(AVSmpte436mAncIterator *iter, AVSmpte436mCodedAnc *anc);
/**
* Get the minimum number of bytes needed to store a AVSmpte436mCodedAnc payload.
* @param sample_coding the payload sample coding
* @param sample_count the number of samples stored in the payload
* @return returns the minimum number of bytes needed, on error returns < 0.
* always <= SMPTE_436M_CODED_ANC_PAYLOAD_CAPACITY
*/
int av_smpte_436m_coded_anc_payload_size(AVSmpte436mPayloadSampleCoding sample_coding, uint16_t sample_count);
/**
* Decode a AVSmpte436mCodedAnc payload into AVSmpte291mAnc8bit
* @param[in] sample_coding the payload sample coding
* @param[in] sample_count the number of samples stored in the payload
* @param[in] payload the bytes storing the payload,
* the needed size can be obtained from
avpriv_smpte_436m_coded_anc_payload_size
* @param[in] log_ctx context pointer for av_log
* @param[out] out The decoded ANC packet.
* @return returns 0 on success, otherwise < 0.
*/
int av_smpte_291m_anc_8bit_decode(AVSmpte291mAnc8bit *out,
AVSmpte436mPayloadSampleCoding sample_coding,
uint16_t sample_count,
const uint8_t *payload,
void *log_ctx);
/**
* Fill in the correct checksum for a AVSmpte291mAnc8bit
* @param[in,out] anc The ANC packet.
*/
void av_smpte_291m_anc_8bit_fill_checksum(AVSmpte291mAnc8bit *anc);
/**
* Compute the sample count needed to encode a AVSmpte291mAnc8bit into a AVSmpte436mCodedAnc payload
* @param[in] anc The ANC packet.
* @param[in] sample_coding The sample coding.
* @param[in] log_ctx context pointer for av_log
* @return returns the sample count on success, otherwise < 0.
*/
int av_smpte_291m_anc_8bit_get_sample_count(const AVSmpte291mAnc8bit *anc,
AVSmpte436mPayloadSampleCoding sample_coding,
void *log_ctx);
/**
* Encode a AVSmpte291mAnc8bit into a AVSmpte436mCodedAnc
* @param[in] line_number the line number the ANC packet is on
* @param[in] wrapping_type the wrapping type
* @param[in] sample_coding the payload sample coding
* @param[in] payload the ANC packet to encode.
* @param[in] log_ctx context pointer for av_log
* @param[out] out The encoded ANC packet.
* @return returns 0 on success, otherwise < 0.
*/
int av_smpte_291m_anc_8bit_encode(AVSmpte436mCodedAnc *out,
uint16_t line_number,
AVSmpte436mWrappingType wrapping_type,
AVSmpte436mPayloadSampleCoding sample_coding,
const AVSmpte291mAnc8bit *payload,
void *log_ctx);
/** AVSmpte291mAnc8bit::did when carrying CTA-708 data (for AV_CODEC_ID_EIA_608) */
#define AV_SMPTE_291M_ANC_DID_CTA_708 0x61
/** AVSmpte291mAnc8bit::sdid_or_dbn when carrying CTA-708 data (for AV_CODEC_ID_EIA_608) */
#define AV_SMPTE_291M_ANC_SDID_CTA_708 0x1
/**
* Try to decode an ANC packet into EIA-608/CTA-708 data (AV_CODEC_ID_EIA_608). This
* @param[in] anc The ANC packet.
* @param[in] log_ctx Context pointer for av_log
* @param[out] cc_data the buffer to store the extracted EIA-608/CTA-708 data,
* you can pass NULL to not store the data.
* the required size is 3 * cc_count bytes.
* SMPTE_291M_ANC_PAYLOAD_CAPACITY is always enough size.
* @return returns cc_count (>= 0) on success, AVERROR(EAGAIN) if it wasn't a CTA-708 ANC packet, < 0 on error.
*/
int av_smpte_291m_anc_8bit_extract_cta_708(const AVSmpte291mAnc8bit *anc, uint8_t *cc_data, void *log_ctx);
#endif /* AVCODEC_SMPTE_436M_H */

View File

@@ -0,0 +1,164 @@
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file
* @ingroup lavu_video_3d_reference_displays_info
* Spherical video
*/
#ifndef AVUTIL_TDRDI_H
#define AVUTIL_TDRDI_H
#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
/**
* @defgroup lavu_video_3d_reference_displays_info 3D Reference Displays Information
* @ingroup lavu_video
*
* The 3D Reference Displays Information describes information about the reference display
* width(s) and reference viewing distance(s) as well as information about the corresponding
* reference stereo pair(s).
* @{
*/
#define AV_TDRDI_MAX_NUM_REF_DISPLAY 32
/**
* This structure describes information about the reference display width(s) and reference
* viewing distance(s) as well as information about the corresponding reference stereo pair(s).
* See section G.14.3.2.3 of ITU-T H.265 for more information.
*
* @note The struct must be allocated with av_tdrdi_alloc() and
* its size is not a part of the public ABI.
*/
typedef struct AV3DReferenceDisplaysInfo {
/**
* The exponent of the maximum allowable truncation error for
* {exponent,mantissa}_ref_display_width as given by 2<sup>(-prec_ref_display_width)</sup>.
*/
uint8_t prec_ref_display_width;
/**
* A flag to indicate the presence of reference viewing distance.
* If false, the values of prec_ref_viewing_dist, exponent_ref_viewing_distance,
* and mantissa_ref_viewing_distance are undefined.
*/
uint8_t ref_viewing_distance_flag;
/**
* The exponent of the maximum allowable truncation error for
* {exponent,mantissa}_ref_viewing_distance as given by 2<sup>^(-prec_ref_viewing_dist)</sup>.
* The value of prec_ref_viewing_dist shall be in the range of 0 to 31, inclusive.
*/
uint8_t prec_ref_viewing_dist;
/**
* The number of reference displays that are signalled in this struct.
* Allowed range is 1 to 32, inclusive.
*/
uint8_t num_ref_displays;
/**
* Offset in bytes from the beginning of this structure at which the array
* of reference displays starts.
*/
size_t entries_offset;
/**
* Size of each entry in bytes. May not match sizeof(AV3DReferenceDisplay).
*/
size_t entry_size;
} AV3DReferenceDisplaysInfo;
/**
* Data structure for single deference display information.
* It is allocated as a part of AV3DReferenceDisplaysInfo and should be retrieved with
* av_tdrdi_get_display().
*
* sizeof(AV3DReferenceDisplay) is not a part of the ABI and new fields may be
* added to it.
*/
typedef struct AV3DReferenceDisplay {
/**
* The ViewId of the left view of a stereo pair corresponding to the n-th reference display.
*/
uint16_t left_view_id;
/**
* The ViewId of the left view of a stereo pair corresponding to the n-th reference display.
*/
uint16_t right_view_id;
/**
* The exponent part of the reference display width of the n-th reference display.
*/
uint8_t exponent_ref_display_width;
/**
* The mantissa part of the reference display width of the n-th reference display.
*/
uint8_t mantissa_ref_display_width;
/**
* The exponent part of the reference viewing distance of the n-th reference display.
*/
uint8_t exponent_ref_viewing_distance;
/**
* The mantissa part of the reference viewing distance of the n-th reference display.
*/
uint8_t mantissa_ref_viewing_distance;
/**
* An array of flags to indicates that the information about additional horizontal shift of
* the left and right views for the n-th reference display is present.
*/
uint8_t additional_shift_present_flag;
/**
* The recommended additional horizontal shift for a stereo pair corresponding to the n-th
* reference baseline and the n-th reference display.
*/
int16_t num_sample_shift;
} AV3DReferenceDisplay;
static av_always_inline AV3DReferenceDisplay*
av_tdrdi_get_display(AV3DReferenceDisplaysInfo *tdrdi, unsigned int idx)
{
av_assert0(idx < tdrdi->num_ref_displays);
return (AV3DReferenceDisplay *)((uint8_t *)tdrdi + tdrdi->entries_offset +
idx * tdrdi->entry_size);
}
/**
* Allocate a AV3DReferenceDisplaysInfo structure and initialize its fields to default
* values.
*
* @return the newly allocated struct or NULL on failure
*/
AV3DReferenceDisplaysInfo *av_tdrdi_alloc(unsigned int nb_displays, size_t *size);
/**
* @}
*/
#endif /* AVUTIL_TDRDI_H */

View File

@@ -93,28 +93,6 @@ typedef struct AVVDPAUContext {
AVVDPAU_Render2 render2;
} AVVDPAUContext;
#if FF_API_VDPAU_ALLOC_GET_SET
/**
* @brief allocation function for AVVDPAUContext
*
* Allows extending the struct without breaking API/ABI
* @deprecated use av_vdpau_bind_context() instead
*/
attribute_deprecated
AVVDPAUContext *av_alloc_vdpaucontext(void);
/**
* @deprecated render2 is public and can be accessed directly
*/
attribute_deprecated
AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *);
/**
* @deprecated render2 is public and can be accessed directly
*/
attribute_deprecated
void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2);
#endif
/**
* Associate a VDPAU device with a codec context for hardware acceleration.
* This function is meant to be called from the get_format() codec callback,
@@ -155,17 +133,6 @@ int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device,
int av_vdpau_get_surface_parameters(AVCodecContext *avctx, VdpChromaType *type,
uint32_t *width, uint32_t *height);
#if FF_API_VDPAU_ALLOC_GET_SET
/**
* Allocate an AVVDPAUContext.
*
* @return Newly-allocated AVVDPAUContext or NULL on failure.
* @deprecated use av_vdpau_bind_context() instead
*/
attribute_deprecated
AVVDPAUContext *av_vdpau_alloc_context(void);
#endif
/** @} */
#endif /* AVCODEC_VDPAU_H */

Some files were not shown because too many files have changed in this diff Show More