From 23646fb56e542b628235913459fb7a7f9629853c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 17 Mar 2025 18:57:30 +0100 Subject: [PATCH] achievements:: removed init-pump-close functions from main HyperRogue -- they use hooks instead --- achievement.cpp | 9 --------- control.cpp | 1 - system.cpp | 3 --- 3 files changed, 13 deletions(-) diff --git a/achievement.cpp b/achievement.cpp index 1c10cba9..e8dc981b 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -99,10 +99,7 @@ EX const char* leadernames[NUMLEADER] = { #define LB_RACING 81 #endif -EX void achievement_init(); EX string myname(); -EX void achievement_close(); -EX void achievement_pump(); /** gain the given achievement. * @param s name of the achievement, e.g., DIAMOND1 @@ -245,16 +242,13 @@ EX void achievement_log(const char* s, char flags) { #endif #if !CAP_ACHIEVE -void achievement_init() {} string myname() { return "Rogue"; } -void achievement_close() {} // gain the achievement with the given name. // flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal // Only awarded if special modes are matched exactly. void achievement_gain(const char* s, char flags) { achievement_log(s, flags); } -void achievement_pump() {} EX int get_sync_status() { return 0; } EX void set_priority_board(int) { } #endif @@ -988,9 +982,6 @@ EX void achievement_victory(bool hyper) { #endif } -/** call the achievement callbacks */ -EX void achievement_pump(); - EX string get_rich_presence_text() { #if CAP_DAILY diff --git a/control.cpp b/control.cpp index 2014bd27..d8591f95 100644 --- a/control.cpp +++ b/control.cpp @@ -1057,7 +1057,6 @@ EX void mainloopiter() { #if CAP_VR vrhr::vr_control(); #endif - achievement_pump(); callhooks(hooks_control); diff --git a/system.cpp b/system.cpp index 6cee5825..933668ed 100644 --- a/system.cpp +++ b/system.cpp @@ -1820,8 +1820,6 @@ EX void initAll() { srand(time(NULL)); shrand(fixseed ? startseed : time(NULL)); - achievement_init(); // not in ANDROID - firstland0 = firstland; // initlanguage(); @@ -1870,7 +1868,6 @@ EX void finishAll() { quit_all(); #endif - achievement_close(); callhooks(hooks_final_cleanup); }