-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for user options #34
Comments
For game specific data it woudl be possible to implement a "cookie jar" system. Some inspiration: http://toshyp.atari.org/en/003007.html |
well, I did implement a system like this, (lib/eeprom.c/h) but I never used it, too complex. Couldn't we use a simpler system with a fixed array of u16 values in flash with identifiers set in a header in the main repo lib ? #define OPT_PACMAN_HISCORE 12
#define OPT_BITBOX_KEYBOARD 1 // useful values : 0xffff=EN, 0001 : FR, ..
#define OPT_PULKOTACKER_THEME 5 directly reading flash_options[OPT_SYSTEM_KEYBOARD] and set_option(OPT_SYSTEM_KB, 2) to set those ? Or maybe I'm missing a function of cookie jars ? (we're using a fixed size here anyways) |
In the cookie jar, you can allocate tags for a lot of applications, possibly more than you have bytes in the flash memory. The idea is that users will never run ALL the apps on a bitbox, so they will only have the cookies of applications they already used. And if they run out of space, user can identify each cookie and decide to keep or remove it. However, maybe we don't have plans for that much apps on the bitbox? |
well, it was basically the eeprom thing (that+flash wear levelling). I 2015-07-17 14:29 GMT+02:00 Adrien Destugues notifications@github.com:
|
Well, I think I forgot something: we're not rewriting flash at will, we 2015-07-17 14:39 GMT+02:00 mak apuf makapuf2@gmail.com:
|
user options in flash would be settable in 2nd bootloader
they will be stored in second page of flash
they can include:
keyboard type (1word)
a flag to check if data has been initialized (1word)
gamepad button mappings, default player name (1word)
maybe game specific data ? should reserve IDs in flash.
The text was updated successfully, but these errors were encountered: