mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-20 09:53:55 +00:00
f
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "common/string_util.h"
|
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/file_sys/common_funcs.h"
|
#include "core/file_sys/common_funcs.h"
|
||||||
#include "core/file_sys/content_archive.h"
|
#include "core/file_sys/content_archive.h"
|
||||||
@@ -57,9 +56,8 @@ AppLoader_NSP::AppLoader_NSP(FileSys::VirtualFile file_,
|
|||||||
AppLoader_NSP::~AppLoader_NSP() = default;
|
AppLoader_NSP::~AppLoader_NSP() = default;
|
||||||
|
|
||||||
FileType AppLoader_NSP::IdentifyType(const FileSys::VirtualFile& nsp_file) {
|
FileType AppLoader_NSP::IdentifyType(const FileSys::VirtualFile& nsp_file) {
|
||||||
const auto name = Common::ToLower(nsp_file->GetName());
|
|
||||||
// .nsz is NSP-compatible; return NSZ so the game list shows the right type.
|
// .nsz is NSP-compatible; return NSZ so the game list shows the right type.
|
||||||
if (name.ends_with(".nsz")) {
|
if (nsp_file->GetName().ends_with(".nsz")) {
|
||||||
return FileType::NSZ;
|
return FileType::NSZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user