|
From: <ste...@us...> - 2009-05-21 22:39:40
|
Revision: 1738
http://stella.svn.sourceforge.net/stella/?rev=1738&view=rev
Author: stephena
Date: 2009-05-21 22:39:32 +0000 (Thu, 21 May 2009)
Log Message:
-----------
Removed more dead code related to emulating the AtariVox.
Modified Paths:
--------------
trunk/src/emucore/AtariVox.cxx
trunk/src/emucore/AtariVox.hxx
trunk/src/emucore/Console.cxx
trunk/src/emucore/Console.hxx
Modified: trunk/src/emucore/AtariVox.cxx
===================================================================
--- trunk/src/emucore/AtariVox.cxx 2009-05-21 22:31:33 UTC (rev 1737)
+++ trunk/src/emucore/AtariVox.cxx 2009-05-21 22:39:32 UTC (rev 1738)
@@ -16,10 +16,6 @@
// $Id$
//============================================================================
-#ifdef SPEAKJET_EMULATION
- #include "SpeakJet.hxx"
-#endif
-
#include "MT24LC256.hxx"
#include "SerialPort.hxx"
#include "System.hxx"
@@ -36,15 +32,10 @@
myShiftRegister(0),
myLastDataWriteCycle(0)
{
-#ifndef SPEAKJET_EMULATION
if(mySerialPort.openPort(portname))
myAboutString = " (using serial port \'" + portname + "\')";
else
myAboutString = " (invalid serial port \'" + portname + "\')";
-#else
- mySpeakJet = new SpeakJet();
- myAboutString = " (emulating SpeakJet device)";
-#endif
myEEPROM = new MT24LC256(eepromfile, system);
@@ -57,11 +48,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AtariVox::~AtariVox()
{
-#ifndef SPEAKJET_EMULATION
mySerialPort.closePort();
-#else
- delete mySpeakJet;
-#endif
delete myEEPROM;
}
@@ -158,11 +145,7 @@
else
{
uInt8 data = ((myShiftRegister >> 1) & 0xff);
- #ifndef SPEAKJET_EMULATION
mySerialPort.writeByte(&data);
- #else
- mySpeakJet->write(data);
- #endif
}
myShiftRegister = 0;
}
Modified: trunk/src/emucore/AtariVox.hxx
===================================================================
--- trunk/src/emucore/AtariVox.hxx 2009-05-21 22:31:33 UTC (rev 1737)
+++ trunk/src/emucore/AtariVox.hxx 2009-05-21 22:39:32 UTC (rev 1738)
@@ -19,7 +19,6 @@
#ifndef ATARIVOX_HXX
#define ATARIVOX_HXX
-class SpeakJet;
class SerialPort;
class MT24LC256;
@@ -91,10 +90,6 @@
virtual string about() const;
-#ifdef SPEAKJET_EMULATION
- SpeakJet* getSpeakJet() { return mySpeakJet; }
-#endif
-
private:
void clockDataIn(bool value);
void shiftIn(bool value);
@@ -108,11 +103,6 @@
// The EEPROM used in the AtariVox
MT24LC256* myEEPROM;
-#ifdef SPEAKJET_EMULATION
- // Instance of SpeakJet which will actually do the talking for us.
- SpeakJet *mySpeakJet;
-#endif
-
// How many bits have been shifted into the shift register?
uInt8 myShiftCount;
Modified: trunk/src/emucore/Console.cxx
===================================================================
--- trunk/src/emucore/Console.cxx 2009-05-21 22:31:33 UTC (rev 1737)
+++ trunk/src/emucore/Console.cxx 2009-05-21 22:39:32 UTC (rev 1738)
@@ -63,7 +63,6 @@
Console::Console(OSystem* osystem, Cartridge* cart, const Properties& props)
: myOSystem(osystem),
myProperties(props),
- myAVox(0),
myDisplayFormat("NTSC"),
myFramerate(60.0),
myUserPaletteDefined(false)
@@ -667,8 +666,8 @@
{
const string& eepromfile = myOSystem->eepromDir() + BSPF_PATH_SEPARATOR +
"atarivox_eeprom.dat";
- myControllers[rightPort] = myAVox =
- new AtariVox(Controller::Right, *myEvent, *mySystem, myOSystem->serialPort(),
+ myControllers[rightPort] = new AtariVox(Controller::Right, *myEvent,
+ *mySystem, myOSystem->serialPort(),
myOSystem->settings().getString("avoxport"), eepromfile);
}
else if(right == "SAVEKEY")
Modified: trunk/src/emucore/Console.hxx
===================================================================
--- trunk/src/emucore/Console.hxx 2009-05-21 22:31:33 UTC (rev 1737)
+++ trunk/src/emucore/Console.hxx 2009-05-21 22:39:32 UTC (rev 1738)
@@ -264,9 +264,6 @@
void togglePFBit() const { toggleTIABit(TIA::PF, "PF"); }
void enableBits(bool enable) const;
- // TODO - make the core code work without needing to access this
- AtariVox* atariVox() { return myAVox; }
-
private:
/**
Adds the left and right controllers to the console
@@ -322,8 +319,6 @@
// A RIOT of my own! (...with apologies to The Clash...)
M6532 *myRiot;
- AtariVox* myAVox;
-
// The currently defined display format (NTSC/PAL/SECAM)
string myDisplayFormat;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|