2023-07-16 12:21:52 +02:00
|
|
|
/**
|
|
|
|
* @file settings.h
|
|
|
|
* @brief Menu Settings
|
|
|
|
* @ingroup menu
|
|
|
|
*/
|
|
|
|
|
2023-02-24 15:24:59 +01:00
|
|
|
#ifndef SETTINGS_H__
|
|
|
|
#define SETTINGS_H__
|
|
|
|
|
|
|
|
|
2023-07-16 12:21:52 +02:00
|
|
|
/** @brief Settings Structure */
|
2023-02-24 15:24:59 +01:00
|
|
|
typedef struct {
|
2023-10-10 21:12:53 +02:00
|
|
|
/** @brief Use 60 Hz refresh rate on a PAL console */
|
|
|
|
bool pal60_enabled;
|
2023-07-16 13:13:02 +02:00
|
|
|
|
|
|
|
/** @brief Show files marked as hidden in the browser */
|
2023-10-10 21:12:53 +02:00
|
|
|
bool hidden_files_enabled;
|
2023-07-16 13:13:02 +02:00
|
|
|
|
|
|
|
/** @brief Default directory to navigate to when menu loads */
|
2023-07-11 18:00:18 +02:00
|
|
|
char *default_directory;
|
2023-08-18 22:19:01 +02:00
|
|
|
|
|
|
|
/** @brief Put saves into separate directory */
|
|
|
|
bool use_saves_folder;
|
2023-10-10 21:12:53 +02:00
|
|
|
|
|
|
|
/** @brief Enable Background music */
|
|
|
|
bool bgm_enabled;
|
|
|
|
|
|
|
|
/** @brief Enable Sounds */
|
|
|
|
bool sound_enabled;
|
|
|
|
|
|
|
|
/** @brief Enable rumble feedback */
|
|
|
|
bool rumble_enabled;
|
2023-07-11 18:00:18 +02:00
|
|
|
} settings_t;
|
2023-02-24 15:24:59 +01:00
|
|
|
|
2023-12-21 19:58:30 +01:00
|
|
|
|
2023-11-10 17:39:09 +01:00
|
|
|
/** @brief The settings to load */
|
2023-07-16 13:13:02 +02:00
|
|
|
void settings_load (settings_t *settings);
|
2023-11-10 17:39:09 +01:00
|
|
|
/** @brief The settings to save */
|
2023-07-16 13:13:02 +02:00
|
|
|
void settings_save (settings_t *settings);
|
2023-02-24 15:24:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|