Christoph Mallon
75efdd2d84
JANITORIAL: Replace (x ? false : true) by !(x).
2012-03-13 15:43:36 +01:00
Eugene Sandulenko
18cbb63cba
SWORD25: Removed custom endianness code in persistence code
...
This is first step towards making saves portable. Binary footprint
left intact, so the saves are compatible.
2011-07-10 18:11:00 +03:00
Eugene Sandulenko
15a16e556c
SWORD25: Implement persistence functions for soundengine
...
Now sound is properly saved/restored. Implemented savegame versioning.
Compatibility with old saves pertained.
2011-06-29 17:16:25 +03:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Alyssa Milburn
7b03a6e604
SWORD25: Fix making multiple saves at the same time.
...
This adds a missing seek. Thanks to [md5] for guessing the cause.
2011-05-26 13:23:25 +02:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Max Horn
55e7ef1e08
SWORD25: Remove obsolete FORBIDDEN_SYMBOL_ALLOW_ALL defines
2011-05-23 19:48:14 +02:00
Max Horn
fb31fa2d6a
SWORD25: Name the random source
2011-05-17 12:17:28 +02:00
eriktorbjorn
7557cbd617
SWORD25: Fix format string warning.
2011-05-14 15:09:03 +02:00
md5
5b488e4c79
SWORD25: Stop linking directly against zlib.
...
Also, don't compress game data in newer saves, as the whole saved game is
compressed anyway
2011-05-13 23:06:53 +03:00
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
md5
0ef807146e
SWORD25: Remove thumbnails from the cache when saving a new game
2011-05-05 20:14:21 +03:00
md5
921030f4ef
SWORD25: Initial code for showing savegame thumbnails
...
There is currently a bug and only the thumbnail of the first save slot is
shown
2011-05-05 18:33:22 +03:00
md5
a428835b38
SWORD25: Removed the saved game filename from the savegame meta info struct
2011-05-05 13:33:39 +03:00
md5
68118bdf7a
SWORD25: Added some FIXMEs in the save game and thumbnail code
...
Also, translated some comments
2011-05-05 12:54:32 +03:00
Johannes Schickel
b2693c81ec
SWORD25: Fix compilation, caused by zlib.h including unistd.h
2011-05-02 17:19:54 +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
a762173794
SWORD25: Always create the MoviePlayer, even without USE_THEORADEC.
2011-04-14 18:45:45 +02:00
Filippos Karapetis
832cfddf34
SWORD25: Cache related changes
...
- Increase the resource cache limits
- Added a check before forcing resources to be freed
- Only force free image and animation resources, with a warning. It seems like there is
a bug in the resource reference code and several bitmap resources are not freed - added
a FIXME
- Clarify that initializeAnimationResource() is used with XML resources
svn-id: r55736
2011-02-02 19:32:04 +00:00
Filippos Karapetis
a4a09ac284
SWORD25: Added a cache minimum and maximum limit, so that the resources loaded will always be inside these limits. Resources can now be forcefully unlocked when the upper limit is reached
...
svn-id: r55722
2011-02-02 15:35:05 +00:00
Filippos Karapetis
5978d8f63d
SWORD25: Marked several unused LUA callbacks as dummy functions. Some cleanup.
...
svn-id: r55597
2011-01-28 17:29:08 +00:00
Filippos Karapetis
7ed5a92823
SWORD25: Removed some more unused/unimplemented debug code
...
svn-id: r55595
2011-01-28 17:02:02 +00: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
1f1cb1f140
SWORD25: Removed the logErrorLn and logWarningLn wrappers
...
svn-id: r55488
2011-01-24 00:03:09 +00:00
Filippos Karapetis
1250785822
SWORD25: Replaced BS_ASSERT() with assert()
...
svn-id: r55464
2011-01-23 15:01:24 +00:00
Filippos Karapetis
00a0f8d15d
SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
...
svn-id: r55462
2011-01-23 14:49:50 +00:00
Max Horn
5d2b77899f
SWORD25: Fix warning: deref type-punned pointer breaks strict-aliasing rules
...
svn-id: r54550
2010-11-28 21:33:02 +00:00
Max Horn
2180b2d6b5
COMMON: Split common/stream.h into several headers
...
svn-id: r54385
2010-11-19 17:03:07 +00:00
Johannes Schickel
2c042c263b
SWORD25: Comment out unused static variable.
...
svn-id: r53909
2010-10-28 22:45:15 +00:00
Paul Gilbert
b53d12da23
SWORD25: Standardised savegame filenames, start on advanced engine features
...
svn-id: r53901
2010-10-28 09:51:56 +00:00
Max Horn
b2fa7e58a3
SWORD25: Start to rename read/write methods of *PersistenceBlock classes
...
All should be renamed to reduce risk of accidental incorrect use.
svn-id: r53899
2010-10-28 00:26:25 +00:00
Max Horn
cf3551525f
SWORD25: Get rid of CallbackRegistry
...
svn-id: r53898
2010-10-28 00:25:33 +00:00
Max Horn
ed0de8462d
SWORD25: Add FIXME about savegame names; cleanup
...
svn-id: r53839
2010-10-25 23:34:12 +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
Max Horn
518526ba2f
SWORD25: Remove some dead code; cleanup
...
svn-id: r53760
2010-10-24 01:53:32 +00:00
Max Horn
fa0151683c
SWORD25: Replace ResourceManager's hash table by a Common::HashMap
...
svn-id: r53759
2010-10-24 01:53:01 +00:00
Max Horn
48d15398e5
SWORD25: Get rid of kernel/string.h
...
svn-id: r53758
2010-10-24 01:52:27 +00:00
Paul Gilbert
14e82dbe7f
SWORD25: Added description field to savegames
...
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did.
svn-id: r53638
2010-10-20 11:11:09 +00:00
Paul Gilbert
66ecd08868
SWORD25: Fix to correctly write game state to savegame files
...
svn-id: r53637
2010-10-20 10:53:50 +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
Eugene Sandulenko
bbd95da899
SWORD25: Fix engine exit when running without theoradec
...
svn-id: r53622
2010-10-19 20:52:06 +00:00
Max Horn
4caa1d40a8
SWORD25: Simplify log listener code (and get rid of another global constructor)
...
svn-id: r53610
2010-10-19 09:44:48 +00:00
Max Horn
d6b7ebab16
SWORD25: Some code cleanup
...
svn-id: r53608
2010-10-19 09:44:13 +00:00
Max Horn
ddf0a3d80c
SWORD25: Move BS_ServiceInfo to service_ids.h and turn it into a POD struct
...
svn-id: r53607
2010-10-19 09:43:53 +00:00
Max Horn
88bca8e13d
SWORD25: Optimize ReverseArray, move it to only place it is used
...
svn-id: r53606
2010-10-19 09:43:31 +00:00
Paul Gilbert
355032d4f9
SWORD25: Fix cppcheck warnings in BS_Log::LogPrefix
...
The LogPrefix method isn't currently used, but I'm fixing it just in case it's ever used again
svn-id: r53602
2010-10-19 08:12:04 +00:00