summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2024-05-04Merge pull request #12738 from mitaclaw/expression-sprsAdmiral H. Curtiss
Expression: Support All SPRs + MSR
2024-05-04Retooled Achievements Welcome MessageLillyJadeKatrin
The "welcome message" that shows up to players when a game starts up and Achievements are active will now either tell the player upon load that there's no support for achievements, or will wait until the first attempt to load the game's badge either succeeds or fails and then display a full message with title and progress and status. This is in part facilitated by a boolean field for when to display a welcome message, set to true upon loading and to false upon a message being displayed.
2024-05-04Merge pull request #12762 from mitaclaw/dead-config-codeAdmiral H. Curtiss
PowerPC: Remove Dead Config Code
2024-05-04Merge pull request #10957 from Pokechu22/std-bitcastTilka
Replace Common::BitCast with std::bit_cast
2024-05-03PowerPC: Remove Dead Config Codemitaclaw
2024-05-03Core::SetState: Avoid Global System Accessormitaclaw
2024-05-04DolphinNoGUI: Link against dwmapi.lib on Windows in CMakeAdmiral H. Curtiss
Required since 2b261b9306b9ab1ab558f79b3e88b1c89e1e8755
2024-05-04Merge pull request #12695 from mitaclaw/core-global-system-4Admiral H. Curtiss
Core::IsRunning: Avoid Global System Accessor
2024-05-04Merge pull request #12751 from guijan/improv-nbsdAdmiral H. Curtiss
improve NetBSD-specific code
2024-05-03Replace Common::BitCast with std::bit_castPokechu22
2024-05-03Hide Achievement Dialog Header When DisabledLillyJadeKatrin
If achievements were disabled but a player token is in settings, prior to this change the Achievement Manager dialog would show a box with no player name and score zero, which is unnecessary.
2024-05-03Expression: Support All SPRs + MSRmitaclaw
2024-05-03Externals: Update minizip-ng to 4.0.5mitaclaw
Also update unzLocateFile to the minizip-ng 4.0.4+ signature and document new unused files.
2024-05-03Externals: Convert minizip-ng To Submodulemitaclaw
Due to an oversight in our CMakeLists, pkg-config would attempt to find *minizip* 3.0.0 (which doesn't exist) instead of *minizip-ng* 3.0.0, or at least it was on my Manjaro Linux machine. This has been fixed. The new submodule is using minizip-ng 3.0.4, the same version that was being used before.
2024-05-03Merge pull request #12756 from guijan/fix-llvmAdmiral H. Curtiss
fix linking against LLVM shared library
2024-05-03improve NetBSD-specific codeGuilherme Janczak
NetBSD doesn't put packages in /usr/local like /CMakeLists.txt thought. The `#ifdef __NetBSD__` around iconv was actually breaking compilation on NetBSD when using the system libiconv (there's also a GNU iconv package) A C program included from C++ source broke on NetBSD specifically, work around it. This doesn't fix compilation on NetBSD, which is currently broken, but is closer to correct.
2024-05-03Merge pull request #12754 from ↵Admiral H. Curtiss
LillyJadeKatrin/retroachievements-possiblememoryleakfix Fix possible memory leak in an Achievement Manager callback
2024-05-03fix linking against LLVM shared libraryGuilherme Janczak
967280f140f39283e9e6997ffa6426329d94f611 broke linking against libLLVM.so because it used the outdated way to link against LLVM from CMake. This causes a compilation failure on systems that don't have the LLVM static libraries, such as Arch Linux. On systems that have the static libraries, it'll use them and increase binary sizes massively. Switch to the newer llvm_config CMake macro from LLVM.
2024-05-03Fix possible memory leak in an Achievement Manager callbackLillyJadeKatrin
2024-05-02Merge pull request #12747 from mitaclaw/qt-memory-leaksAdmiral H. Curtiss
DolphinQt: Properly Delete (Some) Widgets
2024-05-02Merge pull request #12716 from guijan/obsd-portAdmiral H. Curtiss
port to OpenBSD
2024-05-02Show Achievements in Menu Bar alwaysLillyJadeKatrin
Previously the Achievements option would only show up if achievements were already enabled, requiring users to manually create a config file in the file system; this now makes it visible no matter what.
2024-05-02Disabled Hardcore Mode when Achievements disabledLillyJadeKatrin
Bugfix for hardcore-disabled items being disabled when hardcore was true but achievement integration was false, which should mean hardcore is effectively disabled. Now everything checks the IsHardcoreModeActive method in AchievementManager which processes the setting AND the game state to determine if hardcore mode is actually active.
2024-05-01Core::IsRunning: Avoid Global System Accessormitaclaw
2024-05-01Merge pull request #12639 from LillyJadeKatrin/retroachievements-clientJMC47
Refactor AchievementManager from rc_runtime to rc_client
2024-05-01Add Spectator Mode to achievement settingsLillyJadeKatrin
Spectator Mode is a new mode added by rc_client that allows for achievement and leaderboard functionality, but does not submit this data to the site, partially allowing for offline achievements. It effectively replaces the former settings for disabling achievements, leaderboards, and RP, which are now always active internally as long as the client is active.
2024-05-01Updated Unofficial and Encore settings to use rc_clientLillyJadeKatrin
These settings now only are applied at game start and their tooltips have been updated to reflect this.
2024-05-01Update hardcore toggle to use rc_clientLillyJadeKatrin
The client can take care of itself and handle its own hardcore status when it toggles, so I can tell the settings widget to contact the manager directly to set it. Also, gradually reorganizing the settings dialog over the next handful of commits.
2024-05-01Remove Achievements/Leaderboards/RP Enabled settingsLillyJadeKatrin
The RetroAchievements client object now handles these three settings as a singular "spectator" mode that will be added in a future commit.
2024-05-01Handle Reset and Server Error client events.LillyJadeKatrin
2024-05-01Added Change Media client functionality to AchievementManangerLillyJadeKatrin
The client can handle media changes natively so disabling can take place internally. This code uses the same external calls to load data, but will call either BeginLoad or BeginChangeMedia based on whether any media is already loaded. Due to the client's handling of media changes (it simply disables hardcore if an unknown media is detected) the existing functionality for "disabling" the achievements is no longer necessary and can be deleted.
2024-05-01Update Achievement Dialog Header to use rc_clientLillyJadeKatrin
Two portions of this need updating. Anything related to points and unlock counts and scoring uses game_summary now instead of the TallyScore method. Unfortunately this comes with the drawback that I cannot easily at this time access the number of points/unlocks from the other hardcore mode, so things like the second progress bar have been deleted. Rich presence, which no longer needs to be stored, but can be calculated at request. As the AchievementHeader can now update just the Rich Presence, DoFrame can now simply call a header update with .rp=true and the current Rich Presence will be calculated immediately. As the two items above are the last remaining things to use a number of the components in AchievementManager, this also deletes: Request V1 (V2 is renamed accordingly), ResponseType, PointSpread, TallyScore, UnlockStatus, and the RP generation and ping methods.
2024-05-01Refactor AchievementsWindow::UpdateData to take a partial update parameterLillyJadeKatrin
UpdateData in AchievementsWindow now only updates the components being requested, massively improving the window's performance. The parameter is UpdatedItems in AchievementManager, which tracks which portions of the system have been updated for every update callback.
2024-05-01Refactor leaderboard entry calls to use rc_clientLillyJadeKatrin
Leaderboard entry calls are asyncronous and use a callback. Logic remains the same, but the callback populates the list that the UI grabs values from.
2024-05-01Refactor Leaderboard widget to allow partial updatesLillyJadeKatrin
Similarly to the Progress widget (though without the separate object for each box, because each Leaderboard unit is just three text fields stacked vertically), AchievementLeaderboardWidget.UpdateData will now accept three options: destroy all and rebuild, update all, or update a set of rows. As part of this, AchievementManager::GetLeaderboardsInfo has been refactored to GetLeaderboardInfo to return a single leaderboard for the ID passed in.
2024-05-01Refactored AchievementProgressWidget to maintain AchievementBox listLillyJadeKatrin
AchievementProgressWidget maintains in memory a map of AchievementBox pointers so that UpdateData can operate on them individually. UpdateData is overhauled for three options: UpdateData(true) will destroy the entire list and re-create it from scratch as before, to be used if the game or player changes/closes/logs out. UpdateData(false) will loop through the map and call UpdateData on every achievement box, to be used for certain settings changes such as enabling badges or disabling hardcore mode. UpdateData(set<IDs>) will call UpdateData on only the IDs in the set, to be used when achievements are unlocked.
2024-05-01Created AchievementBox Qt objectLillyJadeKatrin
AchievementBox is an extension of QGroupBox that contains the data for a single achievement, initialized with the achievement data and able to reference AchievementManager to update itself.
2024-05-01Add DoState to AchievementManagerLillyJadeKatrin
While state loading is not allowed in the hardcore mode that most players will use, it is allowed in softcore mode; more importantly, if something fails to unlock or unlocks when it shouldn't in either mode the player can create a save that retains the current achievement state.
2024-05-01Handle Game Completed Client EventLillyJadeKatrin
2024-05-01Handle Achievement Progress Client EventsLillyJadeKatrin
This is not a 1 to 1 relationship with how the events look primarily because currently achievement progress messages are in OnScreenDisplay, which currently vanishes messages automatically. As this covers the last remaining runtime-based event from the old event handler, that handler has been deleted and the new event handler has been renamed to take its place.
2024-05-01Handle Achievement Challenge Indicator Show/Hide Client EventsLillyJadeKatrin
Also deletes the corresponding runtime-based events from the old event handler.
2024-05-01Display active leaderboard data on screenLillyJadeKatrin
Up to four leaderboards are displayed in a window in the bottom right of the screen (vertically above challenge icons, if there are any). As per RetroAchievements standards, the markers only display the current leaderboard values with no further context necessary.
2024-05-01Add active leaderboard tracker to achievement managerLillyJadeKatrin
The active leaderboard data (leaderboards currently being attempted, which get displayed on screen) is now tracked. When a leaderboard is started its value is added to a vector (sorted by start frame). There are a separate set of client events specifically to handle leaderboard trackers, that are used to populate and manage this vector. The top portion of this vector (by RetroAchievement standards, the first four items) is exposed to be displayed on screen.
2024-05-01Handle Leaderboard Submitted/Started/Failed Client EventsLillyJadeKatrin
Also deletes the corresponding runtime-based events from the old event handler.
2024-05-01Handle Achievement Triggered Client EventLillyJadeKatrin
Also deletes the old runtime-based Achievement Triggered event from the old handler, and the methods used by it to publish to the server and reactivate/deactivate achievements in the runtime.
2024-05-01Created EventHandlerV2 and added client to DoFrameLillyJadeKatrin
As MemoryPeeker V1 is no longer in use, it is deleted and MemoryPeekerV2 is renamed in its place.
2024-05-01Refactored Welcome Message to use rc_clientLillyJadeKatrin
Restructured the welcome message to use the information in rc_client, particularly the summary. Redesigned the message in the process to look cleaner.
2024-05-01Retooled achievement badge fetch processLillyJadeKatrin
This change was primarily made to refactor the badge fetching to use the client instead of the runtime, but in the process I also refactored the code to cut down on complexity and duplication. Now the FetchBadge method is passed a function that generates the badge name; this is used to ensure that once the badge is loaded that it is still the desired badge to avoid race conditions.
2024-05-01Updated GetGameDisplayName to use rc_clientLillyJadeKatrin
2024-05-01Refactored Achievement Mananger to load games through rc_clientLillyJadeKatrin
HashGame has become LoadGame, similar structure with the file loaders but using the client instead. LoadGameCallback has been created to handle the results. The old LoadGameSync has been deleted as have several hash and load methods that it called.