mirror of https://github.com/stella-emu/stella.git
Added support for X07 bankswitching, which is used by Stella's Stocking, the 2007 AtariAge Holiday Cart. TODO: Find a way to autodetect this bankswitching type.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1408 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
7112444714
commit
6b7419f2d1
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: GameInfoDialog.cxx,v 1.47 2008-02-24 20:02:09 estolberg Exp $
|
// $Id: GameInfoDialog.cxx,v 1.48 2008-02-27 14:16:52 estolberg Exp $
|
||||||
//
|
//
|
||||||
// Based on code from ScummVM - Scumm Interpreter
|
// Based on code from ScummVM - Scumm Interpreter
|
||||||
// Copyright (C) 2002-2004 The ScummVM project
|
// Copyright (C) 2002-2004 The ScummVM project
|
||||||
|
@ -119,7 +119,7 @@ GameInfoDialog::GameInfoDialog(
|
||||||
pwidth = font.getStringWidth("SB (128-256k SUPERbanking)");
|
pwidth = font.getStringWidth("SB (128-256k SUPERbanking)");
|
||||||
myType = new PopUpWidget(myTab, font, xpos+lwidth, ypos,
|
myType = new PopUpWidget(myTab, font, xpos+lwidth, ypos,
|
||||||
pwidth, lineHeight, "", 0, 0);
|
pwidth, lineHeight, "", 0, 0);
|
||||||
for(i = 0; i < 23; ++i)
|
for(i = 0; i < 24; ++i)
|
||||||
myType->appendEntry(ourCartridgeList[i][0], i+1);
|
myType->appendEntry(ourCartridgeList[i][0], i+1);
|
||||||
wid.push_back(myType);
|
wid.push_back(myType);
|
||||||
|
|
||||||
|
@ -387,12 +387,12 @@ void GameInfoDialog::loadView()
|
||||||
mySound->setSelectedTag(0);
|
mySound->setSelectedTag(0);
|
||||||
|
|
||||||
s = myGameProperties.get(Cartridge_Type);
|
s = myGameProperties.get(Cartridge_Type);
|
||||||
for(i = 0; i < 23; ++i)
|
for(i = 0; i < 24; ++i)
|
||||||
{
|
{
|
||||||
if(s == ourCartridgeList[i][1])
|
if(s == ourCartridgeList[i][1])
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i = (i == 23) ? 0: i + 1;
|
i = (i == 24) ? 0: i + 1;
|
||||||
myType->setSelectedTag(i);
|
myType->setSelectedTag(i);
|
||||||
|
|
||||||
// Console properties
|
// Console properties
|
||||||
|
@ -539,7 +539,7 @@ void GameInfoDialog::saveConfig()
|
||||||
myGameProperties.set(Cartridge_Sound, s);
|
myGameProperties.set(Cartridge_Sound, s);
|
||||||
|
|
||||||
tag = myType->getSelectedTag();
|
tag = myType->getSelectedTag();
|
||||||
for(i = 0; i < 23; ++i)
|
for(i = 0; i < 24; ++i)
|
||||||
{
|
{
|
||||||
if(i == tag-1)
|
if(i == tag-1)
|
||||||
{
|
{
|
||||||
|
@ -681,7 +681,7 @@ const char* GameInfoDialog::ourControllerList[5][2] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
const char* GameInfoDialog::ourCartridgeList[23][2] = {
|
const char* GameInfoDialog::ourCartridgeList[24][2] = {
|
||||||
{ "Auto-detect", "AUTO-DETECT" },
|
{ "Auto-detect", "AUTO-DETECT" },
|
||||||
{ "2K (2K Atari)", "2K" },
|
{ "2K (2K Atari)", "2K" },
|
||||||
{ "3E (32K Tigervision)", "3E" },
|
{ "3E (32K Tigervision)", "3E" },
|
||||||
|
@ -704,5 +704,6 @@ const char* GameInfoDialog::ourCartridgeList[23][2] = {
|
||||||
{ "MB (Dynacom Megaboy)", "MB" },
|
{ "MB (Dynacom Megaboy)", "MB" },
|
||||||
{ "MC (C. Wilkson Megacart)", "MC" },
|
{ "MC (C. Wilkson Megacart)", "MC" },
|
||||||
{ "SB (128-256k SUPERbanking)", "SB" },
|
{ "SB (128-256k SUPERbanking)", "SB" },
|
||||||
{ "UA (8K UA Ltd.)", "UA" }
|
{ "UA (8K UA Ltd.)", "UA" },
|
||||||
|
{ "X07 (64K AtariAge)", "X07" }
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: GameInfoDialog.hxx,v 1.27 2008-02-06 13:45:23 stephena Exp $
|
// $Id: GameInfoDialog.hxx,v 1.28 2008-02-27 14:16:52 estolberg Exp $
|
||||||
//
|
//
|
||||||
// Based on code from ScummVM - Scumm Interpreter
|
// Based on code from ScummVM - Scumm Interpreter
|
||||||
// Copyright (C) 2002-2004 The ScummVM project
|
// Copyright (C) 2002-2004 The ScummVM project
|
||||||
|
@ -107,7 +107,7 @@ class GameInfoDialog : public Dialog, public CommandSender
|
||||||
bool myDefaultsSelected;
|
bool myDefaultsSelected;
|
||||||
|
|
||||||
/** Holds static strings for Cartridge type */
|
/** Holds static strings for Cartridge type */
|
||||||
static const char* ourCartridgeList[23][2];
|
static const char* ourCartridgeList[24][2];
|
||||||
|
|
||||||
/** Holds static strings for Controller type */
|
/** Holds static strings for Controller type */
|
||||||
static const char* ourControllerList[5][2];
|
static const char* ourControllerList[5][2];
|
||||||
|
|
Loading…
Reference in New Issue