Commit Graph

5 Commits

Author SHA1 Message Date
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