PeterN
9fa1984ef0
Codechange: IniGroup::GetItem() can now be const. ( #10966 )
1 year ago
PeterN
64d6ad50f9
Codechange: Split GetItem with GetOrCreateItem. ( #10952 )
...
`IniGroup::GetItem()` returns nullptr if the item does not exist, but does not if the create parameter is set to true. Resolve CodeQL warnings with `GetOrCreateItem()` which returns a reference to the item instead.
1 year ago
Rubidium
68ff3fd062
Change: include fmt.h C++ headers in stdafx.h
...
This to prevent compilation issues between runs with and without precompiled
headers. Also remove the headers from the rest of the code base as they are
not needed there anymore, although they do relatively little harm.
1 year ago
Patric Stout
75b6051b7a
Change: move sensitive information to secrets.cfg and private information to private.cfg
...
We often ask people for their openttd.cfg, which now includes their
passwords, usernames, etc. It is easy for people to overlook this,
unwillingly sharing information they shouldn't.
By splitting this information over either private.cfg or secrets.cfg,
we make it more obvious they shouldn't be sharing those files, and
hint to what is inside them.
3 years ago
rubidium42
a032714dc4
Codechange: move script settings to std::string
3 years ago
Michael Lutz
358056ec42
Codechange: Keep filenames of loaded Fio files in std::strings.
4 years ago
Michael Lutz
dd138fc460
Codechange: Stringify config file paths.
4 years ago
frosch
484ea62a62
Cleanup: use std::optional instead of custom implementation.
4 years ago
Michael Lutz
715aa67a9c
Codechange: Use std::string in INI file parsing.
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
rubidium
8960939b22
(svn r26499) -Codechange: replace strndup with stredup
11 years ago
rubidium
05300a00b1
(svn r22824) -Codechange: pass sub directory to ini loading
13 years ago
alberth
fa9c193539
(svn r22170) -Add: Add IGT_SEQUENCE type for loading ini group lines without further interpretation.
14 years ago
alberth
6a88af662b
(svn r22169) -Add: Add parameter to disable automatic group creation in IniLoadFile::GetGroup().
14 years ago
alberth
722296e797
(svn r22168) -Codechange: Move ini file IO and file error reporting to virtual functions.
14 years ago
alberth
d19a9f5df5
(svn r22167) -Codechange: Extract IniLoadFile base class for loading ini files out of IniFile.
14 years ago
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
14 years ago
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
peter1138
7d70f0cd14
(svn r15085) -Fix (r14164): Clearing a settings group did not delete old items nor reset the last_item pointer, causing lists to not be saved unless they started blank.
16 years ago
rubidium
621a9b647a
(svn r14167) -Fix: items in some ini-groups got duplicated on save.
16 years ago
rubidium
411c65e755
(svn r14164) -Codechange: simplify and unify the addition of ini items with value when not loading an ini file.
...
-Fix: wrong insertion management causing leaks.
16 years ago
smatz
0d4e7f9537
(svn r14156) -Fix (r14153): missing/wrong comments
16 years ago
rubidium
ae32d158cb
(svn r14153) -Codechange: split ini file reading/saving from settings.cpp.
16 years ago