From f24c3566cb680070d6d6194cbba4f0700a106c7f Mon Sep 17 00:00:00 2001 From: AnonymusRaccoon Date: Mon, 27 Jan 2020 18:28:42 +0100 Subject: [PATCH] Cleaning up --- main.cpp | 4 ++-- sources/Cartridge/Cartridge.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index b332139..7544138 100644 --- a/main.cpp +++ b/main.cpp @@ -13,6 +13,6 @@ int main(int argc, char **argv) return 1; } ComSquare::MemoryBus bus; - ComSquare::SNES snes(std::make_shared(bus), std::string(argv[1])); - return 0; + ComSquare::SNES snes(std::make_shared(bus), argv[1]); + return 0; } \ No newline at end of file diff --git a/sources/Cartridge/Cartridge.cpp b/sources/Cartridge/Cartridge.cpp index 69ccee2..2f11dd8 100644 --- a/sources/Cartridge/Cartridge.cpp +++ b/sources/Cartridge/Cartridge.cpp @@ -15,7 +15,7 @@ namespace ComSquare::Cartridge struct stat info; 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; }