Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/Dummy/DummyAchievements.hpp
1187 views
1
#include <vector>
2
#include <string>
3
4
#if RETRO_REV02
5
// This is the "dummy" struct, it serves as the base in the event a suitable API isn't loaded (such as in this decomp)
6
// This struct should never be removed, other structs such as "SteamAchievements" would be added and "achievements" would be set to that instead
7
struct DummyAchievements : UserAchievements {
8
DummyAchievements() {}
9
10
#if RETRO_VER_EGS || RETRO_USE_DUMMY_ACHIEVEMENTS
11
inline bool32 CheckAchievementsEnabled() { return true; }
12
void SetAchievementNames(String **names, int32 count);
13
String *GetAchievementString(String *string);
14
String *GetAchievementName(String *name, uint32 id);
15
inline bool32 CheckAchievementPopupEnabled() { return true; }
16
int32 GetNextAchievementID();
17
void RemoveLastAchievementID();
18
#endif
19
void TryUnlockAchievement(AchievementID *id);
20
};
21
#endif
22
23