|
|
|
@ -804,7 +804,7 @@ int openttd_main(int argc, char *argv[])
|
|
|
|
|
if (sounds_set == nullptr && BaseSounds::ini_set != nullptr) sounds_set = stredup(BaseSounds::ini_set);
|
|
|
|
|
if (!BaseSounds::SetSet(sounds_set)) {
|
|
|
|
|
if (StrEmpty(sounds_set) || !BaseSounds::SetSet(nullptr)) {
|
|
|
|
|
usererror("Failed to find a sounds set. Please acquire a sounds set for OpenTTD. See section 4.1 of README.md.");
|
|
|
|
|
usererror("Failed to find a sounds set. Please acquire a sounds set for OpenTTD. See section 1.4 of README.md.");
|
|
|
|
|
} else {
|
|
|
|
|
ErrorMessageData msg(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_BASE_SOUNDS_NOT_FOUND);
|
|
|
|
|
msg.SetDParamStr(0, sounds_set);
|
|
|
|
@ -817,7 +817,7 @@ int openttd_main(int argc, char *argv[])
|
|
|
|
|
if (music_set == nullptr && BaseMusic::ini_set != nullptr) music_set = stredup(BaseMusic::ini_set);
|
|
|
|
|
if (!BaseMusic::SetSet(music_set)) {
|
|
|
|
|
if (StrEmpty(music_set) || !BaseMusic::SetSet(nullptr)) {
|
|
|
|
|
usererror("Failed to find a music set. Please acquire a music set for OpenTTD. See section 4.1 of README.md.");
|
|
|
|
|
usererror("Failed to find a music set. Please acquire a music set for OpenTTD. See section 1.4 of README.md.");
|
|
|
|
|
} else {
|
|
|
|
|
ErrorMessageData msg(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_BASE_MUSIC_NOT_FOUND);
|
|
|
|
|
msg.SetDParamStr(0, music_set);
|
|
|
|
|