dolphin/Source
LillyJadeKatrin 505f40cf9d Added ActivateDeactivateAchievement to AchievementManager
ActivateDeactivateAchievement is passed an Achievement ID as returned from the FetchGameData API call and determines whether to activate it, deactivate it, or leave it where it is based on its current known state and what settings are enabled.

Activating or deactivating an achievement entails calling a method provided by rcheevos that performs this on the rcheevos runtime. Activating an achievement loads its memory signature into the runtime; now the runtime will process the achievement each time the rc_runtime_do_frame function is called (this will be in a future PR) to determine when the achievement's requirements are met. Deactivating an achievement unloads it from the runtime.

The specific logic to determine whether an achievement is active operates over many fields but is documented in detail inside the function. There are multiple settings flags for which achievements are enabled (one flag for all achievements, an "unofficial" flag for enabling achievements marked as unofficial i.e. those that have logic on the site but have not yet been officially approved, and an "encore" flag that enables achievements the player has already unlocked) and this function also evaluates whether the achievement has been unlocked in hardcore mode or softcore mode (though currently every reference to the current hardcore mode state is hardcoded as false).
2023-04-14 17:15:45 -04:00
..
Android Merge pull request #11689 from K0bin/android-open-user-folder 2023-03-29 10:53:48 -07:00
Core Added ActivateDeactivateAchievement to AchievementManager 2023-04-14 17:15:45 -04:00
DSPSpy
DSPTool Use GNUInstallDirs for installation paths 2023-01-30 09:44:44 -06:00
PCH msvc: bump required version to align with vs 17.5 2023-03-04 14:18:18 -08:00
UnitTests PowerPC: Refactor to class, move to System. 2023-04-09 21:48:37 +02:00
VSProps Added USE_RETRO_ACHIEVEMENTS compiler flag 2023-04-02 08:28:25 -04:00
.clang-format
CMakeLists.txt
dolphin-emu.sln Added rcheevos to Externals 2023-04-02 08:28:23 -04:00