[Scummvm-devel] To all engine maintainers. Detector failure behaviour.

Torbjörn Andersson eriktorbjorn at telia.com
Tue Apr 25 23:17:06 CEST 2006


Eugene Sandulenko wrote:

> If your engine detects game later, say in BlahEngine::init() method,
> then just call Engine::GUIErrorMessage(const Common::String msg); and
> return 1 from init() method or from go() method.

I've updated the Broken Sword 2 resource manager so that if it fails to
initialise, the Sword2Engine::init() will return 1 to return to the
launcher, hopefully without leaking much memory.

One strange thing, though: On returning to the launcher, aspect ratio
correction had been disabled.

Torbjörn




More information about the Scummvm-devel mailing list