summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2024-09-24Sw/Rasterizer: fix two elder typos, AD 2009Tillmann Karras
2024-09-23Fix random crash when using the cheat searchPokechu22
Before, Dolphin would randomly crash when updating the cheat search when automatic refresh was enabled. (Having a large number of addresses listed, e.g. by starting with an "any value" search, may contribute). The crash was due to QTableWidget::item returning nullptr in RefreshGUICurrentValues, presumably due to the table being resized on the UI thread while the emulated CPU thread was updating the values. I've fixed this by pausing the CPU thread for the entirety of OnNextScanClicked; this eliminated crashes in my testing.
2024-09-22StringUtil: Remove `JoinStrings`mitaclaw
With 12 uses of `JoinStrings` in the codebase vs 36 uses of `fmt::join`, fmtlib's range adapter for string concatenation with delimiters is clearly the preferred option.
2024-09-21IniFile: Migrate `Common::CaseInsensitiveLess` to StringUtilmitaclaw
Migrating `Common::CaseInsensitiveLess` to StringUtil.h will hopefully discourage rolling one's own solution in the future for case-insensitive associative containers when this (quite robust!) solution already exists. `Common::CaseInsensitiveStringCompare::IsEqual` was removed in favor of using the `Common::CaseInsensitiveEquals` function. The `a.size() != b.size()` condition in `Common::CaseInsensitiveEquals` can be removed, since `std::ranges::equal` already checks this condition (confirmed in libc++).
2024-09-21GeckoCode: Remove Dead Codemitaclaw
2024-09-21Merge pull request #13053 from ↵JMC47
Dentomologist/texture_dumping_show_osd_on_startup_and_toggle Texture Dumping: Show OSD message on startup and when toggled
2024-09-20BreakpointWidget: Update when `Host::PPCSymbolsChanged`mitaclaw
Otherwise, outdated symbol names will remain.
2024-09-20DolphinQt: A Ubiquitous Signal For When Breakpoints Changemitaclaw
There were three distinct mechanisms for signaling breakpoint changes in DolphinQt, and the wiring had room for improvement. The behavior of these signals has been consolidated into the new `Host::PPCBreakpointsChanged` signal, which can be emitted from anywhere in DolphinQt to properly update breakpoints everywhere in DolphinQt. This improves a few things: - For the `CodeViewWidget` and `MemoryViewWidget`, signals no longer need to propagate through the `CodeWidget` and `MemoryWidget` (respectively) to reach their destination (incoming or outgoing). - For the `BreakpointWidget`, by self-triggering from its own signal, it no longer must manually call `Update()` after all of the emission sites. - For the `BranchWatchDialog`, it now has one less thing it must go through the `CodeWidget` for, which is a plus.
2024-09-15Merge pull request #13035 from retroNUC/cheevo-hashTilka
Add generation of rcheevos hash as an option in DolphinTool
2024-09-15Add generation of rcheevos hash to DolphinToolretroNUC
Fixed coding standards issue CalculateHash return string instead of using char array param
2024-09-10Graphics: Clarify relationship between incompatible settingsDentomologist
Explicitly state that Manual Texture Sampling disables Anisotropic Filtering and that GPU Texture Decoding disables Arbitrary Mipmap Detection.
2024-09-08Merge pull request #13057 from JosJuice/rvzpack-typoTilka
DiscIO: Fix a typo in an RVZPack comment
2024-09-08Merge pull request #12813 from Geotale/interpreter-subnormal-roundingJosJuice
Proper Subnormal Rounding When Interpreting
2024-09-08DiscIO: Fix a typo in an RVZPack commentJosJuice
2024-09-08Merge pull request #12981 from Geotale/proper-integer-roundingJosJuice
Improve Integer Rounding Accuracy
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