Added some basic but needed verbose warnings

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2256 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2006-02-23 23:47:55 +00:00
parent ec6780e322
commit 472ccf7ad8
+9
View File
@@ -447,6 +447,9 @@ static int parseFont(mg_font_t* fnt, const char* key)
*fnt = drv->loadFont(name, size, name); *fnt = drv->loadFont(name, size, name);
if (!*fnt)
mg_verbose(1, "Warning: cannot load font '%s'\n", name);
return *fnt != NULL; return *fnt != NULL;
} }
@@ -581,6 +584,10 @@ static star_image_t* loadStarImages(const char* key, const char* colors, int siz
img->hot.x = r.w / 2; img->hot.x = r.w / 2;
img->hot.y = r.h / 2; img->hot.y = r.h / 2;
} }
else
{
mg_verbose(1, "Warning: cannot load image '%s'\n", name);
}
} }
sprintf(buf, "%s.color", starkey); sprintf(buf, "%s.color", starkey);
@@ -974,6 +981,8 @@ static soi_t* loadSois(const char* key, int count, script_t* scr)
sprintf(buf, "%s.%d.%s", key, i, "font.size"); sprintf(buf, "%s.%d.%s", key, i, "font.size");
fntsize = scr_GetFloatDef(buf, scr->soifontsize) / 64.0; fntsize = scr_GetFloatDef(buf, scr->soifontsize) / 64.0;
soi->font = drv->loadFont(scr->soifont, fntsize, scr->soifont); soi->font = drv->loadFont(scr->soifont, fntsize, scr->soifont);
if (!soi->font)
mg_verbose(1, "Warning: cannot load font '%s'\n", scr->soifont);
} }
return tab; return tab;