diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-26 23:19:56 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-26 23:19:56 +0100 |
| commit | 430a246fe81d7eab6823bf6ca4562fd1e99f2a5d (patch) | |
| tree | 75c5f4e8eeeb1e5f25c866e828440e5c493bed8b /app/test/main.cc | |
| parent | d1f4b65eafe9c41ecca7bbe8026ec0a693c1ecda (diff) | |
refactor mappers
Diffstat (limited to 'app/test/main.cc')
| -rw-r--r-- | app/test/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test/main.cc b/app/test/main.cc index 564b593..70a66ac 100644 --- a/app/test/main.cc +++ b/app/test/main.cc @@ -44,9 +44,9 @@ int main() // Initialize the system to be tested. auto cartridge_a = nes::cartridge::from_file(path); - if (!cartridge_a.is_valid()) + if (cartridge_a.get_status() != nes::status::success) { - std::cerr << "Could not load cartridge!" << std::endl; + std::cerr << "Could not load cartridge: " << to_string(cartridge_a.get_status()) << std::endl; std::abort(); } auto display_a = std::make_unique<dummy_display>(); |
