summaryrefslogtreecommitdiff
path: root/Source
AgeCommit message (Collapse)Author
2024-09-07Merge pull request #12966 from ↵JMC47
Dentomologist/cheatsmanager_create_code_widgets_only_once CheatsManager: Create Action Replay and Gecko code widgets only once
2024-09-07Merge pull request #13051 from mitaclaw/dead-config-code-2JosJuice
SI_Device: Remove Dead Config Code
2024-09-07Merge pull request #13052 from Tilka/axTilka
DSPHLE/AX: fix low-pass/biquad clipping
2024-09-06Texture Dumping: Show OSD message on startup and when toggledDentomologist
If texture dumping is enabled, notify the user on emulation startup using an On Screen Display message. Also notify the user when texture dumping is toggled. Addresses https://bugs.dolphin-emu.org/issues/12445.
2024-09-05VideoBackends:Vulkan: Use Vulkan 1.2 driverID to detect MoltenVKTellowKrinkle
Previously we'd assume all Apple GPUs were MoltenVK, including those running on Asahi Linux with open source Honeykrisp drivers.
2024-09-05VideoBackends:Vulkan: Consolidate feature checking into one structTellowKrinkle
2024-09-04Merge pull request #12977 from mitaclaw/branch-watch-tool-fixes-4JMC47
Branch Watch Tool: Refactors, Fixes, and Features
2024-09-04DSPHLE/AX: fix low-pass/biquad clippingTillmann Karras
The low-pass and biquad filters run in set40 mode where accessing ac#.m returns the value of ac#.hm clamped to 16 bits. This fixes the crackling in "Need for Speed: Nitro" (issue 13610). Also make the lower bound match hardware (-0x8000 instead of -0x7FFF).
2024-09-04SI_Device: Remove Dead Config Codemitaclaw
2024-09-03Proper Subnormal Rounding When InterpretingGeotale
During 25-bit rounding, subnormals are "normalized" This would normally mean that the exponent needs to be able to be <-1023 Instead, you can modify at what bit you round and get the same results! This is done by finding the highest bit and shifting right the round bit Co-Authored-By: JosJuice <josjuice@gmail.com>
2024-09-03Improve Integer Rounding AccuracyGeotale
Changes integer rounding to more closely meet the documentation The documentation explains to round before doing any bounds checks All this really does is make sure some exception bits won't be set wrong This depends on the rounding mode, fixing cases such as: - Round to even, (0x7fffffff, 0x7fffffff.8) - Round to down, (0x7fffffff, 0x80000000) This change also uses some standard functions for rounding Previously using them was casting to an s32 directly, now keeps the f64 RoundToIntegerMode introduced due to roundeven not being part of C++17 Finally, it can change a >0x7fffffff to >=0x80000000, done because: - It looks nicer now with integers (I liked 0s) - It gives ever so slightly better codegen on Aarch64 Co-Authored-By: JosJuice <josjuice@gmail.com>
2024-09-01CachedInterpreterEmitter: Fix `std::memcpy` UBmitaclaw
I wasn't aware that even with a size of zero, it's still not safe to pass a nullptr to `std::memcpy`. When `CachedInterpreterEmitter::PoisonCallback` is written, UB is happening.
2024-08-31Branch Watch Tool: Toolbar Visiblity Menumitaclaw
Adds the ability to hide unneeded features of the controls toolbar.
2024-08-31Branch Watch Tool: New Conditional Branch Inspection Toolsmitaclaw
Invert conditions, invert decrement checks, and make conditional branches unconditional. USnapshotMetadata in prior versions of Dolphin is forward-compatible with these changes (tested on x86_64).
2024-08-31Branch Watch Tool: Ignore Apploader Branch Hits Concurrency Fixmitaclaw
Also removed worthless `Start` and `Pause` helpers from `Core::BranchWatch`.
2024-08-31BranchWatchDialog: Improve Branch Was/Not Overwritten Buttonsmitaclaw
Giving a warning if these are used when not usable is bad UX.
2024-08-31BranchWatchDialog: Listen For `clicked` Signal Rather Than `pressed`mitaclaw
The latter signal was used by mistake, see PR #8263.
2024-08-31BranchWatchDialog: Const Correctnessmitaclaw
m_index_list_temp should not be imagined as a member of `BranchWatchDialog`, so it is now mutable to allow for more const member functions.
2024-08-31BranchWatchDialog: Refactor Context Menusmitaclaw
Instead of one wildly complex context menu constructed lazily, now three manageable context menus are constructed proactively.
2024-08-31BranchWatchDialog: Clean Up Object Parenting and Prefer Automitaclaw
Objects which get parented automatically by later processing now pass a nullptr to the constructor to make the intent clearer. Also fixed "true" and "false" not being translatable strings.
2024-08-31BranchWatchDialog: Disconnect Slots When Hiddenmitaclaw
2024-08-31Merge pull request #13044 from JosJuice/subfic-carryTilka
Interpreter: Fix subfic carry calculation
2024-08-31Interpreter: Fix subfic carry calculationJosJuice
This was accidentally using the instruction's output instead of the instruction's input when the input and output registers were the same.
2024-08-31Merge pull request #13031 from parona-source/libfmt-11Admiral H. Curtiss
Add support for libfmt-11
2024-08-31Merge pull request #13042 from homeisfar/vk_improve_loggerTilka
vulkan: Add line number to vulkan error logger
2024-08-31Merge pull request #13039 from ↵Tilka
Dentomologist/mainwindow_fix_hidden_confirm_on_stop_dialog MainWindow: Prevent Confirm On Stop dialog from being hidden by the Render window
2024-08-31Merge pull request #13038 from Ferdi265/fix-rvz-clang-ubTilka
RVZ: Fix undefined behaviour when copying 0 bytes to a null pointer
2024-08-28vulkan: Add line number to vulkan error loggerAli Homafar
This is a minor improvement to add line numbers to the LOG_VULKAN_ERROR define. Basically error logs for Vulkan will now look like: ``` // This 25:03:347 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (WaitForCommandBufferCompletion:278) vkWaitForFences failed: (2: VK_TIMEOUT) // Instead of 15:45:154 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (WaitForCommandBufferCompletion) vkWaitForFences failed: (2: VK_TIMEOUT) ```
2024-08-27MainWindow: Prevent Confirm On Stop dialog from being hiddenDentomologist
Set the Render Window as the parent of the Confirm On Stop confirmation dialog when Keep Window On Top is enabled, ensuring it will always be visible. Previously, when Confirm On Stop and Keep Window On Top were both enabled the Confirm On Stop dialog could be hidden by the render window in the following situations: * Clicking Stop in the Main Window * Clicking the Main Window's close button * Pressing the Stop hotkey while in FullScreen mode This was particularly troublesome because the confirm dialog is modal, preventing the user from moving the render window out of the way if it was obscuring the dialog. Fixes https://bugs.dolphin-emu.org/issues/13247.
2024-08-27Merge pull request #13037 from ↵Tilka
Dentomologist/hotkeyscheduler_handle_wiimote_connections_independently HotkeyScheduler: Handle Wii Remote connections independently
2024-08-27RVZ: Fix undefined behaviour when copying 0 bytes to a null pointerFerdinand Bachmann
A vector of length 0 can have a null data pointer, which causes UB when passed to memcpy, so only copy when we actually have data to copy. This caused crashes in certain cases when compiling Dolphin with Clang and LTO enabled.
2024-08-26HotkeyScheduler: Handle Wii Remote connections independentlyDentomologist
Allow connecting or disconnecting multiple Wii Remotes simultaneously instead of only handling the highest index whose hotkey is pressed. This allows using a single hotkey to toggle multiple remotes.
2024-08-25ARCodeWidget: Remove unnecessary call to OnSelectionChangedDentomologist
Before the call to OnSelectionChange, m_code_edit and m_code_remove are disabled and UpdateList calls m_code_list->clear(), thereby deselecting any selected items. When no items are selected, OnSelectionChange disables m_code_edit and m_code_remove and then returns. Since that was already done, the call doesn't change anything and can be removed.
2024-08-25CheatsManager: Create ARCodeWidget and GeckoCodeWidget only once.Dentomologist
Create ARCodeWidget and GeckoCodeWidget once on startup rather than every time a game is launched or shutdown. In addition to losing focus on the tab (since the previous widget and tab no longer existed), the behavior prior to this commit could cause a crash if the user initiated a game shutdown and then opened a code edit window since the AR/GeckoCodeWidget would get deleted in the meantime.
2024-08-25Extract ARCodeWidget/GeckoCodeWidget code loading to functionsDentomologist
2024-08-25ARWidget: Disable Edit and Remove buttons when no code is selectedDentomologist
Also some minor refactoring of nearby/related code: * Make non-obvious variable types explicit instead of auto. * Throw some consts around. * Use setDisabled(empty) instead of setEnabled(!empty).
2024-08-24AX: add analytics quirks for wiimote filtersTillmann Karras
I'm fairly sure the implementation is correct but I've not been able to find a game that actually makes use of these filters.
2024-08-24AX: enable low-pass/biquad filtering of Wiimote audioTillmann Karras
2024-08-24AX: add support for biquad filteringTillmann Karras
This fixes e.g. the overly loud wind in "I SPY: Spooky Mansion".
2024-08-24Merge pull request #13009 from BryanJacobs/masterJosJuice
Graphics: Adapt aspect ratio when SBS/TAB 3D is used
2024-08-24BranchWatchDialog: Refactor For LoadQSettings / SaveQSettingsmitaclaw
2024-08-24BranchWatchDialog: Defer Layout Construction When Possiblemitaclaw
The main layout, tool controls layout, and misc. controls layout all don't need the QLayout constructed so early.
2024-08-24BranchWatchDialog: De-lambda-ize Constructormitaclaw
2024-08-24BranchWatch: Don't Save Irrelevant Hits In Reduction Phasemitaclaw
2024-08-23Merge pull request #13033 from mitaclaw/remove-common-fillTilka
TypeUtils: Remove Common::Fill
2024-08-22Skylanders: Fix Hot Head (Sparkle)lycheefox
2024-08-22TypeUtils: Remove Common::Fillmitaclaw
This temporary solution is no longer needed.
2024-08-22Add support for libfmt-11Alfred Wingate
fmt::join was moved into fmt/ranges.h Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-08-22Graphics: Adapt aspect ratio when SBS/TAB 3D is usedBryan Jacobs
Adds support for choosing to present the full resolution independently to each eye when using side-by-side or top-and-bottom 3D.
2024-08-21Android: Wait for surface in RunJosJuice
When we boot the core, it needs to have a valid surface to draw graphics to. Our Kotlin code does wait for a valid surface to exist before it calls NativeLibrary.Run, but there's a chance for the surface to be deleted before Run locks s_surface_lock. If that happens, the core boots without a valid surface, which presumably would cause a crash. (I haven't been able to reproduce the problem myself.)