15 Commits

Author SHA1 Message Date
jp9000
ba7a078694 Revert "Add hack to fix ConfigFile ABI of last hack"
This reverts commit 8b6d936385f011b48958b14b4150dda24a811419.

Fixes a number of isses with ConfigFile, and prevents the hotkey thread
from potentially corrupting the config file.
2015-01-23 16:56:55 -08:00
jp9000
4c5be81734 Revert "Fix potential null pointer derefs with ConfigFile"
This reverts commit 6a6b0106d17d0ab147c20ae0e919cf1a2d657fe7.

Fixes a number of isses with ConfigFile, and prevents the hotkey thread
from potentially corrupting the config file.
2015-01-23 16:54:42 -08:00
jp9000
6a6b0106d1 Fix potential null pointer derefs with ConfigFile 2015-01-23 16:07:22 -08:00
jp9000
8b6d936385 Add hack to fix ConfigFile ABI of last hack
Because ConfigFile exposed the entire class to plugins, anything that
changes the class breaks ABI, and the last ConfigFile commit did just
that.  So this adds an additional hack to allow additional internal
variables without breaking ABI.  It changes the lpFileData in to a
variable that creates another internal variable structure as a rather
terrible hack for adding new internal variables.

So, what's the lesson?  Never expose anything you don't need to expose
unless you need maximum performance and its structure size will never
change.
2015-01-23 15:54:09 -08:00
Richard Stanway
3eb8e2d41f Add a horrible mutex to make ConfigFile thread-safe
Should hopefully fix random crashes and config corruption.
2015-01-19 22:50:10 +01:00
Richard Stanway
f29c0eafcb Make config file redundancy check case sensitive 2014-08-27 21:45:23 +02:00
Richard Stanway
21d953a007 Fix config values not saving properly under certain conditions 2014-08-27 21:42:36 +02:00
palana
698490d7fa Remove BOM when reading text files
This should restore pre-27e2e2f35ff780e1df79b034a00f025a6b7d1e44
behavior with regards to BOM accumulation in config files
2014-08-26 23:01:12 +02:00
Richard Stanway
e28b960dbf Fix temp file usage in XConfig::Save, add logging 2014-08-24 03:14:50 +02:00
Richard Stanway
3a36bec11a Avoid read/write I/O operations when values haven't changed
Add atomicity to the most common ConfigFile::SetKey path
2014-08-11 00:35:19 +02:00
Richard Stanway
73f68bdc3f Static analysis cleanups 2013-04-30 23:11:08 -04:00
Richard Stanway
bb82995268 Show error instead of crashing on corrupt .ini file 2012-12-06 03:45:03 -05:00
jim
71be2c937e file saving, advanced settings, bug fixes, cats and dogs living together... mass hysteria! 2012-09-26 19:54:42 -07:00
jim
f99d74d008 0.38a 2012-09-20 23:07:10 -07:00
jp9000
5b9e3b9dcb Initial commit 2012-08-30 21:54:15 -07:00