2001-11-27 18:50:04 -07:00
|
|
|
// configfile.h
|
|
|
|
//
|
|
|
|
// Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
#ifndef _CONFIGFILE_H_
|
|
|
|
#define _CONFIGFILE_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2006-11-20 03:59:12 -07:00
|
|
|
#include <celengine/parser.h>
|
2007-12-08 14:05:59 -07:00
|
|
|
#include <celengine/star.h>
|
2019-08-15 13:21:22 -06:00
|
|
|
#include <celcompat/filesystem.h>
|
2001-11-27 18:50:04 -07:00
|
|
|
|
2006-11-20 03:59:12 -07:00
|
|
|
|
|
|
|
class CelestiaConfig
|
2001-11-27 18:50:04 -07:00
|
|
|
{
|
2006-11-20 03:59:12 -07:00
|
|
|
public:
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path starDatabaseFile;
|
|
|
|
fs::path starNamesFile;
|
|
|
|
std::vector<fs::path> solarSystemFiles;
|
|
|
|
std::vector<fs::path> starCatalogFiles;
|
|
|
|
std::vector<fs::path> dsoCatalogFiles;
|
|
|
|
std::vector<fs::path> extrasDirs;
|
2020-07-21 08:26:21 -06:00
|
|
|
std::vector<fs::path> skipExtras;
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path deepSkyCatalog;
|
|
|
|
fs::path asterismsFile;
|
|
|
|
fs::path boundariesFile;
|
2001-11-27 18:50:04 -07:00
|
|
|
float faintestVisible;
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path favoritesFile;
|
|
|
|
fs::path initScriptFile;
|
|
|
|
fs::path demoScriptFile;
|
|
|
|
fs::path destinationsFile;
|
2001-11-27 18:50:04 -07:00
|
|
|
std::string mainFont;
|
|
|
|
std::string labelFont;
|
|
|
|
std::string titleFont;
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path logoTextureFile;
|
2003-12-04 11:35:26 -07:00
|
|
|
std::string cursor;
|
2003-02-17 17:58:15 -07:00
|
|
|
std::vector<std::string> ignoreGLExtensions;
|
2002-10-22 11:26:51 -06:00
|
|
|
float rotateAcceleration;
|
2004-01-04 11:17:21 -07:00
|
|
|
float mouseRotationSensitivity;
|
2006-07-06 15:20:53 -06:00
|
|
|
bool reverseMouseWheel;
|
2017-03-04 07:05:41 -07:00
|
|
|
double orbitWindowEnd;
|
|
|
|
double orbitPeriodsShown;
|
|
|
|
double linearFadeFraction;
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path scriptScreenshotDirectory;
|
2004-06-10 07:50:29 -06:00
|
|
|
std::string scriptSystemAccessPolicy;
|
2006-11-20 03:59:12 -07:00
|
|
|
#ifdef CELX
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path luaHook;
|
2006-11-20 03:59:12 -07:00
|
|
|
Hash* configParams;
|
|
|
|
#endif
|
2004-03-15 11:42:35 -07:00
|
|
|
|
2019-08-15 13:21:22 -06:00
|
|
|
fs::path HDCrossIndexFile;
|
|
|
|
fs::path SAOCrossIndexFile;
|
|
|
|
fs::path GlieseCrossIndexFile;
|
2018-03-11 07:12:58 -06:00
|
|
|
|
2007-12-08 14:05:59 -07:00
|
|
|
StarDetails::StarTextureSet starTextures;
|
2004-09-09 01:34:50 -06:00
|
|
|
|
2004-03-15 11:42:35 -07:00
|
|
|
// Renderer detail options
|
|
|
|
unsigned int shadowTextureSize;
|
|
|
|
unsigned int eclipseTextureSize;
|
|
|
|
unsigned int orbitPathSamplePoints;
|
2004-07-26 10:58:29 -06:00
|
|
|
|
|
|
|
unsigned int aaSamples;
|
|
|
|
|
|
|
|
bool hdr;
|
2008-03-19 16:34:05 -06:00
|
|
|
|
|
|
|
unsigned int consoleLogRows;
|
2018-03-11 07:12:58 -06:00
|
|
|
|
2006-11-20 03:59:12 -07:00
|
|
|
Hash* params;
|
2018-03-11 07:12:58 -06:00
|
|
|
|
2006-11-20 03:59:12 -07:00
|
|
|
float getFloatValue(const std::string& name);
|
|
|
|
const std::string getStringValue(const std::string& name);
|
2018-11-22 12:52:34 -07:00
|
|
|
|
|
|
|
float SolarSystemMaxDistance;
|
2019-11-29 03:53:38 -07:00
|
|
|
unsigned ShadowMapSize;
|
2020-10-03 01:45:22 -06:00
|
|
|
|
2020-10-02 03:00:00 -06:00
|
|
|
std::string projectionMode;
|
2020-10-03 01:45:22 -06:00
|
|
|
std::string viewportEffect;
|
|
|
|
std::string warpMeshFile;
|
2021-09-27 19:40:38 -06:00
|
|
|
std::string measurementSystem;
|
2021-12-23 21:27:39 -07:00
|
|
|
std::string temperatureScale;
|
2018-12-24 13:14:22 -07:00
|
|
|
|
|
|
|
std::string x264EncoderOptions;
|
|
|
|
std::string ffvhEncoderOptions;
|
2001-11-27 18:50:04 -07:00
|
|
|
};
|
|
|
|
|
2019-08-15 13:21:22 -06:00
|
|
|
CelestiaConfig* ReadCelestiaConfig(const fs::path& filename, CelestiaConfig* config = nullptr);
|
2001-11-27 18:50:04 -07:00
|
|
|
|
|
|
|
#endif // _CONFIGFILE_H_
|