From 1890b4101ee0f319993abeba67a13aef0bde2eb0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 12 Jan 2020 20:47:53 -0600 Subject: [PATCH] [nostalgia/player] Make no-FS case an error --- src/nostalgia/player/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/player/main.cpp b/src/nostalgia/player/main.cpp index 0fd47287..48b8ff9c 100644 --- a/src/nostalgia/player/main.cpp +++ b/src/nostalgia/player/main.cpp @@ -41,9 +41,11 @@ int main(int argc, const char **argv) { return 1; } fs = new (ox_alloca(sizeof(ox::FileStore32))) ox::FileSystem32(ox::FileStore32(rom, 32 * ox::units::MB)); -#ifdef OX_HAS_PASSTHROUGHFS } else { +#ifdef OX_HAS_PASSTHROUGHFS fs = new (ox_alloca(sizeof(ox::PassThroughFS))) ox::PassThroughFS(path); +#else + return 2; #endif } auto err = run(fs); @@ -51,5 +53,5 @@ int main(int argc, const char **argv) { unloadRom(rom); return err; } - return 2; + return 3; }