summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-11 15:14:28 +0000
committeralberth <alberth@openttd.org>2010-12-11 15:14:28 +0000
commit997551c59979ace11e63451a7b81120610354241 (patch)
tree30e310ce7a56bcb3c817c96dcdb4a009feb3c056 /src/settings.cpp
parent23369337c1af635f479c1d1541601742f6285dd2 (diff)
downloadopenttd-997551c59979ace11e63451a7b81120610354241.tar.xz
(svn r21467) -Doc: Add a few doxygen comments to config file settings code.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index fa64abc73..1834fe72d 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -72,8 +72,8 @@
#include "table/settings.h"
ClientSettings _settings_client;
-GameSettings _settings_game;
-GameSettings _settings_newgame;
+GameSettings _settings_game; ///< Game settings of a running game or the scenario editor.
+GameSettings _settings_newgame; ///< Game settings for new games (updated from the intro screen).
VehicleDefaultSettings _old_vds; ///< Used for loading default vehicles settings from old savegames
char *_config_file; ///< Configuration file of OpenTTD
@@ -1237,6 +1237,11 @@ static bool ConvertOldNewsSetting(const char *name, const char *value)
return false;
}
+/**
+ * Load newstype settings from a configuration file.
+ * @param ini the configuration to read from.
+ * @param grpname Name of the group containing the news type settings.
+ */
static void NewsDisplayLoadConfig(IniFile *ini, const char *grpname)
{
IniGroup *group = ini->GetGroup(grpname);
@@ -1310,7 +1315,12 @@ static void AILoadConfig(IniFile *ini, const char *grpname)
#endif /* ENABLE_AI */
}
-/* Load a GRF configuration from the given group name */
+/**
+ * Load a GRF configuration
+ * @param ini The configuration to read from.
+ * @param grpname Group name containing the configuration of the GRF.
+ * @param is_static GRF is static.
+ */
static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_static)
{
IniGroup *group = ini->GetGroup(grpname);
@@ -1376,6 +1386,11 @@ static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_stati
return first;
}
+/**
+ * Write newstype settings to a configuration file.
+ * @param ini The configuration to write to.
+ * @param grpname Name of the group containing the news type settings.
+ */
static void NewsDisplaySaveConfig(IniFile *ini, const char *grpname)
{
IniGroup *group = ini->GetGroup(grpname);