30 Commits

Author SHA1 Message Date
Torbjörn Andersson
bcb4c49a03 Cleanup.
svn-id: r50924
2010-07-16 03:14:03 +00:00
Johannes Schickel
5bb4fadc4c Fix change in r49356, Common::strlcpy should only be used on zero terminated source strings.
The original code change with r49086 did only aimed at zero terminating
the szFilename string (as the comment suggests), so I now changed it
to use memcpy and a manual placement of the terminating zero.

svn-id: r49357
2010-05-31 18:05:39 +00:00
David Turner
d1da820a75 Fix for DW2 engine abort with message "Cannot find file hienergy.sc!".
Bug introduced by r49086 change which could trim the last character of filenames.

svn-id: r49356
2010-05-31 15:16:46 +00:00
Johannes Schickel
62717eafc4 Replace some strncpy usages with Common::strlcpy.
svn-id: r49086
2010-05-18 18:16:47 +00:00
Max Horn
f103f01284 TINSEL: Change cdGraphStream to a Common::File pointer,
to not rely on global constructors

svn-id: r48765
2010-04-21 21:23:08 +00:00
Max Horn
f692015301 Got rid of ReadStream::ioFailed()
svn-id: r46379
2009-12-15 08:18:57 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
4b681f7ec7 TINSEL: Add some debugging code; fix LockMem() regression
svn-id: r45430
2009-10-27 00:38:41 +00:00
Max Horn
79734dbc15 TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics
svn-id: r45428
2009-10-27 00:37:54 +00:00
Max Horn
05508d8dcd TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn
6c1c9eda3a TINSEL: Make MEM_NODE internal to heapmem.cpp
svn-id: r45418
2009-10-26 20:38:34 +00:00
Max Horn
d2e64a350a TINSEL: cleanup
svn-id: r45417
2009-10-26 20:36:44 +00:00
Max Horn
6591010f66 TINSEL: Further untangle memory managment.
* Add new function MemoryNoAlloc
* Make MemoryAlloc private
* Get rid of params to various memory related functions

svn-id: r45409
2009-10-26 16:01:34 +00:00
Max Horn
b9534216ed TINSEL: Remove MemoryHandle(), some unneeded #includes and the return value of MemoryReAlloc()
svn-id: r45408
2009-10-26 16:01:12 +00:00
Max Horn
e963dfbd17 TINSEL: Remove dead stuff from memory managment code, doxygenify some comments
svn-id: r45402
2009-10-26 10:41:28 +00:00
Max Horn
bbe0b81aff TINSEL: Remove DWM_FIXED and add new MemoryAllocFixed() function
svn-id: r45401
2009-10-26 10:41:11 +00:00
Max Horn
240f230c1e TINSEL: Cleanup
svn-id: r45398
2009-10-26 10:40:16 +00:00
Max Horn
3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Max Horn
dbf968b49e TINSEL: Don't use ioFailed to check if a file was opened succesfuly
svn-id: r42468
2009-07-14 08:36:06 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Fabio Battaglia
6143da7cea tinsel: Discworld PSX uses "index.dat" as scene index file, not "index"
svn-id: r40878
2009-05-25 07:42:01 +00:00
Paul Gilbert
86debbd679 Added code to enable Discworld 2 to play directly from the CD (only the first CD - Cd swap still doesn't work) or from files copied to the hard disk without the .smp/txt/idx files being properly renamed (again only for the first Cd).
svn-id: r40141
2009-04-25 06:42:01 +00:00
Max Horn
7714b20abf TINSEL: cleanup
svn-id: r39617
2009-03-22 23:02:09 +00:00
Max Horn
f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
af945ac788 Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 should be completable
svn-id: r35196
2008-12-01 20:35:36 +00:00
Max Horn
bc2ec5afde Got rid of some typedefs
svn-id: r33235
2008-07-23 10:27:24 +00:00
Max Horn
c441c5261f Added Tinsel engine to main repos (no news item for it ON PURPOSE)
svn-id: r33230
2008-07-23 09:02:47 +00:00