Adding shadows

This commit is contained in:
AnonymusRaccoon
2020-01-28 17:29:41 +01:00
parent dbca55e98c
commit 235f147109
12 changed files with 90 additions and 21 deletions
+9 -4
View File
@@ -8,15 +8,20 @@
#include "Memory/MemoryBus.hpp"
#include "CPU/CPU.hpp"
#include "Cartridge/Cartridge.hpp"
#include "Ram/Ram.hpp"
#include "PPU/PPU.hpp"
#include "APU/APU.hpp"
namespace ComSquare
{
//! @brief Container of all the components of the SNES.
class SNES {
private:
CPU::CPU _cpu;
Cartridge::Cartridge _cartridge;
struct SNES {
public:
std::shared_ptr<CPU::CPU> cpu;
std::shared_ptr<PPU::PPU> ppu;
std::shared_ptr<APU::APU> apu;
std::shared_ptr<Cartridge::Cartridge> cartridge;
std::shared_ptr<Ram::Ram> wram;
//! @brief Create all the components using a common memory bus for all of them.
SNES(const std::shared_ptr<MemoryBus> &bus, const std::string &ramPath);
};