2014-12-15 23:59:51 +01:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#include "defines.h"
|
|
|
|
|
2014-12-19 23:28:11 +01:00
|
|
|
typedef struct {
|
|
|
|
__u32 score;
|
|
|
|
__u32 highscore;
|
|
|
|
__u32 value_map[BOARD_COUNT * BOARD_COUNT];
|
|
|
|
} config_state;
|
|
|
|
|
2014-12-15 23:59:51 +01:00
|
|
|
// Get saved highscore
|
2014-12-19 23:28:11 +01:00
|
|
|
__u8 config_load(config_state* st);
|
2014-12-15 23:59:51 +01:00
|
|
|
|
|
|
|
// Save current highscore
|
2014-12-19 23:28:11 +01:00
|
|
|
__u8 config_save(config_state* st);
|
2014-12-15 23:59:51 +01:00
|
|
|
|
|
|
|
#endif // CONFIG_H
|