Commit graph

29642 commits

Author SHA1 Message Date
Admiral H. Curtiss
521d6e93c7
DolphinQt: Adjust panel-specific colors and syntax highlighting for dark theme. 2023-08-16 21:13:37 -04:00
Admiral H. Curtiss
887b07af71
DolphinQt: Set the theme before constructing the MainWindow, some panels that explicitly request palette colors get the wrong colors otherwise. 2023-08-16 21:13:36 -04:00
Admiral H. Curtiss
84861e7514
DolphinQt: Set the application palette to a matching one when the Windows dark theme is in use. 2023-08-16 21:13:36 -04:00
Admiral H. Curtiss
94c954ce17
DolphinQt: Switch dark/light theme when Windows theme changes. 2023-08-16 21:13:35 -04:00
Admiral H. Curtiss
0a73df6b7b
DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-16 21:13:35 -04:00
Admiral H. Curtiss
0d0f821f96
DolphinQt: Add function to set a QWidget's window decorations to dark ones on Windows. 2023-08-16 21:13:34 -04:00
Admiral H. Curtiss
1b255c3fd9
DolphinQt: Auto-load embedded dark theme on Windows if the user uses a system-wide dark theme. 2023-08-16 21:13:34 -04:00
Admiral H. Curtiss
9a9d27936d
DolphinQt: Embed custom dark theme for Windows. 2023-08-16 21:13:34 -04:00
Admiral H. Curtiss
1983af9fb1
DolphinQt: On Windows, detect whether the system is using a dark theme.
Co-authored-by: FearlessTobi <thm.frey@gmail.com>
2023-08-16 21:13:33 -04:00
Admiral H. Curtiss
badf39a467
CMake: Turn on rcc file embedding. 2023-08-16 21:13:33 -04:00
iwubcode
89723e03c1
VideoCommon: fix regression with texture load order where the custom texture code was always updating the asset map for each texture with each entry, making it so the last value actually would be loaded instead of the first 2023-08-16 21:13:32 -04:00
iwubcode
805a8b5fa0
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D 2023-08-16 21:13:31 -04:00
Sketch
a00c97f0d8
Remove force disable WC24 Standby 2023-08-16 21:13:31 -04:00
Dentomologist
5793a7436f
D3D12: Only use framebuffer integer descriptor if allocated
Verify that DXFramebuffer's integer RTV descriptor's cpu_handle has been
allocated before using it, and if it hasn't use the non-integer RTV
descriptor instead. This fixes a Dolphin crash in Twilight Princess, and
possibly other games (Issue 13312).

As an optimization to save space in the descriptor heap, DXFramebuffer's
integer descriptor is only initialized if the given abstract texture
format has different integer and non-integer RTV formats. This
previously wasn't accounted for by GetIntRTVDescriptorArray, which could
cause DX12::Gfx::BindFramebuffer to call OMSetRenderTargets with an
invalid descriptor which would lead to a crash.

Triggering the bug was fortunately rare because integer formats are only
used when blending is disabled and logic ops are enabled. Furthermore,
the standard integer abstract format is RGBA8 which has different
integer and non-integer RTV formats, causing the integer descriptor to
be initialized and avoiding the bug.

The crash started appearing in a2702c6 because it changed the
swapchain's abstract texture format from RGBA8 to RGB10_A2. Unlike
RGBA8, RGB10_A2 has the same integer and non-integer RTV formats and so
the bug can be triggered if the other requirements are met.
2023-08-16 21:13:30 -04:00
JosJuice
5c0ff26c7a
JitArm64: Prefer MOVI with 64-bit elements for zeroing
The Cortex-X2 and Cortex-X3 (and possibly others) recognize MOVI with
64-bit elements as a zeroing idiom, but not MOVI with other sizes.
2023-08-16 21:13:30 -04:00
Admiral H. Curtiss
da9e57203c
Qt: Add file size stats to NAND Check. 2023-08-16 21:13:28 -04:00
Admiral H. Curtiss
b6e9531ea5
IOS/FS: Implement GetExtendedDirectoryStats().
Behaves like GetDirectoryStats() but doesn't clamp to the Wii limits, so we can tell the user exactly how overfull their NAND is.
2023-08-16 21:13:28 -04:00
Admiral H. Curtiss
ebbb6c67e7
IOS/FS: Move NAND size related constants to FileSystem.h.
That way they're available for calculating NAND stats to display to the user. This also adds a few more constants.
2023-08-16 21:13:27 -04:00
Admiral H. Curtiss
c5e95f559e
WiimoteReal/IOWin: Use correct error type in the default case. 2023-08-16 21:13:27 -04:00
Admiral H. Curtiss
14a5aefc27
CommonFuncs: Add GetWin32ErrorString(). 2023-08-16 21:13:27 -04:00
iwubcode
7957dbc343
VideoCommon: update NetplayChatUI's chat message input to use a hidden label. This avoids an error thrown by imgui 2023-08-16 21:13:26 -04:00
iwubcode
0d2316adca
VideoCommon: update imgui to 1.89.7 (and implot to 0.15); fix issues with upgrade; keep the demo code in case someone wants to reference it but don't compile it by enabling 'IMGUI_DISABLE_DEMO_WINDOWS' in config 2023-08-16 21:13:25 -04:00
Dentomologist
421c2739e5
GekkoDisassembler: Remove unused parameter dmode from fdabc function
With the removal of m_flags, dmode is no longer used in fdabc.
2023-08-16 21:13:25 -04:00
Dentomologist
37874f689a
GekkoDisassembler: Remove unused parameter dmode from ldst function
With the removal of m_flags, dmode is no longer used in ldst.
2023-08-16 21:13:24 -04:00
Dentomologist
418fe353ec
GekkoDisassembler: Remove unused parameter dmode from rrn function
With the removal of m_flags, dmode is no longer used in rrn.
2023-08-16 21:13:24 -04:00
Dentomologist
e4d093f8d5
GekkoDisassembler: Remove unused parameter dmode from dab function
With the removal of m_flags, dmode is no longer used in dab.
2023-08-16 21:13:23 -04:00
Dentomologist
a5a4489818
GekkoDisassembler: Remove unused parameter dmode from nooper function
With the removal of m_flags, dmode is no longer used in nooper.
2023-08-16 21:13:23 -04:00
Dentomologist
1f0fec1c63
GekkoDisassembler: Remove unread variable m_flags
Writes to m_flags are pointless as it's never read.
2023-08-16 21:13:23 -04:00
Martino Fontana
9292c4c6d8
Qt/GameConfigWidget: Add Manual Texture Sampling 2023-08-16 21:13:21 -04:00
Martino Fontana
ed5c261166
Qt/GameConfigWidget: Rename m_enable_fast_disc to m_emulate_disc_speed 2023-08-16 21:13:21 -04:00
Martino Fontana
ce3050f85f
Qt/GameConfigWidget: Add reverse argument for {Save,Load}CheckBox
In order to not hard code `if (key == "FastDiscSpeed")`
2023-08-16 21:13:21 -04:00
Upfoldian
52eb84287e
Fixed a bug where in the extremely unlikely change that HostIDs collide, a new HostID is generated. 2023-08-16 21:13:19 -04:00
Pokechu22
d7c70af188
Rename "Show Debugging UI" to "Enable Debugging UI"
This will hopefully reduce confusion on e.g. https://bugs.dolphin-emu.org/issues/13306.
2023-08-16 21:13:19 -04:00
iwubcode
19c72339d0
Core: save core timing parameters into variables updated during refresh 2023-08-16 21:13:18 -04:00
mitaclaw
8e0c30c358
Announce RSCRATCH clobbering in Jit64 when profiling is enabled 2023-08-16 21:13:18 -04:00
iwubcode
0f8f29183a
VideoCommon: skip the texture dump if the texture is using a custom texture, regardless of whether or not it is loaded yet 2023-08-16 21:13:17 -04:00
Mandar1jn
c4a6eba571
Skylanders: Update J command documentation
I initially thought the 0x01 side was both sides (equavalent to just C. However, this turned out to be something I forgot I implemented in my personal interface. 0x01 does not seem to change any colors.

Recently discovered how exactly the last 2 bytes of the J command for timing data
2023-08-16 21:13:17 -04:00
Martino Fontana
6b56d1d0c7
cubeb: Change name to "Dolphin Emulator"
To avoid conflicts with KDE's file manager.
2023-08-16 21:13:16 -04:00
iwubcode
ad6ced6957
VideoCommon: add custom texture message to provide a dirty means of debugging whether custom textures are installed correctly 2023-08-16 21:13:16 -04:00
nyanpasu64
a5a165a38e
Fix GC adapter not being detected when you enable controller in settings
GCAdapter::UseAdapter() reads s_is_adapter_wanted, which gets
initialized by config_guard.~ConfigChangeCallbackGuard(). So we must
wait until after destroying the config guard to know whether we have any
controllers set to GC Adapter.
2023-08-16 21:13:15 -04:00
nyanpasu64
3434b44c13
Switch libusb_config_descriptor to RAII type 2023-08-16 21:13:15 -04:00
nyanpasu64
7e944c1141
Workaround GC adapter detection breaking when reset fails 2023-08-16 21:13:14 -04:00
nyanpasu64
0077cacdc5
Reset GC adapter upon IO error after sleep-wake
Fixes GC adapter breaking on sleep-wake on Linux and burning a full CPU
core. This is cleaner than alternative approaches.
2023-08-16 21:13:14 -04:00
nyanpasu64
6c07e4796e
Don't burn a CPU core and spam logs when GC Adapter fails 2023-08-16 21:13:14 -04:00
nyanpasu64
34571640d3
Fix memory leak in libusb code 2023-08-16 21:13:13 -04:00
iwubcode
5f61f8a7b7
VideoCommon: fix some compiler warnings for CustomAsset. FreeBSD compiler complained about a defaulted move constructor due to the mutex being implicitly deleted. Additionally, the const owning library deleted the copy constructor. 2023-08-16 21:13:12 -04:00
iwubcode
5d4252450b
VideoCommon: initialize load info variables 2023-08-16 21:13:12 -04:00
Mateus B. Cassiano
6362d58977
Qt: Color Correction window fixes 2023-08-16 21:13:11 -04:00
Sepalani
638f1b95ba
Common/Network: Use StrErrorWrapper 2023-08-16 21:13:10 -04:00
Sepalani
592f215857
Common/CommonFuncs: Add StrErrorWrapper function 2023-08-16 21:13:10 -04:00