Skip to content

Commit

Permalink
bugfix: Use WHDLoad custom1-5 values if they are not zero (fixes #1328)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
midwan committed May 25, 2024
1 parent 9a87078 commit 8fe0a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdep/amiberry_whdbooter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8fe0a2e

Please sign in to comment.