From 91d94e46db96a135bfc834db7b80b45c95a13409 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 25 Jun 2014 15:27:10 +0000 Subject: [PATCH] Controller Config - when generating tabs and input widgets, iterate through the current controllers buttons rather than the buttons found in the config. This "trims" settings that aren't currently in use. I'm not confident that I didn't break something with this --- BizHawk.Client.EmuHawk/config/ControllerConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/config/ControllerConfig.cs b/BizHawk.Client.EmuHawk/config/ControllerConfig.cs index b9da7f4d77..b0e9279784 100644 --- a/BizHawk.Client.EmuHawk/config/ControllerConfig.cs +++ b/BizHawk.Client.EmuHawk/config/ControllerConfig.cs @@ -107,7 +107,7 @@ namespace BizHawk.Client.EmuHawk buckets[i] = new List(); } - foreach (var button in settings.Keys) + foreach (var button in controllerButtons) { int i; for (i = 1; i <= MAXPLAYERS; i++)