[Scummvm-devel] Change regarding the dialogs in the SCUMM engine

Filippos K philipk79 at hotmail.com
Sat Sep 20 17:24:53 CEST 2008


(note: resending this, as it seems it hasn't been delivered. Apologies if you get it twice for some reason)

Hello everyone

As Max already mentioned, there is work being
done on allowing engines to specify that they wish to have a save/load
etc menu to the GMM. In the SCUMM engine, the dialogs.* files contain a
lot of the code that might be used for this task. However, there is a
part which is SCUMM specific: the function
InfoDialog::queryResString(). This gets a string ID and returns an
appropriate string depending on the SCUMM game version used, from
appropriate statically defined arrays inside dialogs.cpp
(string_map_table_v8, string_map_table_v7 and so on). 

The plan
is to either move this function and the associated arrays outside
dialogs.cpp or remove it altogether, and pass strings to InfoDialog
instead of resource numbers.

The question is: what would be a
better idea? Replace calls with resource numbers with actual strings,
or move the static string arrays outside dialogs.cpp?

Regards
Filippos Karapetis (md5/thebluegr)
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20080920/817dd2b9/attachment.html>


More information about the Scummvm-devel mailing list