mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-08 12:10:34 +00:00
Starting to load symbols
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
namespace ComSquare::Cartridge
|
||||
{
|
||||
Cartridge::Cartridge(const std::string &romPath)
|
||||
: Ram::Ram(0, Rom, "Cartridge")
|
||||
: Ram::Ram(0, Rom, "Cartridge"),
|
||||
_romPath(romPath)
|
||||
{
|
||||
if (romPath.empty())
|
||||
throw InvalidRomException("Path is empty.");
|
||||
@@ -48,6 +49,11 @@ namespace ComSquare::Cartridge
|
||||
throw InvalidAction("Witting to the ROM is not allowed.");
|
||||
}
|
||||
|
||||
std::filesystem::path Cartridge::getRomPath() const
|
||||
{
|
||||
return this->_romPath;
|
||||
}
|
||||
|
||||
Header Cartridge::_mapHeader(uint32_t headerAddress)
|
||||
{
|
||||
Header head;
|
||||
|
||||
Reference in New Issue
Block a user