1
0
mirror of https://github.com/citra-emu/citra.git synced 2024-12-19 17:31:05 +00:00

fix review comments

This commit is contained in:
B3n30 2020-03-15 18:57:29 +01:00
parent 391580c658
commit 2465fd423a
2 changed files with 2 additions and 4 deletions
src/core
file_sys
hle/service/am

View File

@ -137,7 +137,6 @@ Loader::ResultStatus NCCHContainer::LoadHeader() {
if (has_header) if (has_header)
return Loader::ResultStatus::Success; return Loader::ResultStatus::Success;
if (!file.IsOpen()) { if (!file.IsOpen()) {
return Loader::ResultStatus::Error; return Loader::ResultStatus::Error;
} }

View File

@ -36,9 +36,8 @@
namespace { namespace {
bool HasSupportedFileExtension(std::string path) { bool HasSupportedFileExtension(std::string path) {
static const std::array<std::string, 7> extensions = {{".3ds", ".3dsx", ".elf", ".axf", ".cci", static const std::array<std::string, 7> extensions = {
".cxi" {".3ds", ".3dsx", ".elf", ".axf", ".cci", ".cxi", ".app"}};
".app"}};
const auto file_ext = FileUtil::GetExtensionFromFilename(path); const auto file_ext = FileUtil::GetExtensionFromFilename(path);
return std::find(extensions.begin(), extensions.end(), file_ext) != extensions.end(); return std::find(extensions.begin(), extensions.end(), file_ext) != extensions.end();
} }