Skip to content

Commit

Permalink
Fix DefaultAssetResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygusev committed Sep 9, 2013
1 parent df518b0 commit badd041
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ public IFile resolve(final String path, IFile relativeTo) throws AssetException
@Override
public String getFileName(String fileName, String fileExtension)
{
return path;
int lastIndexOfDash = fileName.lastIndexOf('/');

if (lastIndexOfDash <= 0)
{
return path;
}

return fileName.substring(0, lastIndexOfDash) + '/' + path;
}
});

Expand Down

0 comments on commit badd041

Please sign in to comment.