[Scummvm-devel] Contributing to ScummVM with an interpreter for Magnetic Scrolls?

dettus dettus at dettus.net
Sat Apr 27 11:58:40 CEST 2019


Hello.


My name is Thomas, I am a big fan of ScummVM.

Currently, I am in the process of writing an interpreter for classic 
text adventures from Magnetic Scrolls, such as "The Pawn" or "The Guild 
Of Thieves".

Even though I am not saying that it SHOULD be integrated into ScummVM, I 
would like to think that it COULD. It is WAY to early to really start 
integrating it, but I like to be prepared.



So, the reason why I am writing this mail is because I would be 
interested as on how I would have to design my code to make it possible. 
Currently, my interpreter needs a couple of hooks into any form of GUI:

- Initialization, where pointers to the original binaries are being provided

- Callbacks for textual input (strings)
- Callbacks for textual output (strings)
- Callbacks for textual output (characters)
- Callbacks for drawing a picture (XPM)

My code is purely C, so callbacks I am using function pointers. Said 
functions are, at the moment, doing nothing more than just a simple 
printf() and fgets(). The games I can play so far are "The Pawn", "The 
Guild of Thieves" and "Jinxter". HOWEVER, later games, such as 
"Corruption", "Myth", "Fish!" and "Wonderland" added features such as 
animation and music.

SO MY QUESTION is this: How would I best design the callbacks for 
animation and music in way so that it MIGHT be integratable into ScummVM?



Dettus



P.S.: My interpreter is available at http://www.dettus.net/dMagnetic.

(Hopefully this link, and the fact that this is my first email will not 
make this spam. ;) )







More information about the Scummvm-devel mailing list