From 2465fd423a405da85dd02235efa90d8f3b96be67 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 15 Mar 2020 18:57:29 +0100 Subject: [PATCH] fix review comments --- src/core/file_sys/ncch_container.cpp | 1 - src/core/hle/service/am/am.cpp | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/file_sys/ncch_container.cpp b/src/core/file_sys/ncch_container.cpp index 651b0d3071..bb972c4318 100644 --- a/src/core/file_sys/ncch_container.cpp +++ b/src/core/file_sys/ncch_container.cpp @@ -137,7 +137,6 @@ Loader::ResultStatus NCCHContainer::LoadHeader() { if (has_header) return Loader::ResultStatus::Success; if (!file.IsOpen()) { - return Loader::ResultStatus::Error; } diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 4c1fdc33de..f3d7ea985a 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -36,9 +36,8 @@ namespace { bool HasSupportedFileExtension(std::string path) { - static const std::array extensions = {{".3ds", ".3dsx", ".elf", ".axf", ".cci", - ".cxi" - ".app"}}; + static const std::array extensions = { + {".3ds", ".3dsx", ".elf", ".axf", ".cci", ".cxi", ".app"}}; const auto file_ext = FileUtil::GetExtensionFromFilename(path); return std::find(extensions.begin(), extensions.end(), file_ext) != extensions.end(); }