Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1900:93960907807a | 1901:5433252329fb |
---|---|
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 #include "tern.h" | 6 #include "tern.h" |
7 #include "util.h" | 7 #include "util.h" |
8 #include "paths.h" | 8 #include "paths.h" |
9 #include "config.h" | |
9 #include <stdio.h> | 10 #include <stdio.h> |
10 #include <stdlib.h> | 11 #include <stdlib.h> |
11 #include <string.h> | 12 #include <string.h> |
12 | 13 |
13 #ifdef __MINGW64_VERSION_MAJOR | 14 #ifdef __MINGW64_VERSION_MAJOR |
332 return systems; | 333 return systems; |
333 } | 334 } |
334 | 335 |
335 tern_node *get_model(tern_node *config, system_type stype) | 336 tern_node *get_model(tern_node *config, system_type stype) |
336 { | 337 { |
337 char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR); | 338 char *model = tern_find_path_default(config, "system\0model\0", (tern_val){.ptrval = "md1va3"}, TVAL_PTR).ptrval; |
338 return tern_find_node(get_systems_config(), model); | 339 return tern_find_node(get_systems_config(), model); |
339 } | 340 } |