aboutsummaryrefslogtreecommitdiff
path: root/calibrate_client.c
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-02-27 20:52:26 -0500
committerJoshua Allen <axlecrusher@gmail.com>2017-02-27 20:52:26 -0500
commite8d696e03128242be33eb0734addee645e894635 (patch)
treec099479bef1f196e8bf96cb6a25d4bbecf6ba601 /calibrate_client.c
parentf78983a584768a54503535be0366b07c97738299 (diff)
downloadlibsurvive-e8d696e03128242be33eb0734addee645e894635.tar.gz
libsurvive-e8d696e03128242be33eb0734addee645e894635.tar.bz2
basic config can be written to file
Diffstat (limited to 'calibrate_client.c')
-rw-r--r--calibrate_client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calibrate_client.c b/calibrate_client.c
index 25b6303..897c9e0 100644
--- a/calibrate_client.c
+++ b/calibrate_client.c
@@ -10,6 +10,8 @@
#include "src/survive_cal.h"
#include <DrawFunctions.h>
+#include "src/survive_config.h"
+
struct SurviveContext * ctx;
void HandleKey( int keycode, int bDown )
@@ -152,6 +154,12 @@ int main()
CNFGDialogColor = 0x444444;
CNFGSetup( "Survive GUI Debug", 640, 480 );
OGCreateThread( GuiThread, 0 );
+
+ config_init();
+ config_set_str(&global_config_values, "Hello","World!");
+ const char *s = config_read_str(&global_config_values, "TestStr","This is a test.");
+ printf("%s\n", s);
+ config_save("config.json");
if( !ctx )