Commit Graph
55 Commits
Author SHA1 Message Date
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
Eugene Sandulenko 28d81a2a1c SWORD25: package manager. Style fixes. Cleanup
svn-id: r53247
2010-10-12 22:47:15 +00:00
Eugene Sandulenko eb191e3590 SWORD25: Fix loading files with relative paths.
svn-id: r53246
2010-10-12 22:46:54 +00:00
Eugene Sandulenko f4024d7d14 SWORD25: Fix initialization.
svn-id: r53245
2010-10-12 22:46:35 +00:00
Eugene Sandulenko fbdbc089e0 SWORD25: Fix package manager. Now scripts run.
svn-id: r53244
2010-10-12 22:46:13 +00:00
Eugene Sandulenko 992c504968 SWORD25: Further fixes for package manager
svn-id: r53243
2010-10-12 22:45:53 +00:00
Eugene Sandulenko 8977f88834 SWORD25: started fixing pakage manager
svn-id: r53239
2010-10-12 22:44:29 +00:00
Eugene Sandulenko 72130c284d SWORD25: Fix couple more warnings
svn-id: r53236
2010-10-12 22:43:36 +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 a5819c1e0a SWORD25: Converted remainder of package/ folder
svn-id: r53220
2010-10-12 22:31:18 +00:00
Paul Gilbert ea29e41b86 SWORD25: Reimplemented package manager for ScummVM using Common::Archive
svn-id: r53194
2010-10-12 22:15:42 +00:00