34025 Commits

Author SHA1 Message Date
JMC47
21355ea0c5 Merge pull request #14995 from Tilka/ax_fixes
AX: fix three bugs
2026-11-17 22:02:26 -05:00
Jordan Woyak
5140482a6f Merge pull request #15026 from dokslade/ogl-screenshot-offset
VideoCommon: Fix OpenGL screenshots of partial XFB copies
2026-11-16 18:03:02 -06:00
JosJuice
c5069249b4 Merge pull request #15027 from SuperSamus/regcache-small-cleanup
JitRegCache: Small cleanup
2026-11-16 20:46:42 +01:00
JosJuice
0a6ed419eb Merge pull request #14760 from JoshuaVandaele/hardcore-state
Settings: Simplify debug mode
2026-11-16 20:38:01 +01:00
Jordan Woyak
d5a4f48d9b Merge pull request #14774 from sepalani/mic-dedup2
Refactor the GameCube microphone code
2026-11-16 12:24:20 -06:00
Joshua Vandaële
e9da2a4832 Settings: Simplify debug mode
We now just pass a signal to tell the UI that hardcore mode has been turned on/off, and we replace Settings::IsDebugModeEnabled with Config::IsDebuggingEnabled, which always returns false if hardcore is on.
2026-11-16 01:01:12 +01:00
Jordan Woyak
2d451da728 Merge pull request #14276 from JoshuaVandaele/mo-config-controls
Use more ConfigControls
2026-11-15 17:32:18 -06:00
Jordan Woyak
545bf5d5cc Merge pull request #15004 from dokslade/interp-addme-carry
Interpreter: Fix addme/subfme carry and share add/subtract code
2026-11-15 16:56:08 -06:00
Jordan Woyak
4f9d60d80e Merge pull request #15025 from dokslade/elf-mem1-filter
Boot: Restore MEM1 filtering of IOS ELF segments
2026-11-15 16:48:38 -06:00
Martino Fontana
e9517cfea2 JitRegCache: Init emitter in constructor 2026-11-15 22:31:06 +01:00
Martino Fontana
2f6b10035d JitRegCache: Rename "default location" to "PPC State"
More intutive name, and more consistent with ARM's RegCache.
2026-11-15 22:31:06 +01:00
Martino Fontana
3e33294292 JitRegCache: Don't store m_default_location
The register cache is inconsistent in using that or getting it from `GetDefaultLocation(preg_t preg)`.
Considering how simple that function is, let's only use that and remove some state.
2026-11-15 22:31:06 +01:00
Martino Fontana
14d5fe714d BitSet: Some small additions
Also add requirements for using range functions.
And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
2026-11-15 22:31:04 +01:00
JosJuice
19d0dfb0a9 Merge pull request #14834 from JosJuice/jitarm64-small-fixupbranch
Arm64Emitter: Make FixupBranch smaller
2026-11-15 18:54:32 +01:00
dok.slade
c6c57d5709 VideoCommon: Fix OpenGL screenshots of partial XFB copies
ScaleTexture flipped its rectangles for backends with a lower-left
origin, but textures are stored top row first and the copy shader
keeps the row order, so the flip is only a no-op for full rectangles.
With a sub-rectangle, OpenGL frame dumps and screenshots read the
bottom of the texture instead of the top, and came out shifted up with
a black band at the bottom.

Pass the rectangles through unchanged. Other backends and callers using
full rectangles are not affected.

Fixes https://bugs.dolphin-emu.org/issues/12286
2026-11-15 14:24:38 +00:00
Martino Fontana
c73fcc1530 Jit64: More intuitive register reversion 2026-11-15 13:00:33 +01:00
dok.slade
d706251c3e Boot: Restore MEM1 filtering of IOS ELF segments
Since PR #14115, writeAddr is p_paddr | 0x80000000, so comparing it against
the physical RAM size skipped every segment and broke booting MIOS
(GameCube discs from the Wii Disc Channel).

Mask to the physical address before comparing.

Fixes https://bugs.dolphin-emu.org/issues/14176
2026-11-15 12:36:01 +01:00
JosJuice
f7a0bf5bd6 Merge pull request #14888 from SuperSamus/dcbx-dont-clear-icache
Jit: Don't invalidate instruction block cache with dcbx
2026-11-15 12:29:37 +01:00
JosJuice
80a1a25fbc Merge pull request #14966 from SuperSamus/optimize-efb-xfb-uninitialization
TextureCacheBase: Optimize EFB and XFB uninitialization
2026-11-15 12:27:38 +01:00
Tillmann Karras
83f79b4336 AX: rename ITD fields (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras
f86f32a6f2 AX: rename ADD/SUB_TO_LR commands (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras
18b7af84df AX: fix GC surround bug 2026-11-14 23:25:53 +00:00
Tillmann Karras
abeb94c457 AX: fix Wii surround bug 2026-11-14 23:21:34 +00:00
Tillmann Karras
3837bc7c75 AX: always set de-pop values on Wii 2026-11-14 22:44:44 +00:00
Jordan Woyak
334334d42a Merge pull request #15006 from Sintendo/mfspr-movsx
Jit64: mfspr - Sign-extend slice_length
2026-11-14 14:57:32 -06:00
Jordan Woyak
f9cb5f1c08 Merge pull request #13704 from unexploredtest/cmake_source
CMake: Fix relative pathing when project is imported
2026-11-14 13:49:30 -06:00
JosJuice
be0e304c02 Merge pull request #14978 from JoshuaVandaele/quick-stop-hang
CPU: Fix quickly-stopped games hanging Dolphin
2026-11-14 20:03:07 +01:00
JosJuice
761713cec9 Merge pull request #15012 from dokslade/gl-x11-event-mask
GLX11Window: Don't override the host's event mask on the parent window
2026-11-14 15:51:27 +01:00
Jordan Woyak
5c496d1838 Merge pull request #15019 from jordan-woyak/perf-track-fps-fix
PerformanceTracker: Fix broken FPS calculation on Windows after a multi-second delay.
2026-11-13 14:43:59 -06:00
Jordan Woyak
e66427c87e Merge pull request #15014 from dokslade/gl-osd-duplicate
OGL: Only show the Video Info OSD message when initializing the backend
2026-11-13 13:55:28 -06:00
Jordan Woyak
63557b8a67 PerformanceTracker: Fix broken FPS calculation on Windows after a multi-second delay. 2026-11-13 03:35:41 -06:00
Jordan Woyak
e36cd326c0 Merge pull request #15016 from jordan-woyak/remove-bb-dump-port
HW/WiimoteReal: Remove BBDumpPort feature.
2026-11-12 20:00:37 -06:00
Jordan Woyak
9cef41db5f Merge pull request #14976 from JoeysRetroHandhelds/wiimote-null-hid-source
WiimoteDevice: Don't send output reports to a null HID source
2026-11-12 19:49:05 -06:00
Jordan Woyak
4380df9828 Merge pull request #14713 from llsc12/master
Fix cheatsmanager crash
2026-11-12 18:16:11 -06:00
Jordan Woyak
cf21d5dc0b Merge pull request #14877 from SuperSamus/performance-tracker-variance-fixup
PerformanceTracker: Small cleanup, properly use RunningVariance for the standard deviation
2026-11-12 18:07:27 -06:00
Jordan Woyak
836045f9cd Merge pull request #15011 from dokslade/filesystemwidget-menu-uaf
DolphinQt: Fix use-after-free of FilesystemWidget context menu
2026-11-12 18:00:42 -06:00
Jordan Woyak
cd92a628f3 Merge pull request #14876 from VampireFlower/usbgecko
Optimize USB Gecko Emulation
2026-11-12 17:58:38 -06:00
dok.slade
fc58424b3c GLX11Window: Don't override the host's event mask on the parent window
GLX11Window::Create called XSelectInput(display, parent_window,
StructureNotifyMask) on the host's display connection, which replaces
the event mask that the host (DolphinQt or DolphinNoGUI) selected for
the window instead of adding to it.

As a result, Qt stopped receiving FocusIn/FocusOut, key and mouse
events for the render window once an OpenGL context had been created
on it. The same issue made DolphinNoGUI lose its key and focus events
with OpenGL.

The GL code doesn't process any events itself, and the hosts already
select StructureNotify, so just drop the call. Also stop discarding
pending events in XSync, as the event queue belongs to the host.

Fixes https://bugs.dolphin-emu.org/issues/13354
2026-11-13 00:24:53 +01:00
dok.slade
3ad596102a DolphinQt: Fix use-after-free of FilesystemWidget context menu
The context menu was created with Qt::WA_DeleteOnClose, but its actions
open modal dialogs from within QMenu's own activation code. A nested
event loop could process the menu's deferred deletion before control
returned to QMenu, which then accessed freed memory, causing crashes or
heap corruption.

Own the menu with a std::unique_ptr so it is only destroyed once
QMenu::exec has returned.

Fixes https://bugs.dolphin-emu.org/issues/13816
2026-11-13 00:23:25 +01:00
dok.slade
95d7468be5 Interpreter: Share add/subtract code in a Helper_Add template
All PowerPC add and subtract instructions compute a + b + carry_in,
with ~rA as a for the subtract forms. Helper_Add computes this sum in
64 bits and writes rD. Depending on its template parameters, it also
writes CA (bit 32 of the sum), and OV and CR0 as requested by the OE
and Rc bits.

This replaces the carry and overflow code of each instruction and
HasAddOverflowed. There is no behavior change.

With GCC -O3 on x86-64, each instruction compiles to the same number
of host instructions as before, or one fewer.
2026-11-13 00:17:30 +01:00
dok.slade
1f7ead58bc Interpreter: Fix carry of addme/subfme when CA is set
When XER[CA] was set, addme and subfme always cleared it.

Both instructions add 0xFFFFFFFF and CA to their operand (rA for addme,
~rA for subfme). With CA=1, this adds 2^32, so there is always a carry
out. With CA=0, there is a carry out unless the operand is 0.

This affected the interpreter, the cached interpreter and the JitArm64
fallbacks (addmeo/subfmeo). Jit64 already computes the right value.
2026-11-13 00:17:30 +01:00
Jordan Woyak
b4c90227c1 HW/WiimoteReal: Remove BBDumpPort feature. 2026-11-11 18:56:06 -06:00
dok.slade
af2ccf4f72 OGL: Only show the Video Info OSD message when initializing the backend
PopulateConfig is called through FillBackendInfo both from Initialize
and from InitBackendInfo, which creates a temporary GL context to query
the backend's capabilities. InitBackendInfo runs when booting (from
Core::Init) and when the graphics settings refresh the backend info, so
the "Video Info" message got queued two or three times, and all of them
were shown once the first frame was drawn.

Move the OSD messages to Initialize so they're only added once per
emulation start.

Fixes https://bugs.dolphin-emu.org/issues/13574
2026-11-11 22:20:20 +01:00
Sintendo
ad3598389e Jit64: mfspr - Fix comment formatting 2026-11-10 17:06:46 +01:00
Sintendo
b47056b6fd Jit64: mfspr - Sign-extend slice_length
`slice_length` is defined as an int, but was being zero-extended to 64
bits on x64. We should match what we do for ARM64 and sign-extend, as
discussed in PR #14944.
2026-11-10 16:55:20 +01:00
OatmealDome
70c5a6ad0e Merge pull request #14990 from JoshuaVandaele/macos-dolphintool
CMake: Bundle dolphin-tool on macOS
2026-11-10 00:18:14 -05:00
Tillmann Karras
fd7d53a7f7 Skylanders: only play audio received on endpoint 2
This avoids problems in the unrelated game Band Hero.
2026-11-08 17:42:07 +00:00
Lakhan Lothiyi
016e11d736 fix cheat manager crash 2026-11-08 10:34:19 +00:00
OatmealDome
d0609395c1 DolphinQt: Use CMAKE_CURRENT_BINARY_DIR to temporarily store translation files during build on macOS 2026-11-07 16:31:16 -05:00
Joshua Vandaële
b183f8ea97 CMake: Bundle dolphin-tool on macOS
I do not own an Apple device and as such this is completely untested by myself. A user requesting this feature on Discord has confirmed this makes dolphin-tool show up. Most of these changes come from looking at what already exists for DolphinQt and the Mac Updater.
Related issue: https://bugs.dolphin-emu.org/issues/13259
2026-11-07 00:26:32 +01:00