1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-05 11:12:49 +00:00

achievements:: removed init-pump-close functions from main HyperRogue -- they use hooks instead

This commit is contained in:
Zeno Rogue 2025-03-17 18:57:30 +01:00
parent f969b7c723
commit 23646fb56e
3 changed files with 0 additions and 13 deletions

View File

@ -99,10 +99,7 @@ EX const char* leadernames[NUMLEADER] = {
#define LB_RACING 81 #define LB_RACING 81
#endif #endif
EX void achievement_init();
EX string myname(); EX string myname();
EX void achievement_close();
EX void achievement_pump();
/** gain the given achievement. /** gain the given achievement.
* @param s name of the achievement, e.g., DIAMOND1 * @param s name of the achievement, e.g., DIAMOND1
@ -245,16 +242,13 @@ EX void achievement_log(const char* s, char flags) {
#endif #endif
#if !CAP_ACHIEVE #if !CAP_ACHIEVE
void achievement_init() {}
string myname() { return "Rogue"; } string myname() { return "Rogue"; }
void achievement_close() {}
// gain the achievement with the given name. // gain the achievement with the given name.
// flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal // flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal
// Only awarded if special modes are matched exactly. // Only awarded if special modes are matched exactly.
void achievement_gain(const char* s, char flags) { void achievement_gain(const char* s, char flags) {
achievement_log(s, flags); achievement_log(s, flags);
} }
void achievement_pump() {}
EX int get_sync_status() { return 0; } EX int get_sync_status() { return 0; }
EX void set_priority_board(int) { } EX void set_priority_board(int) { }
#endif #endif
@ -988,9 +982,6 @@ EX void achievement_victory(bool hyper) {
#endif #endif
} }
/** call the achievement callbacks */
EX void achievement_pump();
EX string get_rich_presence_text() { EX string get_rich_presence_text() {
#if CAP_DAILY #if CAP_DAILY

View File

@ -1057,7 +1057,6 @@ EX void mainloopiter() {
#if CAP_VR #if CAP_VR
vrhr::vr_control(); vrhr::vr_control();
#endif #endif
achievement_pump();
callhooks(hooks_control); callhooks(hooks_control);

View File

@ -1820,8 +1820,6 @@ EX void initAll() {
srand(time(NULL)); srand(time(NULL));
shrand(fixseed ? startseed : time(NULL)); shrand(fixseed ? startseed : time(NULL));
achievement_init(); // not in ANDROID
firstland0 = firstland; firstland0 = firstland;
// initlanguage(); // initlanguage();
@ -1870,7 +1868,6 @@ EX void finishAll() {
quit_all(); quit_all();
#endif #endif
achievement_close();
callhooks(hooks_final_cleanup); callhooks(hooks_final_cleanup);
} }