scummvm/scummvm — pull request #200 by digitall (2012-02-24 06:28:25+00:00)
Title: DREAMWEB: Addition of Shared Datafile Prefix String to Engine

This new variable removes the need for duplicates strings of the form
"DREAMWEB.*" spread throughout the dreamweb engine, replacing them with
a common const string on the engine holding the datafile name prefix.

This will reduce binary size and it should also simplify adding support
for foreign language variants, where the datafile name prefix is
changed.

Currently, the usages associated with savegames have been omitted.
These will probably need a different prefix constant as it is likely
foreign variants still use "DREAMWEB.*" for savegames, while using
a different prefix for the datafiles. We may even migrate away from
this naming convention as this causes savegame collisions when multiple
language variants are present, which could cause issues.

The usages in the Room members of the constant g_roomData structure have
also been omitted, as the members are copied into the savegame format,
thus replacing these and fixing other accesses is not trivial, but still possible.

These commits also currently omit to set the prefix based on the language (fixed at DREAMWEB.*)
, though this can easily be changed once it is clear what the value to be used for each language
variant is...
would be simple to add