Added '-bs' commandline argument, which does the same thing as '-type'

(sets the bankswitch type).  I'm leaving the '-type' there as well,
just in case there are people (or frontends) that depend on it.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1414 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2008-03-03 14:53:34 +00:00
parent 0550990c59
commit 6f2f1da0f9
2 changed files with 6 additions and 3 deletions

View File

@ -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: OSystem.cxx,v 1.115 2008-02-06 13:45:22 stephena Exp $
// $Id: OSystem.cxx,v 1.116 2008-03-03 14:53:34 stephena Exp $
//============================================================================
#include <cassert>
@ -631,6 +631,8 @@ bool OSystem::queryConsoleInfo(const uInt8* image, uInt32 size,
string s;
myPropSet->getMD5(md5, props);
s = mySettings->getString("bs");
if(s != "") props.set(Cartridge_Type, s);
s = mySettings->getString("type");
if(s != "") props.set(Cartridge_Type, s);
s = mySettings->getString("channels");

View File

@ -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: Settings.cxx,v 1.131 2008-03-02 20:48:51 stephena Exp $
// $Id: Settings.cxx,v 1.132 2008-03-03 14:53:34 stephena Exp $
//============================================================================
#include <cassert>
@ -343,7 +343,8 @@ void Settings::usage()
<< " -holdselect Start the emulator with the Game Select switch held down\n"
<< " -holdbutton0 Start the emulator with the left joystick button held down\n"
<< endl
<< " -type <arg> Sets the 'Cartridge.Type' property\n"
<< " -bs <arg> Sets the 'Cartridge.Type' (bankswitch) property\n"
<< " -type <arg> Same as using -bs\n"
<< " -channels <arg> Sets the 'Cartridge.Sound' property\n"
<< " -ld <arg> Sets the 'Console.LeftDifficulty' property\n"
<< " -rd <arg> Sets the 'Console.RightDifficulty' property\n"