diff config.c @ 1901:5433252329fb

Set version reg and TAS behavior based on model config
author Michael Pavone <pavone@retrodev.com>
date Sun, 16 Feb 2020 10:46:35 -0800
parents 93960907807a
children 193b804c9845
line wrap: on
line diff
--- a/config.c	Sun Feb 16 10:33:20 2020 -0800
+++ b/config.c	Sun Feb 16 10:46:35 2020 -0800
@@ -6,6 +6,7 @@
 #include "tern.h"
 #include "util.h"
 #include "paths.h"
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -334,6 +335,6 @@
 
 tern_node *get_model(tern_node *config, system_type stype)
 {
-	char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR);
+	char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR).ptrval;
 	return tern_find_node(get_systems_config(), model);
 }