Commit Graph
90 Commits
Author SHA1 Message Date
lolbot-iichan a96d127b1f WINTERMUTE: Fix assertion in Hamlet game
Assertion was caused by providing "saves/" prefixed string to
WindowsFilesystemNode::getChild() function, that asserts on '/'
characters.

Wintermute game code:
if(!(Game.FileExists((Game.SaveDirectory + "\gamelet.save")))) {
Directory.Create(Game.SaveDirectory);
}
...

Assertion stack:
from C:\WINDOWS\System32\KernelBase.dll
from C:\WINDOWS\System32\msvcrt.dll
(this=0xcfdf710,
n=...) at backends/fs/windows/windows-fs.cpp:158
n=...)
at common/fs.cpp:68
(filename=...)
at engines/wintermute/base/file/base_disk_file.cpp:76
at engines/wintermute/base/file/base_disk_file.cpp:105
this=0x50795e0, filename=...)
at engines/wintermute/base/base_file_manager.cpp:326
(this=0xcea72f0,
script=0xcf657d0, stack=0xcf6a2e0, thisStack=0xcf69ee0,
name=0xcfd8870 "FileExists") at
engines/wintermute/base/base_game.cpp:1523
...
2019-07-16 20:24:42 +03:00
lolbot-iichan 4bb82a8dae WINTERMUTE: Add dummy implementation of Directory global object
Source:
http://docs.dead-code.org/wme/generated/scripting_ref_directory.html
2019-07-16 20:24:42 +03:00
lolbot-iichan 9bee1b5e31 WINTERMUTE: Implement Game.OpenDocument() method
Game.OpenDocument() is used to open links for developer's site or social
account in games like hellavuday, 5ld, etc.
2019-06-26 07:15:14 +03:00
lolbot-iichan 4c25af8191 WINTERMUTE: Flush ConfMan to disk on every change (#1314)
* WINTERMUTE: Flush ConfMan to disk
2018-09-16 20:15:04 +03:00
Tobia Tesan 42531fb71a WINTERMUTE: Add _bilinearFiltering attribute to BaseGame 2016-12-26 12:20:56 +01:00
Einar Johan Trøan Sømåen d077fc0fc7 WINTERMUTE: Change in-engine thumbnail-defaults.
Instead of the engine-based 0, we now default to
kThumbnailWidth/kThumbnailHeight2, as values of 0
here disable thumbnails in the engine.

TODO: Perhaps consider looking into always running the
thumbnail-generation even if the sizes are 0?
2016-10-07 01:35:17 +02: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 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 f1ae8e6e8d WINTERMUTE: Introduce BaseGame->expandStringByStringTable(&Common::String) 2014-10-15 21:36:46 +02:00
Einar Johan Trøan Sømåen 55c8b7a11a WINTERMUTE: Save the names of any language files that are loaded. (Fix bug #6651)
This way, they will be reloaded in the same order when loading a save game. Old save games will
continue to show the bug, but new savegames will be consistent. A quick fix for old save games in
the white chamber, is to launch the game with the correct language BEFORE loading the save game.

This increases the save-game-version to 1.3.1ScummVM
2014-09-03 17:47:49 +02:00
Johannes Schickel fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +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 d6b9d7de8f WINTERMUTE: Remove BasePlatform::setRect (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 3fb4183909 WINTERMUTE: Remove BasePlatform::setRectEmpty (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 211b8c9732 WINTERMUTE: Remove unused BasePlatform-functions (showWindow/setCapture/releaseCapture) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen 95d2ed1a9b WINTERMUTE: Transfer Rect32s explicitly when saving/loading. 2013-10-29 02:59:52 +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 a979072410 WINTERMUTE: Clean up byte/char casts in loading/parsing 2013-10-01 23:20:43 +02:00
Tobia Tesan 2e457d96e8 WINTERMUTE: Make some members of UIObject private 2013-09-21 23:22:16 +02:00
Tobia Tesan b033850e8a WINTERMUTE: Keep attributes in UIWindow private 2013-09-21 23:22:12 +02:00
Einar Johan Trøan Sømåen 9ea315747e WINTERMUTE: Be explicit when storing Floats in savegames. 2013-08-13 19:09:08 +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 1396052dc9 WINTERMUTE: Add hack to allow language-selection in James Peris demo. 2013-07-31 04:26:28 +02:00
Einar Johan Trøan Sømåen e296ac1d47 WINTERMUTE: Let engine know both gameid and language of target as well as targetname. 2013-07-31 04:26:28 +02:00
Sven Hesse 989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Einar Johan T. Sømåen 81282b52e7 WINTERMUTE: Fix erroneous _gameRef in BaseQuickMSG
CID 1002323
2013-05-23 14:03:06 +02:00
Einar Johan Trøan Sømåen 51e17d9f86 WINTERMUTE: Further reduce the amount of int->int32-confusion. 2013-04-20 18:11:47 +02:00
Einar Johan Trøan Sømåen 2625f3931a WINTERMUTE: Fix a few more int->int32's spotted by fuzzie. 2013-04-20 17:37:19 +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 76d9256679 WINTERMUTE: Protect more members in BaseRenderer. 2013-04-17 21:21:17 +02:00
Einar Johan Trøan Sømåen 3597f7596d WINTERMUTE: Constify _width and _height in BaseRenderer. 2013-04-17 21:21:17 +02:00
Einar Johan Trøan Sømåen 5f5b415289 WINTERMUTE: Increase const-usage. 2013-04-17 21:21:17 +02:00
Einar Johan Trøan Sømåen 411b7128ab WINTERMUTE: Rename base_save_thumb_helper.cpp to match class-hierarchy. 2013-04-17 21:21:16 +02:00
Einar Johan Trøan Sømåen e1bce6377d WINTERMUTE: Detach BaseSaveThumbHelper from inheritance tree. 2013-04-17 21:21:16 +02:00
Einar Johan Trøan Sømåen cbae39ab87 WINTERMUTE: Move settings from BaseGame to separate struct. 2013-04-17 19:42:05 +02:00
Einar Johan Trøan Sømåen ad5ef64b86 WINTERMUTE: Replace strcat with strlcat in BaseGame::displayDebugInfo 2013-04-17 16:13:18 +02:00
Einar Johan Trøan Sømåen 3185e91576 WINTERMUTE: Use strlcat/strlcpy in BaseGame::setWindowTitle 2013-04-17 16:09:35 +02:00
Willem Jan Palenstijn 250967a63f WINTERMUTE: Fix warnings and improve const-correctness 2013-04-15 20:44:41 +02:00
Einar Johan Trøan Sømåen 09303f6d1a WINTERMUTE: Get rid of BaseImage.h inclusion in BaseGame. 2013-02-06 13:40:36 +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 d322592037 WINTERMUTE: Guard ConfMan a bit better. 2013-01-22 19:18:29 +01:00
Matthew Hoops 00e5169991 WINTERMUTE: Fix a gcc warning 2012-12-09 21:58:39 -05:00
Einar Johan Trøan Sømåen 4985a89b36 WINTERMUTE: Mark savedGameExt and localSaveDir for eventual removal. 2012-12-09 16:53:33 +01:00
Einar Johan Trøan Sømåen 6a0f72bee0 WINTERMUTE: Remove unused include in BaseGame 2012-12-09 16:50:12 +01:00
Einar Johan Trøan Sømåen 9bd16b80c9 WINTERMUTE: Remove code moved in previous commit. 2012-12-09 16:45:20 +01:00
Einar Johan Trøan Sømåen 115e60e7cb WINTERMUTE: Split out the music-related functionality of BaseGame to a separate class. 2012-12-09 16:31:47 +01:00