Commit Graph
25 Commits
Author SHA1 Message Date
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
md5 51136ac4ae SWORD25: Marked more functions as unused 2011-05-05 22:00:52 +03:00
Filippos Karapetis c63ff39a7f SWORD25: Resources are now cleaned up correctly
The original checked the total amount of memory occupied by all resources. This has been
changed to a maximum number of simultaneous resources instead, so the game resources
are no longer leaked. Also disabled the unused or debug functions getUsedMemory(), 
setMaxMemoryUsage(), setMaxMemoryUsage(), isLogCacheMiss(), setLogCacheMiss(). Performed
some cleanup on code related to the above.

svn-id: r55594
2011-01-28 16:54:55 +00:00
Filippos Karapetis a2f9600179 SWORD25: Disabled the mechanism which precaches all of the game's resources on startup.
This reduced the initial memory used by 100MB for me, though the game keeps allocating
new resources in each scene without deleting them, because of the missing functionality in
getUsedMemory(). This change also slightly reduces the loading time on game startup.

svn-id: r55593
2011-01-28 16:13:12 +00:00
Filippos Karapetis 1250785822 SWORD25: Replaced BS_ASSERT() with assert()
svn-id: r55464
2011-01-23 15:01:24 +00:00
Max Horn a783285625 SWORD25: Simplify FS 'wrapper' code a bit, add FIXME comments
The save system of this engine currently partially bypasses the
SaveFileManager API, by (abusing) the fact that the Lua engine allows
creating files in arbitrary places (it exposes fopen, fread, fwrite
etc.). This is used to create a 'config.lua' configuration file. This makes it non-portable.

In addition, the filenames used for the savestates ("0.b25s") do not
comply with our naming conventions for engine savestates.

It should be possible to overcome all this, but it might require hacking
the Lua engine; or we could try to replace some of the BS2.5 script
functions with our own, dynamically.

svn-id: r53838
2010-10-25 23:19:39 +00:00
Max Horn e761f76653 SWORD25: Get rid of most of the 'kernel service/superclass' code
svn-id: r53835
2010-10-25 22:41:25 +00:00
Max Horn 90dcc8c91a SWORD25: Get rid of classes ScummVMWindow and Window
svn-id: r53832
2010-10-25 21:51:11 +00:00
Eugene Sandulenko 6629efc676 SWORD25: Enforced code formatting rules in rest of the engine
svn-id: r53626
2010-10-19 21:03:33 +00:00
Torbjörn Andersson 9744167adc SWORD25: Fix infinite recursion
If I understand this, we don't need to call Kernel::GetInstance()
when we are already in the Kernel class. In this particular case,
_RegisterScriptBindings() is called from the Kernel constructor, so
it gets called again and again because _Instance hasn't yet been set.

svn-id: r53512
2010-10-15 20:01:13 +00:00
Max Horn 550073ee04 SWORD25: Do not use Kernel::GetService directly anymore
svn-id: r53477
2010-10-15 12:18:19 +00:00
Max Horn 02322c562c SWORD25: Get rid of Kernel::GetMicroTicks()
svn-id: r53403
2010-10-13 10:41:30 +00:00
Eugene Sandulenko 54ccc8f4c9 SWORD25: Enforced code naming conventions in script/*
svn-id: r53391
2010-10-13 00:08:28 +00:00
Eugene Sandulenko 086f5961b6 SWORD25: unsigned int -> uint
svn-id: r53309
2010-10-12 23:30:00 +00:00
Eugene Sandulenko b01994a53b SWORD25: removed BS_ prefix from rest of the classes.
The things which are intentionally left with the prefix:
BS_LOG, BS_ASSERT, BS_Rect, BS_String.

svn-id: r53261
2010-10-12 22:59:01 +00:00
Eugene Sandulenko be44216e5c SWORD25: eliminated BS_ prefix in all but kernel/
svn-id: r53259
2010-10-12 22:55:59 +00:00
Eugene Sandulenko ad5b74c9de SWORD25: Clean compile!
Under MinGW, with OpenGL and tinyxml.

svn-id: r53225
2010-10-12 22:38:23 +00:00
Eugene Sandulenko 47904bc7b2 SWORD25: Mass-astyle.
svn-id: r53222
2010-10-12 22:35:55 +00:00
Paul Gilbert 2d8e94e4ff SWORD25: Converted Lua interface classes
svn-id: r53195
2010-10-12 22:16:21 +00:00
Eugene Sandulenko 6a55700935 SWORD25: Removed leftover include references
svn-id: r53192
2010-10-12 22:14:33 +00:00
Eugene Sandulenko 11b485122c SWORD25: get rid of custom md5.cpp and Windows-specific debug stuff
All version ID generation is useless for ScummVM as we have our own clear
versions. Thus removing all of that.

svn-id: r53191
2010-10-12 22:14:14 +00:00
Eugene Sandulenko 293bf95c01 SWORD25: Replacing headers with ScummVM ones plus original (C)
svn-id: r53188
2010-10-12 22:13:00 +00:00
Eugene Sandulenko 69b618a8f5 SWORD25: Compilation fixes
Majority of files now compile under Windoze.

svn-id: r53182
2010-10-12 21:54:21 +00:00
Eugene Sandulenko e8bca8b8fe SWORD25: Fixed rest of the include paths
svn-id: r53181
2010-10-12 21:52:41 +00:00
Eugene Sandulenko a683a420a9 SWORD25: Importing original sources
svn-id: r53171
2010-10-12 21:38:20 +00:00