now it should work I have forgotten set_font_list
This commit is contained in:
parent
4ca21247f4
commit
a04e817e38
1 changed files with 6 additions and 2 deletions
|
@ -280,8 +280,12 @@ void set_font_list(const std::vector<subset_descriptor>& fontlist)
|
|||
// Insert fonts only if the font file exists
|
||||
if(game_config::path.empty() == false) {
|
||||
if(!file_exists(game_config::path + "/fonts/" + itor->name)) {
|
||||
WRN_FT << "Failed opening font file '" << itor->name << "': No such file or directory\n";
|
||||
continue;
|
||||
if(!file_exists("fonts/" + itor->name)) {
|
||||
if(!file_exists(itor->name)) {
|
||||
WRN_FT << "Failed opening font file '" << itor->name << "': No such file or directory\n";
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(!file_exists("fonts/" + itor->name)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue