mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-04 18:46:11 +00:00
Cleaning up
This commit is contained in:
@@ -13,6 +13,6 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
ComSquare::MemoryBus bus;
|
ComSquare::MemoryBus bus;
|
||||||
ComSquare::SNES snes(std::make_shared<ComSquare::MemoryBus>(bus), std::string(argv[1]));
|
ComSquare::SNES snes(std::make_shared<ComSquare::MemoryBus>(bus), argv[1]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ namespace ComSquare::Cartridge
|
|||||||
struct stat info;
|
struct stat info;
|
||||||
|
|
||||||
if (stat(romPath.c_str(), &info) < 0)
|
if (stat(romPath.c_str(), &info) < 0)
|
||||||
throw InvalidRomException("File not found.");
|
throw InvalidRomException("Could not stat the rom file at " + romPath + ". " + strerror(errno));
|
||||||
return info.st_size;
|
return info.st_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user