[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Troll] Troll 0.5.1



At 11:11 PM 9/12/2002 -0400, you wrote:
> > I'm going to be trapped in Lakehurst, NJ for three weeks, with nothing
> > better to do, so I might work on porting this to Windows.
>
>With SDL support it should be easy.

That's looking easy.

>Probably should use the SDL
>functions for loading dynamic library.

I think I'm going to use the direct Windows stuff (behind a class firewall) 
but I'll look into this.

What's been hard is the file list--there's no glob.h on Windows, and 
putting in all the Windows DLL stuff.  Oh, and argument parsing--no getopt.


>   If you didn't feel like fixing
>that you could just build one executable like Dos.

That wouldn't be any fun.  There's another problem though--the DLL cannot 
contain unresolved references to the main program (the calls back to 
TrollGame.  I think this is something that works under the linker on Linux, 
but not on DOS.  If I put the Troll stuff in the DLL, I'll get multiple 
defs, I think, and that would be bad.

I think the path to go is to put everything but main in a troll.dll, and 
then link the main program against that, and the other game dll's against 
the primary dll.  Thought I would seek your input before doing that; it's a 
big change.  It might make some sense to do this on all platforms, although 
it probably isn't needed.

>Only other change
>that would probably be needed would be listing the files in a
>directory.

Ah, yes.  :)

>   (Actually it might be more involved if SDL requires
>locking the video surface under windows.  I noticed it doesn't do the
>right thing but it works so I didn't change it.  However you could
>just use the screen size multipliers since locking is done correctly
>when the physical screen is larger than 320x200.)

I need to get a working bulid before I get to this...

>Oh.  But I can't forget the most important things the logo.  The troll
>standing in front of a broken window?  :)

Sounds good.  :)


>Dennis Payne
>dulsi@identicalsoftware.com

I've completed the file listing, dll loading and a bunch of other stuff 
(including some general bug fixes).  I'm going to keep working.

BTW, there is a serious bug.  Forget to specify a valid game file, and 
you'll see a nasty seg fault.

Kenn