summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2024-07-10RetroAchievements: Show OSD messages also for unverified INI filesJosJuice
Currently we're showing OSD messages for unknown patches in known INI files, but not for unknown patches in unknown INI files. I don't think this distinction makes much sense to the user. If there's a patch the user can't use, they probably want to be aware of that fact.
2024-07-10Merge pull request #12921 from VampireFlower/masterAdmiral H. Curtiss
BreakpointWidget: Correct icon position
2024-07-09BreakpointWidget: Correct icon positionVampireFlower
Co-Authored-By: TryTwo <10532806+TryTwo@users.noreply.github.com>
2024-07-09RetroAchievements: Skip LoadApprovedList if there are no patchesJosJuice
There being no active patches is by far the most common case, so let's optimize for this case.
2024-07-09RetroAchievements: Delay calling LoadApprovedListJosJuice
0c14b0c8a70799072ddccb648006914af7c62855 made Dolphin load a file from the Sys folder the first time AchievementManager::GetInstance() is called. Because Android calls AchievementManager::GetInstance() from setBackgroundExecutionAllowedNative, this had two negative consequences on Android: 1. The first time setBackgroundExecutionAllowedNative gets called is often before directory initialization is done. Getting the path of the Sys folder before directory initialization is done causes a crash. 2. setBackgroundExecutionAllowedNative is called from the GUI thread, and we don't want file I/O on the GUI thread for performance reasons. This change makes us load the data from the Sys folder the first time the data is needed instead. This also saves us from having to load the data at all when hardcore mode is inactive.
2024-07-08Merge pull request #12919 from JosJuice/set-background-execution-allowed-crashAdmiral H. Curtiss
Fix AchievementManager::SetBackgroundExecutionAllowed crash
2024-07-07Fix AchievementManager::SetBackgroundExecutionAllowed crashJosJuice
We mustn't use m_system when it is nullptr. This was causing Dolphin to crash on Android whenever an activity was recreated or resumed while emulation is running, which is super common.
2024-07-07Merge pull request #12920 from TellowKrinkle/XXHashLinkAdmiral H. Curtiss
Properly link against xxhash
2024-07-07Merge pull request #12913 from LillyJadeKatrin/retroachievements-allowlist-testAdmiral H. Curtiss
RetroAchievements - Patch Allowlist Unit Test
2024-07-07Implement File::GetExePath() for FreeBSDAdmiral H. Curtiss
2024-07-07Add Approved Patch Allowlist for AchievementsLillyJadeKatrin
Prototype of a system to whitelist known game patches that are allowed to be used while RetroAchievements Hardcore mode is active. ApprovedInis.txt contains known hashes for the ini files as they appear in the repo, and can be compared to the local versions of these files to ensure they have not been edited locally by the player. ApprovedInis.txt is hashed and verified similarly first, with its hash residing as a const string within AchievementManager.h, ensuring ApprovedInis and the hashes within cannot be modified without editing Dolphin's source code and recompiling completely.
2024-07-06Properly link against xxhashTellowKrinkle
Things using dolphin_find_optional_system_library need to link against the name used there or they won't work with both the system and bundled cases
2024-07-06Merge pull request #12905 from LillyJadeKatrin/retroachievements-hotkeyAdmiral H. Curtiss
Add Open Achievements Hotkey
2024-07-06Remove popups for challengesLillyJadeKatrin
The challenge popups have proven to be excessive and are no longer useful thanks to the achievements hotkey. Instead, those events will ask for an immediate RP-level update to the achievements dialog, which will among other things re-sort the dialog to show challenges on top faster.
2024-07-06Add Open Achievements HotkeyLillyJadeKatrin
Adds a hotkey to pause emulation and bring up the Achievements dialog.
2024-07-05Intepreter: Step before checking for breakpointsMartino Fontana
This way, by pressing Continue on top of a breakpoint, the emulation will actually continue (like on Cached Interpreter and JIT), instead of doing nothing.
2024-07-05BreakpointWidget: Can create new breakpoints when emulation isn't runningMartino Fontana
It works perfectly fine, so why not? Also, consistency with CodeViewWidget.
2024-07-05Debugger: Rework temporary breakpointsMartino Fontana
Before: 1. In theory there could be multiple, but in practice they were (manually) cleared before creating one 2. (Some of) the conditions to clear one were either to reach it, to create a new one (due to the point above), or to step. This created weird behavior: let's say you Step Over a `bl` (thus creating a temporary breakpoint on `pc+4`), and you reached a regular breakpoint inside the `bl`. The temporary one would still be there: if you resumed, the emulation would still stop there, as a sort of Step Out. But, if before resuming, you made a Step, then it wouldn't do that. 3. The breakpoint widget had no idea concept of them, and will treat them as regular breakpoints. Also, they'll be shown only when the widget is updated in some other way, leading to more confusion. 4. Because only one breakpoint could exist per address, the creation of a temporary breakpoint on a top of a regular one would delete it and inherit its properties (e.g. being log-only). This could happen, for instance, if you Stepped Over a `bl` specifically, and pc+4 had a regular breakpoint. Now there can only be one temporary breakpoint, which is automatically cleared whenever emulation is paused. So, removing some manual clearing from 1., and removing the weird behavior of 2. As it is stored in a separate variable, it won't be seen at all depending on the function used (fixing 3., and removing some checks in other places), and it won't replace a regular breakpoint, instead simply having priority (fixing 4.).
2024-07-05Merge pull request #12915 from AdmiralCurtiss/sha1-spanAdmiral H. Curtiss
Common/Crypto/SHA1: Use span and string_view for Context::Update()
2024-07-05Merge pull request #12851 from iwubcode/texture_asset_from_to_json_samplerJMC47
VideoCommon: add way to serialize Texture Asset to json, update to deserialize values independently
2024-07-04Merge pull request #12856 from LillyJadeKatrin/retroachievements-pause-v2Admiral H. Curtiss
Handle Pausing in AchievementManager
2024-07-04Common/Crypto/SHA1: Use span and string_view for Context::Update()Admiral H. Curtiss
2024-07-04AchievementManager: Cache Badges on DiskLillyJadeKatrin
Badges are saved in /User/Cache/RetroAchievements on first download and reused from there instead of redownloaded.
2024-07-04Common/Crypto/SHA1: Add DigestToString() utility functionLillyJadeKatrin
2024-07-04Merge pull request #12888 from TryTwo/Fix_Window_TitlebarAdmiral H. Curtiss
MainWindow: Bugfix. Windows Dark mode titlebar not being set.
2024-07-04Merge pull request #12784 from TryTwo/PR_Frame_Advance_FixAdmiral H. Curtiss
Frame Advance: Fix UI update spam when continuously advancing.
2024-07-02Debugger: fix Run to HereMartino Fontana
Now it actually does what it says on the name, instead of creating a breapoint and doing nothing else (not even updating the widget). Also, it now can't be selected if emulation isn't running. Closes https://bugs.dolphin-emu.org/issues/13532
2024-07-02Debugger: Small other cleanupMartino Fontana
Change misleading names. Fix function usage: Intepreter and Step Out will not check breakpoints in their own wrong way anymore (e.g. breaking on log-only breakpoints).
2024-07-02Debugger: Small Breakpoint cleanupMartino Fontana
Reuse more code, change misleading names, remove useless documentation, add useful documentation
2024-07-02IOS::HLE::STMImmediateDevice: Add `IOCTL_STM_WRITEDMCU`GaryOderNichts
2024-07-01Merge pull request #12904 from ↵JMC47
LillyJadeKatrin/retroachievements-challenge-popups Add Messages for Challenges
2024-07-01Add Messages for ChallengesLillyJadeKatrin
Starting or ending a challenge now displays a popup naming and describing the challenge along with the active icon.
2024-06-30Merge pull request #12899 from OatmealDome/release-tag-commits-aheadAdmiral H. Curtiss
ScmRevGen: Set commits ahead to zero when on a tag
2024-06-30Merge pull request #12894 from deReeperJosh/infinity-base-numbersTilka
IOS/USB: Use Enum for Infinity Base Positions
2024-06-30Merge pull request #12898 from AdmiralCurtiss/speedhacksTilka
Core/PatchEngine: Remove remnants of Speedhack system
2024-06-30Handle Pausing in AchievementManagerLillyJadeKatrin
There are two pieces of functionality to be added here. One, we want to disallow pausing too frequently, as it may be used as an artificial slowdown. This is handled within the client, which can tell us if a pause is allowed. Two, we want to call rc_client_idle on a periodic basis so the connection with the server can be maintained even while the emulator is paused.
2024-06-30JitArm64_Paired: Remove unused temp_gpr from ps_arithSintendo
2024-06-30JitArm64_FloatingPoint: Remove unused temp_gpr from fp_arithSintendo
2024-06-30Merge pull request #12896 from ↵JMC47
LillyJadeKatrin/retroachievements-visual-improvements RetroAchievements - Dialog Visual Improvements
2024-06-29ScmRevGen: Set commits ahead to zero when on a tagOatmealDome
2024-06-29JitArm64_Integer: Optimize subfic for zeroSintendo
When the immediate value is zero, we can do a negation. On ARM64 the NEG /NEGS instructions are just an alias for SUB/SUBS with a hardcoded WZR. Before: ``` ldr w22, [x29, #0x28] mov w21, #0x0 ; =0 subs w22, w21, w22 ``` After: ``` ldr w22, [x29, #0x28] negs w22, w22 ```
2024-06-29VideoCommon: add ability to serialize a texture asset metadata to jsoniwubcode
2024-06-29VideoCommon: set individual texture asset filter/wrap values when loading ↵iwubcode
from json
2024-06-29VideoCommon: update texture asset to properly set near sampler state valueiwubcode
2024-06-29Move achievement dialog scrollbars to top when changing gamesLillyJadeKatrin
2024-06-29Made progress bars more legible in dark modeLillyJadeKatrin
2024-06-29Fixed floating overlapping leaderboard bucket headersLillyJadeKatrin
2024-06-28Core/PatchEngine: Remove remnants of Speedhack systemAdmiral H. Curtiss
All usages of this have been removed many years ago in cbe9c3e040a466bba410f025e026ed84f3f8b1c0
2024-06-27AchievementManager: Fix -Wignored-qualifiers warningDentomologist
Fix warning on Android builder by returning bool instead of const bool.
2024-06-27IOS/USB: Use Enum for Infinity Base PositionsJoshua de Reeper