src/settings_func.h
author Tero Marttila <terom@fixme.fi>
Fri, 18 Jul 2008 22:41:08 +0300
changeset 11177 6d9a43c48924
parent 10790 9f507561b6a5
permissions -rw-r--r--
set the GRFConfig's next ptr to NULL
2186
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 1739
diff changeset
     1
/* $Id$ */
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 1739
diff changeset
     2
8704
2857ec554839 (svn r11771) -Codechange: split settings.h into better separated headers.
rubidium
parents: 8627
diff changeset
     3
/** @file settings_func.h Functions related to setting/changing the settings. */
3115
1f4949f5dc5d (svn r3719) - [1/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This first part rewrites the configuration section to use the SaveLoad VarType in general.
Darkvater
parents: 3020
diff changeset
     4
8704
2857ec554839 (svn r11771) -Codechange: split settings.h into better separated headers.
rubidium
parents: 8627
diff changeset
     5
#ifndef SETTINGS_FUNC_H
2857ec554839 (svn r11771) -Codechange: split settings.h into better separated headers.
rubidium
parents: 8627
diff changeset
     6
#define SETTINGS_FUNC_H
3888
7a781a439c30 (svn r4944) Codechange: make _patches_newgame available via settings.h and remove instances of extern Patches _patches_newgame in .c files
rubidium
parents: 3584
diff changeset
     7
10790
9f507561b6a5 (svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium
parents: 10727
diff changeset
     8
void IConsoleSetPatchSetting(const char *name, const char *value);
9f507561b6a5 (svn r13341) -Codechange: make most of the network settings configurable via the patch command.
rubidium
parents: 10727
diff changeset
     9
void IConsoleSetPatchSetting(const char *name, int32 value);
1739
4f3082735fbc (svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
Darkvater
parents: 759
diff changeset
    10
void IConsoleGetPatchSetting(const char *name);
6925
dc349ff2d657 (svn r9565) -Feature: Add list_patches console command. This shows all patches along with their current values. Based on patch by madman2003/GrimRC.
peter1138
parents: 6916
diff changeset
    11
void IConsoleListPatches();
1739
4f3082735fbc (svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
Darkvater
parents: 759
diff changeset
    12
8627
448ebf3a8291 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents: 8397
diff changeset
    13
void LoadFromConfig();
448ebf3a8291 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents: 8397
diff changeset
    14
void SaveToConfig();
448ebf3a8291 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents: 8397
diff changeset
    15
void CheckConfig();
448ebf3a8291 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents: 8397
diff changeset
    16
8704
2857ec554839 (svn r11771) -Codechange: split settings.h into better separated headers.
rubidium
parents: 8627
diff changeset
    17
#endif /* SETTINGS_FUNC_H */