[Scummvm-devel] Personal Nightmare portability

Max Horn max at quendi.de
Wed Jul 15 14:31:16 CEST 2009


Am 15.07.2009 um 01:41 schrieb Travis Howell:

> Max Horn wrote:
>> Am 14.07.2009 um 06:08 schrieb Travis Howell:
>>> Personal Nightmare can be bought from GoG.com, if anyone is
>>> interested,
>>> but doesn't own the game.
>>
>> There is no demo?
>
> A short non-interactive demo of Personal Nightmare is available (at
> http://scummvm.sourceforge.net/demos/#agos ), but it only uses VGA
> script code. The main script code isn't used at all, so it isn't  
> useful
> for testing portability changes to the main script code.


OK, so I caved in and got the game from GOG.com (I still had some  
promo codes anyway ;).

The attached patch gets rid of one of the setjmps. It seems to work OK  
on a very cursory test. Maybe somebody is willing to give it a more  
extensive test. I left lots of debug printfs, those might help in case  
this patch doesn't work properly.

If this works, it shouldn't be a problem to get rid of the other  
setjmp in a similar fashion. Also, this patch is rather crude and  
could be considerably improved upon, but I didn't want to do that  
before knowing whether it actually works ;)

Cheers,
Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pn_setjmp.patch
Type: application/octet-stream
Size: 9196 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20090715/7d120f6a/attachment.obj>
-------------- next part --------------



More information about the Scummvm-devel mailing list