[Scummvm-devel] Non-hardcoded gameids
Eugene Sandulenko
sev at scummvm.org
Tue May 30 09:39:03 CEST 2006
On Tue, 30 May 2006 16:55:16 +0100
David Given <dg at cowlark.com> wrote:
> I'm looking at writing some Engine classes for ScummVM, and was
> wondering if there was any way of avoiding having to hard-code a list
> of gameids and game titles. The platform I'm implementing is totally
> generic, so that I don't know the title ahead of time.
No. That is not obligatory. Take a look at AGI engine. It uses (and
will use) just one target called 'agi'. Just right now it doesn't
report detected game name properly.
Also SAGA engine doesn't use target ID which it receives from launcher,
but redetects the game on startup. However it takes into account
platform and language settings which could be overridden via GUI.
To achieve that, your detector should be able to make exact matches
based on game data.
> The other approach is to implement a single generic game which I use
> for all my titles, but this is unpleasant because it means that a
> ScummVM session can only have one set up at a time.
There are 2 different things. Game ID and Target.
[target]
gameid=[id]
Say,
[supergame]
description=Test game for uber l33t engine
gameid=l33tengine
path=/whatever
Eugene
More information about the Scummvm-devel
mailing list