mirror of https://github.com/stella-emu/stella.git
Remove unnecessary dependencies on TIA, namespace default core, remove friends.
This commit is contained in:
parent
83417e976f
commit
c642de2671
|
@ -23,7 +23,6 @@
|
|||
#include "bspf.hxx"
|
||||
#include "FrameBuffer.hxx"
|
||||
#include "Props.hxx"
|
||||
#include "TIA.hxx"
|
||||
#include "PNGLibrary.hxx"
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
class FrameBuffer;
|
||||
class FBSurface;
|
||||
class Properties;
|
||||
class TIA;
|
||||
|
||||
#include <fstream>
|
||||
#include "bspf.hxx"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue