Added DDS (Direct Draw Surface) file type.
parent
90ee154ee7
commit
9fdca94a82
|
@ -8,6 +8,7 @@
|
|||
// of the License, or (at your option) any later version.
|
||||
|
||||
#include <cctype>
|
||||
#include <cstdlib>
|
||||
#include "util.h"
|
||||
#include "filetype.h"
|
||||
|
||||
|
@ -25,6 +26,7 @@ static const string CelestiaTextureExt(".ctx");
|
|||
static const string CelestiaMeshExt(".cms");
|
||||
static const string CelestiaCatalogExt(".ssc");
|
||||
static const string AVIExt(".avi");
|
||||
static const string DDSExt(".dds");
|
||||
|
||||
|
||||
ContentType DetermineFileType(const string& filename)
|
||||
|
@ -54,6 +56,8 @@ ContentType DetermineFileType(const string& filename)
|
|||
return Content_CelestiaCatalog;
|
||||
else if (compareIgnoringCase(AVIExt, ext) == 0)
|
||||
return Content_AVI;
|
||||
else if (compareIgnoringCase(DDSExt, ext) == 0)
|
||||
return Content_DDS;
|
||||
else
|
||||
return Content_Unknown;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ enum ContentType {
|
|||
Content_CelestiaMesh = 8,
|
||||
Content_AVI = 9,
|
||||
Content_CelestiaCatalog = 10,
|
||||
Content_DDS = 11,
|
||||
Content_Unknown = -1,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue