Remove unnecessary dependencies on TIA, namespace default core, remove friends.

This commit is contained in:
Christian Speckner 2016-10-30 20:29:41 +01:00
parent 83417e976f
commit c642de2671
7 changed files with 18 additions and 3 deletions

View File

@ -23,7 +23,6 @@
#include "bspf.hxx"
#include "FrameBuffer.hxx"
#include "Props.hxx"
#include "TIA.hxx"
#include "PNGLibrary.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -25,7 +25,6 @@
class FrameBuffer;
class FBSurface;
class Properties;
class TIA;
#include <fstream>
#include "bspf.hxx"

View File

@ -83,7 +83,7 @@ Console::Console(OSystem& osystem, unique_ptr<Cartridge>& cart,
// Create subsystems for the console
my6502 = make_ptr<M6502>(myOSystem.settings());
myRiot = make_ptr<M6532>(*this, myOSystem.settings());
myTIA = make_ptr<TIA>(*this, myOSystem.sound(), myOSystem.settings());
myTIA = make_ptr<TIADefaultCore::TIA>(*this, myOSystem.sound(), myOSystem.settings());
mySwitches = make_ptr<Switches>(myEvent, myProperties);
// Construct the system and components

View File

@ -37,6 +37,8 @@
#define HBLANK 68
#define CLAMP_POS(reg) if(reg < 0) { reg += 160; } reg %= 160;
namespace TIADefaultCore {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TIA::TIA(Console& console, Sound& sound, Settings& settings)
: myConsole(console),
@ -2489,3 +2491,5 @@ inline void TIA::applyPreviousHMOVEMotion(int hpos, Int16& pos, uInt8 motion)
}
}
}
} // namespace TIADefaultCore

View File

@ -29,6 +29,8 @@ class Sound;
#include "System.hxx"
#include "TIATables.hxx"
namespace TIADefaultCore {
/**
This class is a device that emulates the Television Interface Adaptor
found in the Atari 2600 and 7800 consoles. The Television Interface
@ -648,4 +650,6 @@ class TIA : public AbstractTIA
TIA& operator=(TIA&&) = delete;
};
} // namespace TIADefaultCore
#endif

View File

@ -22,6 +22,8 @@
#include "bspf.hxx"
#include "TIATables.hxx"
namespace TIADefaultCore {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TIATables::computeAllTables()
{
@ -724,3 +726,5 @@ uInt8 TIATables::DisabledMask[640];
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Int8 TIATables::PxPosResetWhen[8][160][160];
} // namespace TIADefaultCore

View File

@ -31,6 +31,9 @@
@author Stephen Anthony
@version $Id$
*/
namespace TIADefaultCore {
class TIATables
{
public:
@ -114,4 +117,6 @@ class TIATables
TIATables& operator=(TIATables&&) = delete;
};
} // namespace TIADefaultCore
#endif