advowson: I cannot speak to QFG4 specifically, but for most ScummVM games, you install the game from GOG, then point ScummVM to that installation. Thus, any post-retail script patches that GOG has included in their install will affect ScummVM too. The exception to this would be if GOG patched the QFG4 executable instead of patching the script files, since ScummVM would not use the installed executable.
Gudadantza: The gog version is detected and it launches. In case that ScummVM detects any incompatibilitry or version mismatch, It use to give an info message or a launch error in the worst. it is not the case specifically in QFG4 of any from the bundle.
I believe that scummvm do use its own workarounds or patches just because it uses a different exe or engine. But I do not know how it affects with the patched scripts itselves. Probably they are ignored because as I say there are no error message about glitched data at launch. But I am not really sure.
Greetings
(old post I know, this is more for the lurkers and new fans - like I was one and a half years ago)
ScummVM is basically a source port of all the game engines it supports. Think of it like prboom or OpenXcom - the main source files are unchanged, just the way they're loaded and ran. While prboom is designed to be cross-compatible with vanilla Doom demos (due to playing identically, right down to the gameplay glitches) and OpenXcom is backwards compatible with original UFO Defence and Terror from the Deep save files, ScummVM makes no effort to support the save games of the original engine. That can make bugtesting a bit of a pain at times.
The developers of ScummVM usually support the latest official patch versions of games, such as the GOG releases. While unofficial patches (QFG3 1.3A) may break unless specifically accounted for, it's unlikely that the official version of Shadows of Darkness will break unless someone made a mistake in programming support for it. In which case, enable verbose debug logging, replicate the situation, and file a bug report.
ScummVM is also a bit hit-or-miss when it comes to
fixing official bugs. You still die at 0 stamina and full health in combat if playing QFG1VGA through it (Doesn't QFG1EGA handle it properly and just damage you for the stamina cost of actions in that case?), but a whole lot of other errors often get hotfixed by it.
(as an off-topic aside, I recommend OpenXcom
Extended to all you rookies out there. More features and better UI. Hey, old PC classics gotta stick together.)