mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 13:48:38 +00:00
Dropped support for finding theme by name
This commit is contained in:
parent
0f28f82878
commit
fefffa93c4
@ -345,14 +345,6 @@ const config& controller_base::get_theme(const config& game_config, std::string
|
||||
if (const config &c = game_config.find_child("theme", "id", theme_name))
|
||||
return c;
|
||||
|
||||
// Themes created for version 1.11.9 and earlier use name= for
|
||||
// untranslatable ids.
|
||||
// TODO: remove support for this in 1.13.x (1.13.2?).
|
||||
if (const config &c = game_config.find_child("theme", "name", theme_name)) {
|
||||
ERR_DP << "Theme '" << theme_name << "' uses [theme] name= instead of id= to specify its id; this usage is deprecated and will be removed in version 1.13.x." << std::endl;
|
||||
return c;
|
||||
}
|
||||
|
||||
ERR_DP << "Theme '" << theme_name << "' not found. Trying the default theme." << std::endl;
|
||||
|
||||
if (const config &c = game_config.find_child("theme", "id", "Default"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user