Skip to content

Commit

Permalink
libdoomsday|Resources: Querying the data bundle format as a text string
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 11, 2017
1 parent 53a2818 commit 1b02ddc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -60,6 +60,7 @@ class LIBDOOMSDAY_PUBLIC DataBundle : public de::IByteArray
~DataBundle();

Format format() const;
de::String formatAsText() const;
de::String description() const;
de::File &asFile();
de::File const &asFile() const;
Expand Down
5 changes: 5 additions & 0 deletions doomsday/apps/libdoomsday/src/resource/databundle.cpp
Expand Up @@ -719,6 +719,11 @@ DataBundle::Format DataBundle::format() const
return d->format;
}

String DataBundle::formatAsText() const
{
return ::internal::formatDescriptions[d->format];
}

String DataBundle::description() const
{
if (!d->source)
Expand Down

0 comments on commit 1b02ddc

Please sign in to comment.