Added types for Celestia trajectories to DetermineFileType function.

ver1_6_1
Chris Laurel 2008-04-02 20:16:09 +00:00
parent f7bba01892
commit f86ba2b6dd
2 changed files with 8 additions and 1 deletions

View File

@ -34,7 +34,8 @@ static const string CelestiaLegacyScriptExt(".cel");
static const string CelestiaScriptExt(".clx");
static const string CelestiaScriptExt2(".celx");
static const string CelestiaModelExt(".cmod");
static const string CelestiaXYZTrajectoryExt(".xyz");
static const string CelestiaXYZVTrajectoryExt(".xyzv");
ContentType DetermineFileType(const string& filename)
{
@ -78,6 +79,10 @@ ContentType DetermineFileType(const string& filename)
return Content_CelestiaModel;
else if (compareIgnoringCase(DXT5NormalMapExt, ext) == 0)
return Content_DXT5NormalMap;
else if (compareIgnoringCase(CelestiaXYZTrajectoryExt, ext) == 0)
return Content_CelestiaXYZTrajectory;
else if (compareIgnoringCase(CelestiaXYZVTrajectoryExt, ext) == 0)
return Content_CelestiaXYZVTrajectory;
else
return Content_Unknown;
}

View File

@ -30,6 +30,8 @@ enum ContentType {
Content_CelestiaLegacyScript = 15,
Content_CelestiaModel = 16,
Content_DXT5NormalMap = 17,
Content_CelestiaXYZTrajectory = 18,
Content_CelestiaXYZVTrajectory = 19,
Content_Unknown = -1,
};