Marco Costa
f1a1639c8c
Auto-detect locale on first run
2017-04-08 22:39:19 -04:00
David CARLIER
d50a1592fa
Prevent double allocations of string allocated config values
...
Prevent double allocations of string allocated config values since they can be set by default and then set again by reading the config file.
2017-03-28 10:32:22 +02:00
duncanspumpkin
76c154a567
Fix #5285 . Config file not read correctly.
...
When the hashing function finds a collision such as on play_intro and auto_staff_placement it has to do a string compare to find out if two map entries are different. Due to a mistype this comparison would always return true. This meant that the auto_staff_placement value would overwrite the play_intro value. Mistake caused when fixing previous bug
2017-03-08 20:32:21 +00:00
LRFLEW
8e55b6ef22
Make the INI keys case insensitive
2017-03-06 09:22:44 -06:00
Joël Troch
8167ff9678
Fix #1730 : Add keyboard shortcuts for track construction ( #5200 )
2017-03-03 09:35:42 +01:00
Michał Janiszewski
3b3f0b2e6b
Return actual instead of default value in IniReader::GetString
2017-02-24 23:39:01 +01:00
Michał Janiszewski
58da1cde84
Make IniReader not throw while parsing invalid values
2017-02-24 20:26:49 +01:00
Michał Janiszewski
1784543e14
Set default first section to true
2017-02-23 23:26:39 +01:00
Michał Janiszewski
9c32cb3a62
Don't break on too short INI streams
2017-02-23 23:26:39 +01:00
Ted John
9ba51f221b
Add summary comments
2017-02-22 18:00:19 +00:00
Ted John
40eb2c55fd
Reduce duplicated code in IniReader
2017-02-22 17:58:50 +00:00
Ted John
d72ced4ea9
Remove final from struct
2017-02-22 17:54:37 +00:00
Ted John
4dc792bc1d
Use IStream for IniReader and IniWriter
2017-02-22 17:52:33 +00:00
Ted John
6e9d22e99d
Use hpp for header files
...
...as they contain C++ implementation code.
2017-02-22 17:46:10 +00:00
Ted John
a9ffe5bf6d
Convert tabs to spaces in KeyboardShortcuts.cpp
2017-02-21 12:11:19 +00:00
Ted John
80c4e4309d
Remove duplicate entries and in wrong enum
2017-02-20 20:04:05 +00:00
Ted John
a473740efd
Fix build errors
2017-02-19 21:41:36 +00:00
Ted John
87be032adc
Space out sections when writing config.ini
2017-02-19 21:37:06 +00:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
Ted John
4457749b35
Move keyboard shortcut loading to C++
2017-02-18 15:30:54 +00:00
Ted John
6bda8eba0f
Move remaining config functions to C++
2017-02-18 15:16:19 +00:00
Ted John
87e3a8f8b0
Move config enums to more suitable places
2017-02-18 14:51:35 +00:00
Ted John
6a2b7b1200
Start moving config definitions over to C++
2017-02-18 10:54:13 +00:00
Ted John
bd6d31fed6
Write config fields
2017-02-18 10:17:26 +00:00
Ted John
23fef54b14
Implement IniWriter
2017-02-18 10:17:26 +00:00
Ted John
2fc5012670
Fix build errors
2017-02-18 10:17:26 +00:00
Ted John
0542338d4d
Use interface for config enum
2017-02-18 10:17:26 +00:00
Ted John
d8fae61e0c
Add remaining config reading
2017-02-18 10:17:26 +00:00
Ted John
aee1222829
Read more config
2017-02-18 10:17:26 +00:00
Ted John
6f15fc2cee
Refactor config reading to different files
2017-02-18 10:17:26 +00:00
Ted John
a582cc0cca
Add support for config enums
2017-02-18 10:17:26 +00:00
Ted John
3255a1b88c
Support reading quoted strings
2017-02-18 10:17:26 +00:00
Ted John
f8f60a69a7
Implement reading of config values
2017-02-18 10:17:26 +00:00
Ted John
d5ee210797
Begin writing IniReader
2017-02-18 10:17:26 +00:00