beos: remap resource:favicon.ico to favicon.png

We don't use it yet though.
This commit is contained in:
François Revol 2013-12-31 16:05:15 +01:00
parent 3c5317cf54
commit f8517f2e51
1 changed files with 9 additions and 3 deletions

View File

@ -352,10 +352,16 @@ nsurl *gui_get_resource_url(const char *path)
{
nsurl *url = NULL;
BString u("rsrc:///");
/* default.css -> beosdefault.css */
if (strcmp(path, "default.css") == 0)
u << "beosdefault.css";
else
u << path;
path = "beosdefault.css";
/* favicon.ico -> favicon.png */
if (strcmp(path, "favicon.ico") == 0)
path = "favicon.png";
u << path;
LOG(("(%s) -> '%s'\n", path, u.String()));
nsurl_create(u.String(), &url);
return url;