Solve the logo-loading problem.
Turned out to be two minor bugs, one masking the other.
This commit is contained in:
parent
65847965f4
commit
a1e59fa6d1
3 changed files with 10 additions and 1 deletions
BIN
images/misc/logo.png
Normal file
BIN
images/misc/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
|
@ -1071,13 +1071,22 @@ const std::vector<std::string>& get_binary_paths(const std::string& type)
|
|||
std::string get_binary_file_location(const std::string& type, const std::string& filename)
|
||||
{
|
||||
const std::vector<std::string>& paths = get_binary_paths(type);
|
||||
//std::cerr << "Looking for " << filename << " in '.' ";
|
||||
if(file_exists(filename) || is_directory(filename)) {
|
||||
//std::cerr << "\n";
|
||||
return filename;
|
||||
}
|
||||
|
||||
for(std::vector<std::string>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
|
||||
const std::string file = *i + filename;
|
||||
//std::cerr << "'" << *i << "' ";
|
||||
if(file_exists(file) || is_directory(file)) {
|
||||
//std::cerr << "\n";
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
||||
//std::cerr << "\n";
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace game_config
|
|||
#endif
|
||||
bool debug = false, editor = false, ignore_replay_errors = false, mp_debug = false, exit_at_end = false, no_delay = false, disable_autosave = false;
|
||||
|
||||
std::string game_icon = "wesnoth-icon.png", game_title, game_logo, title_music;
|
||||
std::string game_icon = "icons/wesnoth-icon.png", game_title, game_logo, title_music;
|
||||
int title_logo_x = 0, title_logo_y = 0, title_buttons_x = 0, title_buttons_y = 0, title_buttons_padding = 0,
|
||||
title_tip_x = 0, title_tip_width = 0, title_tip_padding = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue