From 6b7419f2d1be5c6baa43d7e0030df2236a9b9408 Mon Sep 17 00:00:00 2001 From: estolberg Date: Wed, 27 Feb 2008 14:16:52 +0000 Subject: [PATCH] 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 --- stella/src/gui/GameInfoDialog.cxx | 15 ++++++++------- stella/src/gui/GameInfoDialog.hxx | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/stella/src/gui/GameInfoDialog.cxx b/stella/src/gui/GameInfoDialog.cxx index 41e462aec..f05547016 100644 --- a/stella/src/gui/GameInfoDialog.cxx +++ b/stella/src/gui/GameInfoDialog.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // 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 // Copyright (C) 2002-2004 The ScummVM project @@ -119,7 +119,7 @@ GameInfoDialog::GameInfoDialog( pwidth = font.getStringWidth("SB (128-256k SUPERbanking)"); myType = new PopUpWidget(myTab, font, xpos+lwidth, ypos, pwidth, lineHeight, "", 0, 0); - for(i = 0; i < 23; ++i) + for(i = 0; i < 24; ++i) myType->appendEntry(ourCartridgeList[i][0], i+1); wid.push_back(myType); @@ -387,12 +387,12 @@ void GameInfoDialog::loadView() mySound->setSelectedTag(0); s = myGameProperties.get(Cartridge_Type); - for(i = 0; i < 23; ++i) + for(i = 0; i < 24; ++i) { if(s == ourCartridgeList[i][1]) break; } - i = (i == 23) ? 0: i + 1; + i = (i == 24) ? 0: i + 1; myType->setSelectedTag(i); // Console properties @@ -539,7 +539,7 @@ void GameInfoDialog::saveConfig() myGameProperties.set(Cartridge_Sound, s); tag = myType->getSelectedTag(); - for(i = 0; i < 23; ++i) + for(i = 0; i < 24; ++i) { 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" }, { "2K (2K Atari)", "2K" }, { "3E (32K Tigervision)", "3E" }, @@ -704,5 +704,6 @@ const char* GameInfoDialog::ourCartridgeList[23][2] = { { "MB (Dynacom Megaboy)", "MB" }, { "MC (C. Wilkson Megacart)", "MC" }, { "SB (128-256k SUPERbanking)", "SB" }, - { "UA (8K UA Ltd.)", "UA" } + { "UA (8K UA Ltd.)", "UA" }, + { "X07 (64K AtariAge)", "X07" } }; diff --git a/stella/src/gui/GameInfoDialog.hxx b/stella/src/gui/GameInfoDialog.hxx index cd8fc1ec3..dbdb0b50e 100644 --- a/stella/src/gui/GameInfoDialog.hxx +++ b/stella/src/gui/GameInfoDialog.hxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // 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 // Copyright (C) 2002-2004 The ScummVM project @@ -107,7 +107,7 @@ class GameInfoDialog : public Dialog, public CommandSender bool myDefaultsSelected; /** Holds static strings for Cartridge type */ - static const char* ourCartridgeList[23][2]; + static const char* ourCartridgeList[24][2]; /** Holds static strings for Controller type */ static const char* ourControllerList[5][2];