Settings Added

This commit is contained in:
mwalker33
2020-04-10 15:04:11 +10:00
parent 070636f196
commit 1b8b8f0128
5 changed files with 143 additions and 112 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);