Subversion Repositories tpanel

Rev

Rev 297 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 297 Rev 330
Line 199... Line 199...
199
SkString GetResourcePath(const char* resource, _RESOURCE_TYPE rs)
199
SkString GetResourcePath(const char* resource, _RESOURCE_TYPE rs)
200
{
200
{
201
    if (!resource)
201
    if (!resource)
202
        return SkString();
202
        return SkString();
203
 
203
 
204
    if (*resource == '/')       // absolute path?
204
//    if (*resource == '/')       // absolute path?
-
 
205
    if (strstr(resource, "/") != NULL && !endsWith(resource, "/"))
205
    {                           // yes, then take it as it is
206
    {                           // yes, then take it as it is
206
        return SkString(resource);
207
        return SkString(resource);
207
    }
208
    }
208
 
209
 
209
    string pth;
210
    string pth;