Commit Graph
82 Commits
Author SHA1 Message Date
David Fioramonti 8e1f712327 WINTERMUTE: Use degree conversion common math funcs 2018-07-03 23:08:48 +01:00
Filippos Karapetis f629a32819 WINTERMUTE: Fix compilation with MSVC
Change the way that EXTENDED_DEBUGGER_ENABLED is checked. The way it
was used, it triggered a fatal error C1017
2016-08-22 13:06:20 +03:00
Tobia Tesan cd5229bc73 WINTERMUTE: Remember to delete watch instances 2016-03-01 20:40:46 +01:00
Tobia Tesan bf9865ebbb WINTERMUTE: Do not delete a pointer we do not own in resolveName 2016-03-01 20:40:46 +01:00
Tobia Tesan a120aa8559 WINTERMUTE: Add Watch functionality 2016-03-01 20:40:46 +01:00
Tobia Tesan dae732814c WINTERMUTE: Add name resolution to DebuggableScript 2016-03-01 20:40:45 +01:00
Tobia Tesan 06021d1aab WINTERMUTE: Add post instruction hook to DebuggableScript 2016-02-29 14:51:58 +01:00
Tobia Tesan d4f94b7d19 WINTERMUTE: Add DebuggableScript and DebuggableScriptEngine classes
These extend the script engine and allow for monitoring and adding
pre/post instruction hooks
2016-02-29 11:36:53 +01:00
Tobia Tesan cd5d60e44c WINTERMUTE: Make _operand protected in script.h 2016-02-29 00:28:05 +01:00
Tobia Tesan 04a96689c2 WINTERMUTE: Remove dead code from vestigial remnants of WME debugger 2016-02-29 00:28:05 +01:00
Johannes Schickel b6b6d39992 WINTERMUTE: Silence/fix some warnigns when compiling Symbian port.
See bug #6625 "WINTERMUTE: Symbian Compilation Warnings".
2014-06-08 18:53:39 +02:00
Filippos Karapetis 5d0ebad996 WME: Fix bug #6531 - "WME: Art of Murder - Assertion" 2014-02-19 00:42:10 +02:00
Johannes Schickel fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Johannes Schickel a6fff7a805 WINTERMUTE: Switch WideString to U32String. 2013-11-23 21:34:54 +01:00
Einar Johan Trøan Sømåen 4e2bec5311 WINTERMUTE: Transfer Const Char* explicitly when saving/loading. 2013-11-05 13:58:02 +01:00
Einar Johan Trøan Sømåen 237d3d86ec WINTERMUTE: Transfer Char* explicitly when saving/loading. 2013-11-05 13:54:25 +01:00
Einar Johan Trøan Sømåen d07409def7 WINTERMUTE: Transfer Sint32s explicitly when saving/loading. 2013-11-05 13:48:11 +01:00
Einar Johan Trøan Sømåen 7892188bcf WINTERMUTE: Transfer Uint32s explicitly when saving/loading. 2013-11-05 13:31:13 +01:00
Einar Johan Trøan Sømåen 4c3c707671 WINTERMUTE: Transfer Doubles explicitly when saving/loading. 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 6b4adab654 WINTERMUTE: Transfer booleans explicitly when saving/loading. 2013-10-28 19:19:12 +01:00
Willem Jan Palenstijn 023914d121 WINTERMUTE: Disambiguate empty and NULL strings when saving
The string stored is now strlen(s)+1, with length 0 indicating NULL.

Increment savegame version for this new format.

Old savegames are fixed by assuming VAL_STRING should never be NULL.
2013-09-05 22:12:49 +02:00
Willem Jan Palenstijn dd9ab7accb WINTERMUTE: Don't clean up _scripts mid-iteration
Scripts executing from ScEngine::tick() can call
ScEngine::unbreakableTick() via scCallMethod("SaveGame") and
applyEvent("BeforeSave").

This recursive execution could cause finished scripts being removed
from _scripts while ScEngine::tick() is still iterating over that array.
2013-09-05 20:23:42 +02:00
Johannes Schickel 1ce54c217a WINTERMUTE: Fix end of namespace comments. 2013-08-04 00:51:09 +02:00
Einar Johan Trøan Sømåen e19656464c WINTERMUTE: Set _scriptStream to nullptr after deletion
(Clang static-analyzer issue)
2013-07-23 18:39:50 +02:00
Einar Johan Trøan Sømåen 7cc19bf29d WINTERMUTE: Avoid explicitly including <math.h> 2013-06-18 01:35:49 +02:00
Einar Johan Trøan Sømåen f1c3869669 WINTERMUTE: Fix ScriptExtDate-saving (bump savegame-version to 1.2.1).
This also fixes int->int32 in ScriptExtDate::transfer.
2013-04-20 18:32:42 +02:00
Einar Johan Trøan Sømåen d8eff7be22 WINTERMUTE: Change ScriptValue to use int32. 2013-04-20 18:18:54 +02:00
Einar Johan Trøan Sømåen a2fb3dfe9e WINTERMUTE: Replace a few more ints by int32s. 2013-04-19 18:13:42 +02:00
Einar Johan Trøan Sømåen 72d0affe01 WINTERMUTE: Rename transfer(void *) to transferPtr(void *) to avoid overload-misses. 2013-04-19 17:17:53 +02:00
Einar Johan Trøan Sømåen b6242d0ea5 WINTERMUTE: Use int32 instead of int in classes. 2013-04-18 17:45:50 +02:00
Einar Johan Trøan Sømåen 8f25b651e8 WINTERMUTE: Split the timers from BaseGame into a separate class. 2013-04-18 12:10:40 +02:00
Einar Johan Trøan Sømåen 3ff6af3dde WINTERMUTE: Use strlcpy instead of strcpy in SXString::scCallMethod() 2013-04-17 17:11:44 +02:00
D G Turner 69ba094f60 WINTERMUTE: Really fix build breakage...
strlcpy() needed qualification of Common namespace.
2013-03-24 19:04:36 +00:00
D G Turner 502cde4fa0 WINTERMUTE: Fix build breaking missing header declaration.
This is required to declare the strlcpy() function.
2013-03-24 18:56:48 +00:00
Einar Johan Trøan Sømåen d136e20d6e WINTERMUTE: Replace WMELite's String-Split-function with code from WME. 2013-03-24 18:55:33 +01:00
Einar Johan Trøan Sømåen 0407906bfa WINTERMUTE: Redo the way floats are saved, break savegame compatibility with WME Lite completely.
(This also breaks compatibility with savegames from ScummVM prior to this commit, AND resets the
Savegame-version, older savegames will have differing MAGIC-numbers in their headers, and will thus
not be recognized).
2013-01-31 23:59:21 +01:00
Einar Johan Trøan Sømåen 980dc4a456 WINTERMUTE: Replace all NULLs with nullptr. 2013-01-26 18:07:07 +01:00
Einar Johan Trøan Sømåen c239b868da WINTERMUTE: More formatting fixes. 2013-01-24 20:17:17 +01:00
Einar Johan Trøan Sømåen 5d4d65d6d9 JANITORIAL: Fix ){ -> ) { 2013-01-24 20:15:13 +01:00
Einar Johan Trøan Sømåen 487539f102 WINTERMUTE: Remove commented out code. 2013-01-24 18:39:57 +01:00
Einar Johan Trøan Sømåen 53512b0841 WINTERMUTE: Const-ify member-functions that obviously should be const. 2012-12-03 10:42:58 +01:00
Einar Johan Trøan Sømåen ea024cd203 WINTERMUTE: Avoid including script_ext_math.h in base_game.cpp 2012-12-02 20:46:26 +01:00
Einar Johan Trøan Sømåen afc21941e3 WINTERMUTE: Make scGetProperty use Common::String& instead of const char* 2012-09-29 00:47:12 +02:00
Einar Johan Trøan Sømåen f33884b020 WINTERMUTE: Remove a few more unused includes. 2012-09-11 03:40:56 +02:00
Einar Johan Trøan Sømåen 8c864170a4 WINTERMUTE: Remove unneccessary includes of base_file.h 2012-09-11 03:11:02 +02:00
Willem Jan Palenstijn b4090ead4d WINTERMUTE: Convert CRLF to LF 2012-09-04 22:17:23 +02:00
Filippos Karapetis 00ad58c29b WINTERMUTE: Fix a warning with MSVC 2012-09-04 20:10:30 +03:00
Einar Johan Trøan Sømåen e067520bb9 WINTERMUTE: Use tabs in enums 2012-08-31 21:03:29 +02:00
Einar Johan Trøan Sømåen 158a206086 WINTERMUTE: Use ++it instead of it++ 2012-08-31 20:00:41 +02:00
Einar Johan Trøan Sømåen 2fd38f47e0 WINTERMUTE: Replace col_templ's getSize with Common::Array::size() 2012-08-31 19:23:41 +02:00