Added stella support

This commit is contained in:
Mathieu Comandon 2010-03-21 15:05:57 +01:00
parent 10f0168d6f
commit 07ab43d9e7
3 changed files with 45 additions and 2 deletions

View file

@ -1,4 +1,5 @@
__all__ = ["linux","wine","sdlmame","mednafen",\
"scummvm","cedega","snes9x", "steam",\
"uae","nulldc","vavoom","openmsx",\
"dosbox","pcsx","o2em","jzintv","atari800","frotz","browser"]
"dosbox","pcsx","o2em","jzintv","stella","atari800",\
"frotz","browser"]

View file

@ -23,7 +23,7 @@
from runner import Runner
class browser(Runner):
'''Runner for z-code games such as Zork'''
'''Runner for browser games'''
def __init__(self,settings = None):
'''Constructor'''

42
runners/stella.py Normal file
View file

@ -0,0 +1,42 @@
# -*- coding:Utf-8 -*-
# It is pitch black. You are likely to be eaten by a grue.
###############################################################################
## Lutris
##
## Copyright (C) 2009 Mathieu Comandon strycore@gmail.com
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
###############################################################################
from runner import Runner
class stella(Runner):
'''Runner for stella Atari 2600 emulator'''
def __init__(self,settings = None):
'''Constructor'''
self.package = "stella"
self.executable = "stella"
self.machine = "Atari 2600"
self.description = "Run Atari 2600 games"
self.game_options = [{"option":"cart","type":"single","label":"Cartridge"}]
self.runner_options = []
if settings:
self.cart = settings["game"]["cart"]
def play(self):
command = ['stella',"\""+self.cart+"\""]
return command