mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-20 14:15:11 +00:00
Setting the window's name to the game's name
This commit is contained in:
@@ -6,13 +6,15 @@
|
||||
|
||||
namespace ComSquare
|
||||
{
|
||||
SNES::SNES(const std::shared_ptr<Memory::MemoryBus> &bus, const std::string &romPath) :
|
||||
SNES::SNES(const std::shared_ptr<Memory::MemoryBus> &bus, const std::string &romPath, Renderer::IRenderer &renderer) :
|
||||
cpu(new CPU::CPU(bus)),
|
||||
ppu(new PPU::PPU()),
|
||||
apu(new APU::APU()),
|
||||
cartridge(new Cartridge::Cartridge(romPath)),
|
||||
wram(new Ram::Ram(16384))
|
||||
wram(new Ram::Ram(16384)),
|
||||
sram(new Ram::Ram(this->cartridge->header.sramSize))
|
||||
{
|
||||
bus->mapComponents(*this);
|
||||
renderer.setWindowName(this->cartridge->header.gameName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user