mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-08 04:00:38 +00:00
Allowing cartridge without path for testing
This commit is contained in:
@@ -14,6 +14,8 @@ namespace ComSquare::Cartridge
|
||||
{
|
||||
Cartridge::Cartridge(const std::string &romPath)
|
||||
{
|
||||
if (romPath.empty())
|
||||
return;
|
||||
try {
|
||||
size_t size = Cartridge::getRomSize(romPath);
|
||||
FILE *rom = fopen(romPath.c_str(), "rb");
|
||||
|
||||
Reference in New Issue
Block a user