beos: remap resource:favicon.ico to favicon.png
We don't use it yet though.
This commit is contained in:
parent
3c5317cf54
commit
f8517f2e51
12
beos/gui.cpp
12
beos/gui.cpp
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue