示例#1
0
def init():

    general = {
        "execinfo": {
                "pandora": {
                           "type": "arcade",
                           "pnd_unique_id": "c4a-skeezix-0001",
                           "last_known_filename_hint": "compo4all-mame.pnd",
                           "command_line_add": "**GAMENAME**",
                           "last_known_appdata_hint": "c4a-mame",
                           "file_dependancies_hint": "rom/**GAMENAME**.zip"
                }
         }
    }

    register ( 'bublbobl', 'Bubble Bobble',   multiscore_handler,  g_ms_bublbobl,   'available', 'arcade', 'platform', cx ( general, 'bublbobl' ) )
    register ( 'dkong',    'Donkey Kong',     multiscore_handler,  g_ms_dkong,      'available', 'arcade', 'platform', cx ( general, 'dkong' ) )
    register ( 'dkongjr',  'Donkey Kong Jr.', multiscore_handler,  g_ms_dkongjr,    'available', 'arcade', 'platform', cx ( general, 'dkongjr' ) )
    register ( 'fshark',   'Flying Shark',    multiscore_handler,  g_ms_fshark,     'available', 'arcade', 'shmup', cx ( general, 'fshark' ) )
    register ( 'galaxian', 'Galaxian',        singlescore_handler, g_ss_galaxian,   'available', 'arcade', 'shmup', cx ( general, 'galaxian' ) )
    register ( 'invaders', 'Space Invaders',  singlescore_handler, g_ss_invaders,   'available', 'arcade', 'shmup', cx ( general, 'invaders' ) )
    register ( 'kod',      'King of Dragons', multiscore_handler,  g_ms_kod,        'available', 'arcade', 'beatemup', cx ( general, 'kod' ) )
    register ( 'mrdo',     'Mr. Do!',         multiscore_handler,  g_ms_mrdo,       'available', 'arcade', 'maze', cx ( general, 'mrdo' ) )
    register ( 'mspacman', 'Ms. Pacman',      singlescore_handler, g_ss_mspacman,   'available', 'arcade', 'maze', cx ( general, 'mspacman' ) )
    register ( 'pulstar',  'Pulstar',         multiscore_handler,  g_ms_pulstar,    'available', 'arcade', 'shmup', cx ( general, 'pulstar' ) )
    #register ( 'rthunder', 'Rolling Thunder', multiscore_handler,  g_ms_rthunder,   'unavailable', 'arcade', 'platform', cx ( general, 'rthunder' ) ) # coded, emu sucks
    register ( 'rygar',    'Rygar',           multiscore_handler,  g_ms_rygar,      'available', 'arcade', 'runngun', cx ( general, 'rygar' ) )
    # HiToText based ones
    register ( 'ladybug',  'Ladybug',         hitotext_handler,    g_ms_hi_stub,    'available', 'arcade', 'maze', cx ( general, 'ladybug' ) )
    register ( 'raiden',   'Raiden',          hitotext_handler,    g_ms_hi_stub,    'available', 'arcade', 'shmup', cx ( general, 'raiden' ) )
    register ( 'blktiger', 'Black Tiger',     hitotext_handler,    g_ms_hi_stub,    'available', 'arcade', 'runngun', cx ( general, 'blktiger' ) )
    register ( 'btime',    'Burger Time',     hitotext_handler,    g_ms_hi_stub,    'available', 'arcade', 'platform', cx ( general, 'btime' ) )
    register ( 'sf2',      'Street Fighter 2',  hitotext_handler,  g_ms_hi_stub,    'available', 'arcade', 'fighting', cx ( general, 'sf2' ) )
    register ( 'gng',      "Ghosts'n Goblins",  hitotext_handler,  g_ms_hi_stub,    'available', 'arcade', 'runngun', cx ( general, 'gng' ) )
    register ( 'frogger',  "Frogger",         hitotext_handler,    g_ms_hi_stub,    'available', 'arcade', 'maze', cx ( general, 'frogger' ) )
    # HiToText 2013 May additions
    #register ( 'aliensyn', "Alien Syndrome",  hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'aliensyn' ) )
    register ( 'asteroid', "Asteroids",       hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'asteroid' ) )
    #register ( 'berzerk',  "Berzerk",         hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'berzerk' ) )
    #register ( 'bosco',    "Bosconian",       hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'bosco' ) )
    #register ( 'citycon',  "City Connection", hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'citycon' ) )
    register ( 'galaga',   "Galaga",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'galaga' ) )
    #register ( 'goldnaxe', "Golden Axe",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'beatemup', cx ( general, 'goldnaxe' ) )
    #register ( 'inthunt',  "Into the Hunt",   hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'inthunt' ) )
    #register ( 'nrallyx',  "New Rally X",     hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'racing', cx ( general, 'nrallyx' ) )
    #register ( 'quartet',  "Quartet",         hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'quartet' ) )
    register ( 'scramble', "Scramble",        hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'scramble' ) )
    #register ( 'tigeroad', "Tiger Road",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'beatemup', cx ( general, 'tigeroad' ) )
    register ( 'wboy',     "Wonderboy",       hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'wboy' ) )
    #
    # HiToText 2013 June additions (tested by b_o_b)
    register ( 'bombjack', "Bomb Jack",       hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'bombjack' ) )
    register ( 'elevator', "Elevator Action", hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'elevator' ) )
    register ( 'gyruss',   "Gyruss",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'gyruss' ) )
    register ( 'mappy',    "Mappy",           hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'mappy' ) )
    register ( 'timeplt',  "Time Pilot",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'timeplt' ) )
    #
    # HiToText 2013 July additions (tested by b_o_b)
    register ( 'terracre',  "Terra Cresta",   hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'terracre' ) )
    register ( 'pbaction',  "Pinball Action", hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'pinball', cx ( general, 'pbaction' ) )
    register ( 'digdug',    "Dig Dug",        hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'digdug' ) )
    register ( 'baddudes',  "Bad Dudes",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'beatemup', cx ( general, 'baddudes' ) )
    register ( 'amidar',    "Amidar",         hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'amidar' ) )
    register ( '1942',      "1942",           hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, '1942' ) )
    #
    # HiToText 2013 August additions (tested by b_o_b)
    register ( 'aliens',    "Aliens",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'aliens' ) )
    register ( 'circusc',   "Circus Charlie",  hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'circusc' ) )
    register ( 'gberet',    "Green Beret",     hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'gberet' ) )
    register ( 'popeye',    "Popeye",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'popeye' ) )
    register ( 'rthunder',  "Rolling Thunder", hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'rthunder' ) )
    register ( 'yiear',     "Yie Ar Kung-Fu",  hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'fighting', cx ( general, 'yiear' ) )
    #
    # HiToText 2013 Sept additions  (tested by b_o_b)
    register ( 'armorcar',  "Armored Car",     hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'armorcar' ) )
    register ( 'bzone',     "Battlezone",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'bzone' ) )
    register ( 'commando',  "Commando",        hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'runngun', cx ( general, 'commando' ) )
    register ( 'dkong3',    "Donkey Kong 3",   hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'platform', cx ( general, 'dkong3' ) )
    register ( 'missile',   "Missile Command", hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'shmup', cx ( general, 'missile' ) )
    register ( 'pengo',     "Pengo",           hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'pengo' ) )
    #
    # HiToText 2013 Oct addictions (tested by b_o_b)
    register ( 'anteater',  "Anteater",        hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'anteater' ) )
    register ( 'bagman',    "Bagman",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'bagman' ) )
    register ( 'fnkyfish',  "Funky Fish",      hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'fnkyfish' ) )
    register ( 'pooyan',    "Pooyan",          hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'pooyan' ) )
    register ( 'rastan',    "Rastan Saga",     hitotext_handler,    g_ms_hi_stub,    'active', 'arcade', 'maze', cx ( general, 'rastan' ) )
示例#2
0
def _register_game ( conf ):
    status = 'available'
    if 'status' in conf:
        status = conf [ 'status' ]
    modulemap.register ( conf [ 'shortname' ], conf [ 'longname' ], sys.modules[__name__], None, status, conf [ 'field' ], conf [ 'genre' ], conf )