From 8fe0a2e3a460c65b74e00cee186f79f1b9737602 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sat, 25 May 2024 14:04:19 +0200 Subject: [PATCH] bugfix: Use WHDLoad custom1-5 values if they are not zero (fixes #1328) Since we always set the default value to zero, this should be safe to use. Apparently some games do not have some custom fields set, but still use them if specified (e.g. BattleIsle) --- src/osdep/amiberry_whdbooter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdep/amiberry_whdbooter.cpp b/src/osdep/amiberry_whdbooter.cpp index 56c1f7e3c..685959db7 100644 --- a/src/osdep/amiberry_whdbooter.cpp +++ b/src/osdep/amiberry_whdbooter.cpp @@ -1162,7 +1162,7 @@ void create_startup_sequence() // CUSTOM options for (int i = 1; i <= 5; ++i) { auto& custom = whdload_prefs.selected_slave.get_custom(i); - if (custom.type != none && custom.value != 0) { + if (custom.value != 0) { whd_bootscript << " CUSTOM" << i << "=" << custom.value; } }