From c8b04398b60aa0594c86e301ee093a3e9cc948f9 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 27 Jul 2017 15:35:49 +0200 Subject: [PATCH] The configuration parser now detects the old p55r2p4 typo and silently corrects it to p55t2p4, ensuring that previous configurations do not break. --- src/config.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config.c b/src/config.c index bc3d84ba2..105274cbb 100644 --- a/src/config.c +++ b/src/config.c @@ -873,7 +873,14 @@ static void loadconfig_machine(void) p = config_get_string(cat, "model", NULL); if (p != NULL) + { model = model_get_model_from_internal_name(p); + /* Detect the old model typo and fix it, so that old configurations don't braek. */ + if (strcmp(model, "p55r2p4") == 0) + { + model[3] = 't'; + } + } else model = 0; if (model >= model_count())