- 40
- Posts
- 2
- Years
- Online now
Hello,
I want to increase the number of badges. So I check in the flags.h file and saw that all the badges' flags are all one after the other.
I'm guessing that if I want to increase the total number, I have to put a new flag (or an unused one) after the last one, like in this example with a 9th badge:
My question is, am I doom to swap the value of some flags to increase the number of badges or is there another way?
Thanks !
I want to increase the number of badges. So I check in the flags.h file and saw that all the badges' flags are all one after the other.
I'm guessing that if I want to increase the total number, I have to put a new flag (or an unused one) after the last one, like in this example with a 9th badge:
Issue is that I will have to change the value of the other flags since I'm moving some of them.#define FLAG_BADGE01_GET (SYSTEM_FLAGS + 0x7)
#define FLAG_BADGE02_GET (SYSTEM_FLAGS + 0x8)
#define FLAG_BADGE03_GET (SYSTEM_FLAGS + 0x9)
#define FLAG_BADGE04_GET (SYSTEM_FLAGS + 0xA)
#define FLAG_BADGE05_GET (SYSTEM_FLAGS + 0xB)
#define FLAG_BADGE06_GET (SYSTEM_FLAGS + 0xC)
#define FLAG_BADGE07_GET (SYSTEM_FLAGS + 0xD)
#define FLAG_BADGE08_GET (SYSTEM_FLAGS + 0xE)
#define FLAG_BADGE09_GET (SYSTEM_FLAGS + 0xF) // new one
#define NUM_BADGES (1 + FLAG_BADGE09_GET - FLAG_BADGE01_GET) // Modified value
My question is, am I doom to swap the value of some flags to increase the number of badges or is there another way?
Thanks !