Skip to content

Commit

Permalink
FS|libcore: Modifying File flags more conveniently
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 19, 2017
1 parent 81eea37 commit cfc8d00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libcore/include/de/filesys/file.h
Expand Up @@ -293,6 +293,8 @@ class DENG2_PUBLIC File : public filesys::Node, public IIOStream, public IObject
*/
virtual void setMode(Flags const &newMode);

void setMode(Flags flags, FlagOpArg op);

/**
* Makes sure that the file has write access.
*/
Expand Down
5 changes: 5 additions & 0 deletions doomsday/sdk/libcore/src/filesys/file.cpp
Expand Up @@ -293,6 +293,11 @@ void File::setMode(Flags const &newMode)
}
}

void File::setMode(Flags flags, FlagOpArg op)
{
applyFlagOperation(d->mode, flags, op);
}

Record &File::objectNamespace()
{
return d->info;
Expand Down

0 comments on commit cfc8d00

Please sign in to comment.