Mercurial > repos > blastem
diff controller_info.c @ 2018:193b804c9845
Add a UI button to reset config to defaults
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Nov 2020 00:29:47 -0800 |
parents | 8a64d86cc362 |
children | a8af8d898a7c |
line wrap: on
line diff
--- a/controller_info.c Sat Nov 07 18:27:34 2020 -0800 +++ b/controller_info.c Mon Nov 09 00:29:47 2020 -0800 @@ -224,6 +224,15 @@ #endif } +void delete_controller_info(void) +{ + delete_custom_config_at("controller_types.cfg"); + loaded = 0; + tern_free(info_config); + info_config = NULL; + render_reset_mappings(); +} + char const *labels_xbox[] = { "A", "B", "X", "Y", "Back", NULL, "Start", "Click", "Click", "White", "Black", "LT", "RT" };