7 Commits

Author SHA1 Message Date
Martin Natano f79830e7af Fix typo in IniFile.WriteFile() error handling 2022-02-06 15:31:31 +01:00
Renan Guilherme 1b12bd32b7 _fallback: INI sections must start with brackets (#2127)
Previously, IniFile.ReadFile created sections by checking for brackets
anywhere in the line, causing issues if a value had brackets. This
commit changes the section matching regex, so that only lines that
begin with a bracket can become sections.
2021-07-16 02:31:27 -07:00
Dan Guzek 666cdb40bd IniFile fix: checking for false ~= checking for nil
false is a perfectly valid setting for one of SM's ini files.  The code here needs to ensure that both the key (string) and the value (string, numeric, boolean) read from file exist.  It would previously halt if the value was set to false.  This fixes that by explicitly checking for nil.
2015-04-06 21:01:52 -04:00
Kyzentun 9381276fd3 Changed ScreenSelectMusic and Song to look for preview.ogg and use it for a sample if it exists instead of the music file. Sample length still comes from simfile. Changed foreach_ordered to work on tables with string and number keys. 2015-03-01 15:40:16 -07:00
Flameshadowxeroshin 4db3e51a03 patch IniFile's Lua implementation to have # comment support. Could potentially be breaking, but I'm unaware of any INI files that try to use tags that start with #. 2013-01-27 00:02:35 -06:00
AJ Kelly 1fe62b3960 silence 'switching section to' log thing in IniFile 2012-01-07 18:14:05 -06:00
AJ Kelly cad748aebf move IniFile up to ring 01, ThemePrefs/ThemePrefsRows up to ring 02 2011-12-29 12:16:05 -06:00