comparison controller_info.c @ 2215:a8af8d898a7c

Fix windows build for real
author Michael Pavone <pavone@retrodev.com>
date Tue, 30 Aug 2022 00:13:55 -0700
parents 193b804c9845
children 58774a77f2e0
comparison
equal deleted inserted replaced
2214:7591c67b8d1e 2215:a8af8d898a7c
1 #include <string.h> 1 #include <string.h>
2 #include <stdlib.h> 2 #include <stdlib.h>
3 #include "render.h"
3 #ifndef USE_FBDEV 4 #ifndef USE_FBDEV
4 #include "render_sdl.h" 5 #include "render_sdl.h"
5 #endif 6 #endif
6 #include "controller_info.h" 7 #include "controller_info.h"
7 #include "config.h" 8 #include "config.h"
202 existing = tern_insert_ptr(existing, "subtype", strdup(subtype_names[info->subtype])); 203 existing = tern_insert_ptr(existing, "subtype", strdup(subtype_names[info->subtype]));
203 existing = tern_insert_ptr(existing, "variant", strdup(variant_names[info->variant])); 204 existing = tern_insert_ptr(existing, "variant", strdup(variant_names[info->variant]));
204 info_config = tern_insert_node(info_config, guid_string, existing); 205 info_config = tern_insert_node(info_config, guid_string, existing);
205 persist_config_at(config, info_config, "controller_types.cfg"); 206 persist_config_at(config, info_config, "controller_types.cfg");
206 handle_joy_added(joystick); 207 handle_joy_added(joystick);
207 #endif 208 #endif
208 } 209 }
209 210
210 void save_controller_mapping(int joystick, char *mapping_string) 211 void save_controller_mapping(int joystick, char *mapping_string)
211 { 212 {
212 #ifndef USE_FBDEV 213 #ifndef USE_FBDEV