From 1b08d0f851dca4517e172e56879173fe86ea31ca Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 26 Nov 2019 23:48:39 -0600 Subject: [PATCH] [nostalgia/player] Replace C header with C++ equivalent --- src/nostalgia/player/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/player/main.cpp b/src/nostalgia/player/main.cpp index 93833bcc..6fad7364 100644 --- a/src/nostalgia/player/main.cpp +++ b/src/nostalgia/player/main.cpp @@ -43,7 +43,7 @@ int main() { #else #include -#include +#include std::vector loadFileBuff(const char *path) { auto file = fopen(path, "r"); @@ -64,7 +64,7 @@ int main(int argc, const char **argv) { if (argc > 1) { std::unique_ptr fs; std::vector rom; - std::string path = argv[1]; + const std::string path = argv[1]; const auto lastDot = path.find_last_of('.'); const std::string fsExt = lastDot != std::string::npos ? path.substr(lastDot) : ""; if (fsExt == ".oxfs") {