Home  |  RetroBox  |  Articles  |  Forum

PixieLite::Linux

A forum for discussing everything related to developing retro games, be it on the original platform, remakes of old games or new games in a retro style.

PixieLite::Linux

Postby Richard on Mon Sep 07, 2009 9:00 pm

@ Mattias:

I have started working on a Linux port of PixieLite.

I am starting slow, and its not likely that it will be ready for anything for a few months, since my time I can devote to it is vastly limited.

I'd like a clarification of the void Platform_Win32_FileSystem_Directory::Rescan() method.

Is that recursively scanning sub-directories to store a hierarchy..or is it just polling the current path and making a list of files and folders in that path?

I think its the latter...but I'm too tired to dig into the MSDN for the answer.
User avatar
Richard
 
Posts: 34
Joined: Mon May 19, 2008 12:38 pm
Location: Katy, TX, USA

Re: PixieLite::Linux

Postby Mattias Gustavsson on Tue Sep 08, 2009 8:52 am

Wow, that's really cool :-) I'll certainly clarify anything that needs to be 8-)

I guess a general advice on porting it would be to start by porting the sample files Main.cpp and Demo.cpp (which are not strictly speaking part of Pixie, they are examples of how to use it), but substituting the Win32 stuff for the NULL stuff. The advantage of this being that you can port subsystems one at a time, and test things as you go along.

Also, note that the non-platform-specific interface base classes (in the Platform folder) defines (or try to anyway) how each interface is meant to work, which could possibly be useful...

As for your specific question about Platform_Win32_FileSystem_Directory - no, it is not recursive, it just looks in the specified folder and gathers all files and directories in that folder, and stores their names only - to access sub-folders/files of those folders, the caller will have to create a new Platform_FileSystem_Directory object using that name. This makes it a bit more awkward to use, but easier to implement when porting - and you don't really use these Platform systems directly when making a game, as it is wrapped up in higher level game engine functions.

Also, a while back there was a guy on another forum who started a linux port of Pixie (before the Lite release), and though he didn't finish it (I have no idea how far he got), he was kind enough to send me the source code, in case someone else had use for it. I'm sure you don't need it, but if you want it for reference or whatever, you can grab it here:
http://www.colossusentertainment.com/fo ... nux.tar.gz
But don't rely to heavily on it - it might be rubbish for all I know :P
8-) www.tophatarcade.com - Developer resource site and Sim/Strategy/RPG affiliate outlet
:roll: www.retrogamedev.org - For developers who like to make oldschool games
:shock: www.colossusentertainment.com - More information about me and some free games
User avatar
Mattias Gustavsson
Site Admin
 
Posts: 55
Joined: Sat May 17, 2008 11:36 am

Re: PixieLite::Linux

Postby Richard on Tue Sep 08, 2009 9:18 am

Porting the Demo and Main source files is really trivial to me.
I'm starting with the FileSystem_* platform-specific parts, then I'm going to do Screen_* and the input device stuff.
I'm likely going to leave Audio out at least for the first version. I'm not too hip on writing alsa code right now ;)

I'm glad my suspicions were correct about the Rescan() method.

I looked at that other guy's code, and no offense to him, but my code thus-far is much more robust. 8-)
I think I will continue on what I was doing.

I need to rack up some more hours on DT so I can get the rent for next month, so this will have to wait. :D
User avatar
Richard
 
Posts: 34
Joined: Mon May 19, 2008 12:38 pm
Location: Katy, TX, USA


Return to Retro Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron
RetroGameDev is managed by Mattias Gustavsson and sponsored by Colossus Entertainment
Reproduction/republishing of any material on this site without permission is strictly prohibited.
Powered by phpBB© phpBB Group