mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-24 15:30:53 +00:00
Little bugfix
This commit is contained in:
parent
6d4b9502cb
commit
7630587279
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ DirBase::~DirBase()
|
||||||
|
|
||||||
File *DirBase::getFile(const char *fn)
|
File *DirBase::getFile(const char *fn)
|
||||||
{
|
{
|
||||||
|
while(fn[0] == '.' && fn[1] == '/')
|
||||||
|
fn += 2;
|
||||||
|
|
||||||
const char *slashpos = strchr(fn, '/');
|
const char *slashpos = strchr(fn, '/');
|
||||||
if(!slashpos)
|
if(!slashpos)
|
||||||
return getFileByName(fn, true);
|
return getFileByName(fn, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue