mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-23 10:42:55 +00:00
fix review comments
This commit is contained in:
parent
391580c658
commit
2465fd423a
|
@ -137,7 +137,6 @@ Loader::ResultStatus NCCHContainer::LoadHeader() {
|
|||
if (has_header)
|
||||
return Loader::ResultStatus::Success;
|
||||
if (!file.IsOpen()) {
|
||||
|
||||
return Loader::ResultStatus::Error;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,9 +36,8 @@
|
|||
|
||||
namespace {
|
||||
bool HasSupportedFileExtension(std::string path) {
|
||||
static const std::array<std::string, 7> extensions = {{".3ds", ".3dsx", ".elf", ".axf", ".cci",
|
||||
".cxi"
|
||||
".app"}};
|
||||
static const std::array<std::string, 7> 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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue