From 718c529a880ebbc94e1bf060e0a0014b009ddc16 Mon Sep 17 00:00:00 2001 From: slack Date: Tue, 10 Jun 2008 21:55:30 +0200 Subject: [PATCH] Fixed GBRom test --- GBRom.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GBRom.cc b/GBRom.cc index a0d7e9d..4cccf7f 100644 --- a/GBRom.cc +++ b/GBRom.cc @@ -76,8 +76,15 @@ GBRom *read_gbrom(std::string filename) } #ifdef TEST_GBROM + +#include + int main(int argc, char *argv[]) { + if (argc != 2) { + std::cout << "Usage: " << argv[0] << " romname" << std::endl; + std::exit(EXIT_FAILURE); + } GBRom *rom=read_gbrom(argv[1]); } #endif -- 2.34.1