2020-04-05 18:36:39 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Settings Functions
|
|
|
|
//-----------------------------------------------------------------------------
|
2020-04-12 11:07:25 +08:00
|
|
|
#ifndef PREFERENCES_H_
|
|
|
|
#define PREFERENCES_H_
|
2020-04-05 18:36:39 +08:00
|
|
|
|
|
|
|
#include "fileutils.h"
|
|
|
|
|
2020-04-13 10:12:47 +08:00
|
|
|
// Current working directory will be prepended.
|
2020-04-12 11:07:25 +08:00
|
|
|
#define preferencesFilename "preferences.json"
|
2020-04-06 14:20:57 +08:00
|
|
|
|
2020-04-12 11:07:25 +08:00
|
|
|
int CmdPreferences (const char *Cmd);
|
|
|
|
int preferences_load (void);
|
|
|
|
int preferences_save (void);
|
2020-04-06 14:20:57 +08:00
|
|
|
|
2020-04-12 11:07:25 +08:00
|
|
|
void preferences_save_callback (json_t *root);
|
|
|
|
void preferences_load_callback (json_t *root);
|
2020-04-05 18:36:39 +08:00
|
|
|
|
2020-04-06 14:20:57 +08:00
|
|
|
#endif
|