mine_sweeper_storage.h 984 B

12345678910111213141516171819202122232425
  1. #ifndef MINESWEEPER_STORAGE_H
  2. #define MINESWEEPER_STORAGE_H
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <storage/storage.h>
  6. #include <flipper_format/flipper_format.h>
  7. #include "../minesweeper.h"
  8. #define MINESWEEPER_SETTINGS_FILE_VERSION 2
  9. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("apps_data/mine_sweeper_redux")
  10. #define MINESWEEPER_SETTINGS_SAVE_PATH CONFIG_FILE_DIRECTORY_PATH "/mine_sweeper_redux.conf"
  11. #define MINESWEEPER_SETTINGS_SAVE_PATH_TMP MINESWEEPER_SETTINGS_SAVE_PATH ".tmp"
  12. #define MINESWEEPER_SETTINGS_HEADER "Mine Sweeper Redux Config File"
  13. #define MINESWEEPER_SETTINGS_KEY_WIDTH "BoardWidth"
  14. #define MINESWEEPER_SETTINGS_KEY_HEIGHT "BoardHeight"
  15. #define MINESWEEPER_SETTINGS_KEY_DIFFICULTY "BoardDifficulty"
  16. #define MINESWEEPER_SETTINGS_KEY_FEEDBACK "FeedbackEnabled"
  17. void mine_sweeper_quick_save_feedback(void* context);
  18. void mine_sweeper_save_settings(void* context);
  19. bool mine_sweeper_read_settings(void* context);
  20. #endif