Add settings

Plot Windows, log level, emoji, hints
This commit is contained in:
mwalker33
2020-04-10 13:52:50 +10:00
parent 40d2a3c072
commit 430ca985d3
5 changed files with 164 additions and 113 deletions

View File

@@ -8,29 +8,13 @@
//-----------------------------------------------------------------------------
// Settings Functions
//-----------------------------------------------------------------------------
#ifndef settings_h
#define settings_h
#ifndef SETTINGS_H_
#define SETTINGS_H_
#include "fileutils.h"
#define settingsFilename "settings.json"
typedef struct {
bool loaded;
char version[20];
bool os_windows_usecolor;
bool os_windows_useansicolor;
int window_xpos;
int window_ypos;
int window_hsize;
int window_wsize;
bool use_emojis;
bool use_hints;
} settings_t;
// Settings struct so as to be available to other modules by including settings.h
settings_t mySettings;
int settings_load (void);
int settings_save (void);