Commit Graph
145 Commits
Author SHA1 Message Date
Eugene Sandulenko fb7095f5a4 COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Paweł Kołodziejski 3081c362c6 SWORD25: Fixed warning - restored to previous code 2022-05-29 20:53:32 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Alexandre Detiste 6044504762 JANITORIAL: typos
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
D G Turner b3a09db38b SWORD25: Fix GCC Format Truncation Warnings 2021-07-01 03:29:01 +01:00
Thanasis Antoniou f68d0d7d36 SWORD25: Convert ANSI source files to UTF-8
Gets rid of VS Studio's warnings about illegal characters
2020-04-18 10:24:22 +03:00
Bastien Bouclet c115c33b1f SWORD25: Add override keywords 2020-02-09 12:43:16 +01:00
Eugene Sandulenko 59aede6228 SWORD25: Fix bug #6981: High CPU usage on one core
The game loop is implemented in Lua, and there are no delays.
Now we wait 10ms on each event pulling, as we always do.
2016-02-21 22:53:26 +01:00
RichieSams a188b31d15 SWORD25: Use new lua serialization functions to persist state 2014-12-30 13:42:45 -06:00
Adrian Astley 91571387d1 SWORD25: Bump the save file version number
Since the previous commit breaks saves for 32 bit binaries
2014-09-12 17:05:53 -05:00
Johannes Schickel bad7cdd3a6 SWORD25: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Eugene Sandulenko ae6f205b93 SWORD25: Fix potential buffer overrun. CID 1003865 2013-10-08 00:11:18 +03:00
Eugene Sandulenko 7a669b770f SWORD25: Specifying int size to make Amiga happy 2013-09-29 09:45:16 +03:00
Eugene Sandulenko 2a2a5e51c6 SWORD25: Fix Amiga compilation 2013-09-29 09:30:23 +03:00
Eugene Sandulenko 08c010b8df SWORD25: Further fixes for Amiga compilation 2013-09-28 22:58:10 +03:00
Eugene Sandulenko 4552f5196b SWORD25: Fix Amiga compilation 2013-09-28 22:26:54 +03:00
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