Bryan Schumaker
da118b2281
libsaria: Switch to the new OutFile() class
...
The new class is more convenient to work with since it's the output
stream with my save protocol built in. I should have done this earlier!
2011-12-25 22:34:12 -05:00
Bryan Schumaker
5877d3ac4a
libsaria: Created a new OutFile() class
...
Similar to how I created a new InFile() class. The new one can be used
directly as a stream, only it has my save file protocol stuff built in.
2011-12-25 22:21:11 -05:00
Bryan Schumaker
6794ce15e5
libsaria: Return ifstream reference from operator>>
...
This allows me to chain calls to the same stream, cleaning up the code.
2011-12-25 22:20:04 -05:00
Bryan Schumaker
d39536d7d0
libsaria: Completely replace old InFile() class
...
My InFile2() class is clearer and simpler, so I've replaced InFile()
with it.
2011-12-25 21:24:02 -05:00
Bryan Schumaker
5e308202a0
libsaria: Create a new way to save files
...
I inherit from the ifstream class, so I can override the insertion
operator for string handling. I can then use templates to save
everything else.
2011-12-25 21:16:09 -05:00
Bryan Schumaker
f7d7d5e038
libsaria: Add floats as preferenc type
...
Now I can store floating point numbers in addition to booleans.
2011-12-23 22:03:31 -05:00
Bryan Schumaker
958020f270
libsaria: Check stream status before reading
...
If we are unable to open the preferences file we shouldn't try to read
from it. This led to a segmentation fault when compiled in release
mode, but for some reason it worked when compiled in debug mode?
2011-11-09 17:28:19 -05:00
Bryan Schumaker
b6f21d5705
libsaria: Added preferences
...
Right now I only store boolean values, but I think I've coded this in a
way to make adding new values easy.
2011-11-07 08:30:53 -05:00