Added CelestiaCatalog file type.

ver1_5_1
Chris Laurel 2002-01-08 02:55:50 +00:00
parent 89b5498534
commit 6f7869ff05
2 changed files with 14 additions and 10 deletions

View File

@ -23,6 +23,7 @@ static const string PNGExt(".png");
static const string ThreeDSExt(".3ds");
static const string CelestiaTextureExt(".ctx");
static const string CelestiaMeshExt(".cms");
static const string CelestiaCatalogExt(".ssc");
static const string AVIExt(".avi");
@ -49,6 +50,8 @@ ContentType DetermineFileType(const string& filename)
return Content_CelestiaTexture;
else if (compareIgnoringCase(CelestiaMeshExt, ext) == 0)
return Content_CelestiaMesh;
else if (compareIgnoringCase(CelestiaCatalogExt, ext) == 0)
return Content_CelestiaCatalog;
else if (compareIgnoringCase(AVIExt, ext) == 0)
return Content_AVI;
else

View File

@ -13,16 +13,17 @@
#include <string>
enum ContentType {
Content_JPEG,
Content_BMP,
Content_GIF,
Content_PNG,
Content_Targa,
Content_CelestiaTexture,
Content_3DStudio,
Content_CelestiaMesh,
Content_AVI,
Content_Unknown
Content_JPEG = 1,
Content_BMP = 2,
Content_GIF = 3,
Content_PNG = 4,
Content_Targa = 5,
Content_CelestiaTexture = 6,
Content_3DStudio = 7,
Content_CelestiaMesh = 8,
Content_AVI = 9,
Content_CelestiaCatalog = 10,
Content_Unknown = -1,
};
ContentType DetermineFileType(const std::string& filename);