Pawel Kolodziejski
a4467bd1d0
convert residual into multi engine support (not all things done yet, WIP)
2009-05-25 19:21:58 +00:00
Pawel Kolodziejski
ba0576bc5e
put Vector3D and Matrix3/4 into Graphics namespace
2009-05-25 12:13:35 +00:00
Pawel Kolodziejski
8b8e7e07d2
added namespace Grim
2009-05-25 06:49:57 +00:00
Pawel Kolodziejski
ac7307728b
import some code from scummvm to allow implement later multi engine support
2009-05-24 21:31:05 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Pawel Kolodziejski
671e2be1c4
enhanced debug information of lua opcodes
2009-05-23 13:59:42 +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
42cd218400
Improved Common::Serializer in several ways:
...
* Added support versioned serialization
* Added a convenience API for handling 'magic IDs' transparently
* Exposed the err()/clearErr() methods of the underlying streams
* Added a basic unit test for versioned loading (more should be added, in particular for saving)
* Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size)
svn-id: r40723
2009-05-19 11:23:13 +00:00
Johannes Schickel
b2b08cc606
Typo.
...
svn-id: r40693
2009-05-18 16:00:15 +00:00
Pawel Kolodziejski
629ef9f84c
bring more code a bit for util.cpp/.h
2009-05-17 09:16:24 +00:00
Pawel Kolodziejski
390381c8aa
rename debugLevel to gDebugLevel
2009-05-17 08:33:52 +00:00
Eugene Sandulenko
a0a44ef498
Allow creation of KeyState with zero ascii value.
...
svn-id: r40501
2009-05-12 19:03:42 +00:00
Johannes Schickel
619d107ed7
Add more detailed error message for "Chunk overread" case.
...
svn-id: r40493
2009-05-12 15:06:20 +00:00
Johannes Schickel
fa0fe7fada
Typo.
...
svn-id: r40487
2009-05-12 13:56:09 +00:00
Filippos Karapetis
36c832d455
Added a startOffset parameter to hexdump() (used by SCI's own hexdump method)
...
svn-id: r40470
2009-05-12 07:07:17 +00:00
Eugene Sandulenko
665e472ef0
Keymapper:
...
- Introduced new OSystem method getHardwareKeySet() with default implementation
- Moved global keymap creation to base/main.cpp
- Moved GUI keymap creation to gui/GuiManager.cpp
- Added various safeguard checks to various keymapper methods
Now it is really possible to add keymapper to all backends.
svn-id: r40439
2009-05-10 22:05:04 +00:00
Max Horn
36818ced2a
Changed Common::Array::resize() to default init new array elements
...
svn-id: r40430
2009-05-10 19:17:11 +00:00
Eugene Sandulenko
7d79a092b5
Store global keymaps into a separate section
...
svn-id: r40427
2009-05-10 17:33:31 +00:00
Pawel Kolodziejski
f4da728479
sync
2009-05-09 12:27:15 +00:00
Pawel Kolodziejski
3bc0b2160c
sync with common scummvm dir, format headers
2009-05-09 11:12:35 +00:00
Max Horn
c91a6c97ae
Clarified docstring for String::insertChar
...
svn-id: r40382
2009-05-08 12:37:28 +00:00
Pawel Kolodziejski
db23b6cd79
update build files
2009-05-07 19:08:04 +00:00
Pawel Kolodziejski
7d633ceb2b
next set of backend changes
2009-05-07 19:06:31 +00:00
Max Horn
61dcaad888
COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
...
svn-id: r40326
2009-05-05 12:29:15 +00:00
Pawel Kolodziejski
d3326c21eb
update paths for recent move
2009-05-04 18:41:11 +00:00
Eugene Sandulenko
6a8a9740a1
Fix valgrind warning
...
svn-id: r40309
2009-05-04 16:35:47 +00:00
Max Horn
689511a56f
COMMON: Made Array::resize() init/zero the memory it allocates
...
svn-id: r40304
2009-05-04 15:04:39 +00:00
Max Horn
c33a875d9f
Fixed new[] / delete mismatch in Common::String
...
svn-id: r40302
2009-05-04 14:20:17 +00:00
Max Horn
6a632b51ad
COMMON: Optimized MemoryPool::freeUnusedPages (if many pages are phased out at once, don't copy everything multiple times around)
...
svn-id: r40292
2009-05-03 22:45:46 +00:00
Max Horn
882c24d2ee
COMMON: Check for failed memory allocations; changed Common::String to use new/delete instead of malloc/free
...
svn-id: r40291
2009-05-03 22:45:31 +00:00
Max Horn
9d970009a6
COMMON: Simplified Common::Stack methods using the recent Common::Array improvements
...
svn-id: r40267
2009-05-03 09:19:46 +00:00
Max Horn
4d57c1f9a9
COMMON: Changed Array::resize to not shrink the internal storage if we shrink the array
...
svn-id: r40262
2009-05-03 09:00:53 +00:00
Max Horn
f52a0df422
COMMON: Made Common::List::clear more efficient
...
svn-id: r40172
2009-04-28 10:23:26 +00:00
Max Horn
9a971c7d80
fixed a typo
...
svn-id: r40171
2009-04-28 10:23:08 +00:00
Max Horn
7f20f3bb3e
COMMON: Improved efficiency of some Common::List methods; added more unit tests and some doxygen comments for Common::List and Common::Array
...
svn-id: r40164
2009-04-27 14:25:16 +00:00
Max Horn
e579f91b5c
COMMON: Made sure Common::List and Common::array each have all front/back/push_back/push_front, as have their STL counterparts
...
svn-id: r40163
2009-04-27 14:23:20 +00:00
Max Horn
462e3bd49d
COMMON: Added Functor2Fun; fixed some typos
...
svn-id: r40160
2009-04-27 12:30:42 +00:00
Max Horn
84f0e1d986
COMMON: Added Common::List::front() and back() method (similar to std::list)
...
svn-id: r40154
2009-04-27 11:11:42 +00:00
Pawel Kolodziejski
93fb99b1df
dropped zbuffer option
2009-04-26 21:26:30 +00:00
Pawel Kolodziejski
3d72ad6b44
zlib -> libz
2009-04-26 18:36:59 +00:00
Pawel Kolodziejski
7516f36060
zlib -> libz
2009-04-26 18:36:05 +00:00
Torbjörn Andersson
7d4618d165
Fixed typo.
...
svn-id: r40121
2009-04-24 17:19:20 +00:00
Max Horn
b98f79fe12
COMMON: changed class StringList to a simple typedef; enhanced the Common::Array constructor which converts regular arrays to Array objects to be more flexible in its type (allows e.g. to assign an array of char* to a StringList
...
svn-id: r40077
2009-04-22 17:52:56 +00:00
Max Horn
7caad280d1
COMMON: Removed copy constructors / assignment operators in cases where they are identical to the automatically generated ones. Also removed a pointless 'explicit'
...
svn-id: r40049
2009-04-21 17:02:09 +00:00
Max Horn
78cf5a4ccf
COMMON & TESTS: Added new constructor to Array<T>, namely Array(const T* data, int n), which makes it possible to clone a regular array into a Common::Array; added a unit test for that and slightly extended existing Common::Array unit tests
...
svn-id: r40027
2009-04-20 19:27:11 +00:00
Pawel Kolodziejski
8d8266be0b
updated from scummvm to residual
2009-04-20 06:51:00 +00:00
Max Horn
7db2648ba0
COMMON: Added unit test for Common::List::size(); made List::size() slightly more efficient; same for remove() and operator=
...
svn-id: r39921
2009-04-11 00:29:34 +00:00
Max Horn
a1dc2ecc63
Rewrote Common::Rect::contains(Rect) to do what the name suggests (check whether one rect contains the other). Previously, foo.contains(foo) would return false. Added/enabled unit tets for this
...
svn-id: r39911
2009-04-09 17:08:09 +00:00
Pawel Kolodziejski
0bc7c9c81b
update makefiles
2009-04-05 15:47:18 +00:00
Pawel Kolodziejski
be3ddd600c
update rest scummvm common code with residual, and update engine code to that changes
2009-04-05 14:48:54 +00:00