Max Horn
7c510f2dfa
COMMON: Add Common::parseBool
...
svn-id: r48566
2010-04-06 09:27:13 +00:00
Max Horn
4bac9e1b75
COMMON: Cleanup ConfigManager code
...
* get rid of ConfigManager::_emptyString
* get rid of ConfigManager::Domain::get (use getVal instead)
* remove some dead code
svn-id: r48417
2010-03-29 20:31:23 +00:00
Max Horn
92c896d883
Patch #2973290 : Semicolon cleanup
...
svn-id: r48359
2010-03-22 20:28:08 +00:00
Johannes Schickel
a8d2c0de10
- Renamed SharedPtr<T>::Pointer to SharedPtr<T>::PointerType
...
- Introduced ReferenceType to SharedPtr and ScopedPtr
svn-id: r48337
2010-03-20 20:25:12 +00:00
Johannes Schickel
2a2cfe7ab0
Style fixes / cleanup.
...
svn-id: r48336
2010-03-20 20:16:16 +00:00
Vladimir Menshakov
abdfbafa45
added ScopedPtr template
...
svn-id: r48334
2010-03-20 20:01:44 +00:00
Johannes Schickel
e117783379
Some style fixes.
...
svn-id: r48313
2010-03-20 13:18:47 +00:00
Johannes Schickel
5c1a63026e
Remove unused stdarg.h include.
...
svn-id: r48312
2010-03-20 13:00:23 +00:00
Johannes Schickel
794fcf0170
Sort object files.
...
svn-id: r48311
2010-03-20 12:57:12 +00:00
Johannes Schickel
38b2b3c04f
Move StringTokenizer to its own files (tokenizer.h/tokenizer.cpp).
...
svn-id: r48310
2010-03-20 12:56:56 +00:00
Johannes Schickel
a0f90fd603
Add common/util.h include to common/algorithm.h for SWAP.
...
This should fix the compilation with clang++, see bug report
#2971226 "COMMON: Compile error - SWAP undeclared in algorithm.h".
svn-id: r48307
2010-03-20 12:13:37 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
30c84d2cff
COMMON: Move tag2str from util.h to str.h
...
svn-id: r48281
2010-03-18 15:07:48 +00:00
Max Horn
3e63df5415
COMMON: Move port specific '#define fputs' from util.cpp to textconsole.cpp
...
svn-id: r48280
2010-03-18 15:07:30 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Johannes Schickel
40562798d6
Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
...
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.
svn-id: r48254
2010-03-13 21:55:49 +00:00
Fabio Battaglia
23cf40db2b
Add a comment to document my removal of stream delete in previous commit
...
svn-id: r48155
2010-02-28 14:40:40 +00:00
Fabio Battaglia
d1e7fcbe75
do not delete the stream twice in makeZipArchive as it's already deleted by unzOpen if a problem is encountered
...
svn-id: r48154
2010-02-28 14:33:22 +00:00
Max Horn
cdf847408b
Update Common::KeyState comments
...
svn-id: r48120
2010-02-23 22:50:28 +00:00
Yotam Barnoy
ef330ed9b4
Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
...
svn-id: r48101
2010-02-21 04:04:13 +00:00
Max Horn
0a13162073
cleanup
...
svn-id: r48041
2010-02-13 11:57:01 +00:00
Max Horn
8ac5d00d57
Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
...
svn-id: r48040
2010-02-13 11:56:30 +00:00
Max Horn
ba1d97211f
Remove last traces of File::addDefaultDirectory
...
svn-id: r48027
2010-02-09 22:37:13 +00:00
Nicola Mettifogo
62741adf23
Merged _headers and _filemap.
...
svn-id: r48012
2010-02-09 01:07:39 +00:00
Max Horn
584a58fbce
Reduce header interdependencies
...
svn-id: r48010
2010-02-08 21:51:36 +00:00
Max Horn
b3da11ba8a
Introduce factory function makeArjArchive, hide ArjArchive class implementation
...
svn-id: r48009
2010-02-08 21:46:50 +00:00
Nicola Mettifogo
56bf7a20d3
Renamed ArjFile to ArchiveMan, and _arj to _archives.
...
svn-id: r48000
2010-02-08 18:17:32 +00:00
Nicola Mettifogo
0aefdb7826
Moved ArjFile to drascula.
...
svn-id: r47999
2010-02-08 17:48:35 +00:00
Nicola Mettifogo
16438e5c4d
Fix trunk after fscking up.
...
svn-id: r47998
2010-02-08 16:56:04 +00:00
Nicola Mettifogo
29c4c30a25
Made ArjFile use a new ArjArchive class.
...
svn-id: r47997
2010-02-08 16:15:05 +00:00
Nicola Mettifogo
8f6352f5bb
Objectified CRC32 calculator.
...
svn-id: r47996
2010-02-08 16:14:42 +00:00
Nicola Mettifogo
2df073bb68
Shuffled code around a bit.
...
svn-id: r47995
2010-02-08 16:14:23 +00:00
Nicola Mettifogo
b658c61155
Let ArjFile return a SeekableReadStream instead of implementing
...
the same interface itself. The caller is now responsible for
deleting the returned streams.
svn-id: r47994
2010-02-08 16:14:04 +00:00
Johannes Schickel
5278b82f33
Slight formatting fixes to comply to our coding guidelines.
...
svn-id: r47744
2010-01-31 10:22:09 +00:00
Johannes Schickel
676bebe2be
- Call the special debug channels "channels" consistently. (Formerly sometimes they were refered to as "levels").
...
- Along with it add some more descriptive commentary about what is the intention behind debug channels.
svn-id: r47727
2010-01-30 19:23:00 +00:00
Johannes Schickel
64491356b8
Fix virtual-keyboard not changing size, when the user changes the scaler while it is not visible.
...
svn-id: r47544
2010-01-25 02:08:28 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Jordi Vilalta Prat
0d2a75c75d
Fix indentation
...
svn-id: r47499
2010-01-24 12:19:09 +00:00
Eugene Sandulenko
80ee1de8e4
Move Mac Binary resource loader to common class. Plug tons of memory leaks along the way.
...
svn-id: r47258
2010-01-11 20:41:07 +00:00
Max Horn
0cf53b025d
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
...
svn-id: r47180
2010-01-08 22:07:35 +00:00
Johannes Schickel
0849da9564
Fix documentation for setMouseCursor's format paramenter.
...
svn-id: r47173
2010-01-08 20:15:42 +00:00
Johannes Schickel
71b4b3dcba
- Adapt documentation, that keycolor in setMouseCursor may not exceed the maximum color value of the specified format.
...
- Change SDL backend to assert out on invalid keycolor values
In case we really need a way to specify "no keycolor" we need to
discuss on how to do it *properly*.
svn-id: r47123
2010-01-07 15:28:58 +00:00
Marcus Comstedt
40f9506163
The default keycolor for mouse pointers used to be 255.
...
This makes sense as a default for CLUT8 modes, but not really
for anything else. As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode. However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether. Engines which relied
on the old default of 255 have been updated to specify it explicitly.
svn-id: r47118
2010-01-07 15:07:36 +00:00
Filippos Karapetis
f7855e1c07
Implemented the same fix for tag2string() as in commit #44920 , thereby fixing an assert in MSVC with the QT player when playing Myst. The parameter passed to isprint() should always be unsigned
...
svn-id: r46989
2010-01-04 20:57:38 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +00:00
Eugene Sandulenko
eed7635297
Sort language list (and showing that Lure is really broken).
...
svn-id: r46932
2010-01-03 16:33:03 +00:00
Eugene Sandulenko
d10fc79836
Add support for Chinese translated games.
...
svn-id: r46805
2009-12-31 18:52:42 +00:00
Matthew Hoops
85787988a0
Remove the getBeginOffset() hack from Common::SeekableReadStream and introduce QTPlayer::setChunkBeginOffset() to allow specifying what offset to use.
...
svn-id: r46786
2009-12-31 00:37:40 +00:00
Max Horn
b0e02675e7
Get rid of Common::String::emptyString, and also of some port specific hackery (getting rid of certain global C++ objs)
...
svn-id: r46781
2009-12-30 23:01:36 +00:00