Alyssa Milburn
ace04a92a2
COMMON: Add ConfigFile::addSection function.
2013-04-19 00:22:07 +02:00
Johannes Schickel
b4d0a8ba66
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
2013-01-26 19:38:02 +01:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Johannes Schickel
164604805e
COMMON: Unbreak ConfigFile::renameSection.
...
It will still not work when the new section name is already taken, but at
at least when it is not taken it should work now.
2011-10-07 00:16:21 +02:00
Johannes Schickel
7f55737f9c
COMMON: Remove unused code in config-file.cpp.
2011-10-07 00:16:21 +02:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
Littleboy
b694a78f62
ANALYSIS: Add static casts to is* functions
...
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Alyssa Milburn
bcea996361
COMMON: Handle C++-style comments in config files
...
svn-id: r54868
2010-12-11 19:53:11 +00:00
Max Horn
651e2760a3
Fix spelling, cleanup
...
svn-id: r49843
2010-06-15 12:33:20 +00:00
Matthew Hoops
5f9febd1aa
Update comments to reflect the changes used for Mohawk.
...
svn-id: r46746
2009-12-30 14:55:33 +00:00
Eugene Sandulenko
fb8ecae7f1
Add Mohawk engine code. Part 2/3: common code changes.
...
svn-id: r46728
2009-12-29 23:20:23 +00:00
Max Horn
65b5d31814
COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
...
svn-id: r40725
2009-05-19 11:42:14 +00:00
Max Horn
7eaafd933f
Be paranoid about g_system being set
...
svn-id: r36131
2009-01-29 22:09:06 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
ad87f08192
Changed some code to use the new Stream::readLine() method
...
svn-id: r34318
2008-09-03 18:40:49 +00:00
Max Horn
57e724bfc3
Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; added a new alternate SeekableReadStream::readLine() instead
...
svn-id: r34315
2008-09-03 17:53:25 +00:00
Max Horn
e5f58ef5bf
Removed various uses of scumm_stricmp by the more readable String::equalsIgnoreCase and String:: compareToIgnoreCase
...
svn-id: r34198
2008-08-27 20:41:28 +00:00
Max Horn
0be985ce83
Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
...
svn-id: r33412
2008-07-29 16:09:10 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Gregory Montoir
1ce912e106
made rtrim() and ltrim() global functions, to reduce code duplication (it seems parallaction/parser.cpp code re-use them too
...
svn-id: r25564
2007-02-13 21:06:57 +00:00
Travis Howell
01c92cf6f5
Add support for reading/writing config files through saveGameManager and use for config files in HE games
...
svn-id: r22273
2006-05-02 03:23:03 +00:00
Max Horn
f26b55c7a3
Modified some error calls to explicitly name the function they occured in (this helps debugging)
...
svn-id: r22093
2006-04-23 11:15:43 +00:00
Max Horn
1470dadb1d
Changed File::open to take a Common::String as file name parameter
...
svn-id: r21867
2006-04-14 01:48:51 +00:00
Max Horn
9f93e5bb81
Renamed various container isEmpty() methods to empty() to match STL conventions
...
svn-id: r21472
2006-03-28 09:42:54 +00:00
Eugene Sandulenko
1eff73cb41
GUI widget positions:
...
o Add 'true' and 'false' constants
o add .visible widget property
o allow dots to be part of section and key names in configs
svn-id: r21123
2006-03-07 13:41:36 +00:00
Eugene Sandulenko
4c16b73bd1
o Properly react to end-of-file is loadFromStream()
...
o Add types SectionList and SectionKeyList
o Implement getKeys() method
svn-id: r21114
2006-03-07 02:23:37 +00:00
Travis Howell
d96713a857
Correct case of SPY Fox game titles
...
svn-id: r20687
2006-02-14 06:57:42 +00:00
Max Horn
36934b611d
Change CVS keywords to SVN keywords
...
svn-id: r20510
2006-02-11 09:53:53 +00:00
Max Horn
2f8dacd617
Clarified comment, cleanup
...
svn-id: r20111
2006-01-21 11:57:19 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Lars Persson
1c69696a9a
Patches needed to build for SYMBIAN32 WINS/GCC added.
...
Test built for Symbian and run on P910i without any major problems.
Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA).
svn-id: r18430
2005-06-21 22:08:21 +00:00
Max Horn
14f56887ea
Some C++ compilers don't support the 'not' keyword, it seems
...
svn-id: r17793
2005-04-24 22:41:21 +00:00
Travis Howell
43286fc880
Add additional check for comments with ().
...
Required for map.ini file included with mustard.
svn-id: r17783
2005-04-24 03:58:12 +00:00
Travis Howell
c318d82f01
The last section of config file was not saved, when loading config file.
...
Fix all string compares.
svn-id: r17781
2005-04-24 03:41:57 +00:00
Max Horn
a6b59c0be1
Implement some missing methods
...
svn-id: r17780
2005-04-23 22:28:37 +00:00
Max Horn
2cc5040a9a
Added new ConfigFile class. It is not yet used anywhere. ConfigManager will be rewritten around this class. Note that it is not final yet and may be revised in many ways.
...
svn-id: r17773
2005-04-23 14:30:53 +00:00
Max Horn
d177364715
new config manager. not everything is completed, and some things will still be changed, but it seems to work well enough to put it into CVS
...
svn-id: r10687
2003-10-08 21:59:23 +00:00
Max Horn
a0fb1850de
cleaned up iterator code in Map
...
svn-id: r10608
2003-10-05 14:02:37 +00:00
Max Horn
0e645f88ae
renamed namespace ScummVM to Common
...
svn-id: r10544
2003-10-02 17:43:02 +00:00
Max Horn
be9d4066e1
moved engine.* to base; this fixes some linking issues when building a barebone ScummVM (or maybe I just want to increase our CVS stats? <g>)
...
svn-id: r10287
2003-09-18 02:07:18 +00:00
Max Horn
0df319e952
#include cleanup (explicityl specify the location for headers from common/, so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level)
...
svn-id: r9359
2003-08-01 12:21:04 +00:00
Max Horn
72d6179c47
fixed ltrim/rtrim
...
svn-id: r7788
2003-05-21 16:48:25 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
6ce098172f
next pedantic cleanup code
...
svn-id: r6714
2003-03-06 16:27:06 +00:00