Dirk Meyer wrote:
Please send the code as tgz of the games directory + a patch of all
non games files.

ok here is the games directory as tar.gz and the patch for the rest.


There are two different game plugins at the moment the emulator
plugin, this should work for most of the emulators (i have only tested
with zsnes, but since it just calls an emulator with the parameters it
should work with others). The second plugin is for PcGames with this
it is possible to run usual games.

Maybe use them as base class and inherit special plugins like snes
From them.


This is actually what i did. I did chose to use the emulator, since most of the emulators would work without modification of the source code. But i didn't realy like it as well. I changed it that for each emulator type you have to write a few lines of code, see the zsnes.py. This should be enough for most emulators. At least for the ones working with roms. This way we get somthing similar as what you proposed later for the config.

What i would like to add would be a plugin for the scummvm, it will
not work with the emulator plugin, since the scummvm does not needs
one rom file. But this should be easily possible with the current
structure.

scummvm would be great. Maybe inherit it from PcGames.


I will have a look at the scummvm should not be very complicated.


The config will look like something like this:

games.plugin.zsnes.activate = 10
games.plugin.zsnes.path[0].path = $(HOME)/snes
games.plugin.zsnes.path[0].name = Main Roms
games.plugin.zsnes.name = SNes Games
games.plugin.zsnes.bin = /usr/local/bin/zsnes
games.plugin.zsnes.parameters = -m -r3 -k 100 -cs -u
games.plugin.zsnes.suffix = smc,zip

games.plugin.pcgames.activate = 20
games.plugin.pcgames.name = PC Games
games.plugin.pcgames.items[0].bin = /usr/games/bin/einstein
games.plugin.pcgames.items[0].parameters =
games.plugin.pcgames.items[0].name = Einstein

games.plugin.scummvm.activate = 30
games.plugin.scummvm.name = ScummVM Games
games.plugin.scummvm.bin = /usr/local/bin/scummvm
games.plugin.scummvm.parameters =


Mathias
Index: freevo_trunk/ui/src/gui/compat.py
===================================================================
--- freevo_trunk/ui/src/gui/compat.py	(revision 9327)
+++ freevo_trunk/ui/src/gui/compat.py	(working copy)
@@ -108,6 +108,10 @@
 
     def update(self):
         self.engine.canvas.update()
+
+class _Gamesplayer(BaseApplication):
+    name = 'games'
+    areas = ()
         
         
 class _Videoplayer(BaseApplication):

Attachment: games.tar.gz
Description: application/gzip

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to