Commit Graph
66 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
Le Philousophe b7ef4078dc SWORD25: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +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
Thierry Crozat e0d3b05730 SWORD25: Fix running with non-extracted files
After loading or saving a game, the engine believed it was running
with extracted files, when then cause a crash when looking for
files in the PackageManager.

This fixes bug #12173
2021-02-21 21:09:02 +00:00
Thierry Crozat 233adb3cbd SWORD25: Fix crash in non-extracted version
This was a regression from commit 6d00724. The game was crashing
right at the start.
2020-10-07 11:45:24 +01:00
Eugene Sandulenko 010404a7f3 SWORD25: Process Windows paths in extracted version 2020-10-07 11:51:05 +02:00
Eugene Sandulenko fd556c9b80 SWORD25: Added debug output 2020-10-07 11:29:33 +02:00
Eugene Sandulenko 6d0072475f SWORD25: Make the extracted version working
Our FSDirectory Archive behaviour differs from other Archive-based
classes such as Zip. It returns only files, while the archivers
return whole paths. Thus, we have to use custom code for pattern-based
queries which Lua code uses extensively
2020-10-07 01:40:03 +02: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 dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Filippos Karapetis b966286b17 SWORD25: Fix signed/unsigned warning 2016-05-22 16:28:42 +03:00
Thierry Crozat 90a86fd39c SWORD25: Add engine option to use English speech instead of German
When selecting non-English language, the scripts default to using
German voices. This commit edits the file path on the fly to use instead
English voices for all languages other than German. This implements bug
#6804 - SWORD25: add option to choose language speech.

If the English voice pack is not present it falls back to using German voices.

The way this is implemented here however does not allow to use German
voices with English text or English voices with German text. This could be
achieved with a slightly different implementation of the same idea.
2016-03-09 00:02:45 +00:00
Johannes Schickel bad7cdd3a6 SWORD25: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Julien e972c6cfd8 SWORD25: Add error checks after allocating memory with malloc 2011-06-23 15:15:57 +08: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
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
md5 d7334628bd SWORD25: Moved the thumbnail handling code to its appropriate place
PNGLoader is able to load images embedded in saved games already. This
helps remove some duplicate code
2011-05-05 22:03:15 +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
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 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
Paul Gilbert 919d79f091 SWORD25: Added a hack to allow the new English voice pack to be detected
svn-id: r53937
2010-10-30 04:30:42 +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
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 c1a3689a5d SWORD25: Fix cppcheck warning
svn-id: r53600
2010-10-19 04:59:45 +00:00
Eugene Sandulenko 3feac393b0 SWORD25: Renamed Lua .c files to .cpp and make it compilable
svn-id: r53568
2010-10-18 17:12:00 +00:00
Paul Gilbert ae63e20661 SWORD25: Fix for Valgrind identified errors
svn-id: r53563
2010-10-18 10:26:27 +00:00
Max Horn 550073ee04 SWORD25: Do not use Kernel::GetService directly anymore
svn-id: r53477
2010-10-15 12:18:19 +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 1855cee5e3 SWORD25: Loading >200kb file in memory is no more ugly
svn-id: r53381
2010-10-13 00:03:10 +00:00
Eugene Sandulenko 8582c1ad57 SWORD25: Enforse code naming conventions in PackageManager and Sword25Engine
svn-id: r53380
2010-10-13 00:02:51 +00:00
Eugene Sandulenko 2143afde6c SWORD25: Add support for language patch
svn-id: r53377
2010-10-13 00:01:04 +00:00
Paul Gilbert 3e84d4fe73 SWORD25: Implemented thumbnail loading for savegame list
svn-id: r53374
2010-10-12 23:59:49 +00:00
Eugene Sandulenko ccb1644568 SWORD25: Got rid of ScummVMPackageManager
svn-id: r53353
2010-10-12 23:49:42 +00:00
Paul Gilbert 49decb9dc5 SWORD25: Another memory leak fix
svn-id: r53327
2010-10-12 23:39:15 +00:00
Paul Gilbert 5d7922d052 SWORD25: Fix memory leak
svn-id: r53326
2010-10-12 23:38:55 +00:00
Paul Gilbert 3fc518cd0c SWORD25: Replaced some free's with delete[]
svn-id: r53325
2010-10-12 23:38:37 +00:00
Eugene Sandulenko 086f5961b6 SWORD25: unsigned int -> uint
svn-id: r53309
2010-10-12 23:30:00 +00:00
Eugene Sandulenko 384468c014 SWORD25: Started to hook TheoraDecoder. Crashes at startup.
svn-id: r53297
2010-10-12 23:22:01 +00:00
Paul Gilbert 2c62016838 SWORD25: Added GetXmlFile helper function
The XML files included with the game don't include an XML header line, which is required by the ScummVM XML parser. This helper function encapsulates the GetFile method to return a buffer that includes the required line at the start.

svn-id: r53276
2010-10-12 23:13:03 +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 a1d22a063b SWORD25: Fix warnings
svn-id: r53254
2010-10-12 22:50:28 +00:00
Eugene Sandulenko f95da5e3ee SWORD25: Made game run with extracted data
svn-id: r53252
2010-10-12 22:49:08 +00:00
Eugene Sandulenko a21b148a9b SWORD25: Added possibility to run from extracted game.
Still doesn't start though

svn-id: r53251
2010-10-12 22:48:45 +00:00
Eugene Sandulenko 24db2ad739 SWORD25: Implement BS_ScummVMPackageManager::doSearch.
Now all scripts run.

svn-id: r53249
2010-10-12 22:47:57 +00:00
Eugene Sandulenko 0cdab788ae SWORD25: Changed signature of FS searching method. Cleanup.
svn-id: r53248
2010-10-12 22:47:38 +00:00