Skip to content

Commit

Permalink
Fixed|FS: Seemingly misplaced assert
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 4, 2019
1 parent 6913072 commit 6f1ec48
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/libs/core/src/filesys/nativepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,18 @@ NativePath NativePath::homePath()

bool NativePath::exists(NativePath const &nativePath)
{
DE_ASSERT(!nativePath.fileName().isEmpty());
// DE_ASSERT(!nativePath.fileName().isEmpty());
// if (nativePath.fileName().isEmpty())
// {
// return fileExistsCStr_FileInfo(nativePath.endOmitted().toString());
// }
return fileExistsCStr_FileInfo(nativePath);
}

void NativePath::createPath(NativePath const &nativePath) // static
{
DE_ASSERT(!nativePath.fileName().isEmpty());

NativePath parentPath = nativePath.fileNamePath();
if (!parentPath.isEmpty() && !exists(parentPath))
{
Expand Down

0 comments on commit 6f1ec48

Please sign in to comment.