Added DDS (Direct Draw Surface) file type.

ver1_5_1
Chris Laurel 2002-03-05 01:34:35 +00:00
parent 90ee154ee7
commit 9fdca94a82
2 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -23,6 +23,7 @@ enum ContentType {
Content_CelestiaMesh = 8,
Content_AVI = 9,
Content_CelestiaCatalog = 10,
Content_DDS = 11,
Content_Unknown = -1,
};