mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-25 05:55:35 +00:00
Switched to the ERROR_NOT_FOUND constant from errors.h.
This commit is contained in:
parent
cea19fd659
commit
59de38b965
|
@ -11,6 +11,7 @@
|
||||||
#include "common/string_util.h"
|
#include "common/string_util.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/file_sys/archive_ncch.h"
|
#include "core/file_sys/archive_ncch.h"
|
||||||
|
#include "core/file_sys/errors.h"
|
||||||
#include "core/file_sys/ivfc_archive.h"
|
#include "core/file_sys/ivfc_archive.h"
|
||||||
#include "core/hle/service/fs/archive.h"
|
#include "core/hle/service/fs/archive.h"
|
||||||
|
|
||||||
|
@ -71,8 +72,7 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_NCCH::Open(const Path&
|
||||||
"NG bad word list");
|
"NG bad word list");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ResultCode(ErrorDescription::FS_NotFound, ErrorModule::FS, ErrorSummary::NotFound,
|
return ERROR_NOT_FOUND;
|
||||||
ErrorLevel::Status);
|
|
||||||
}
|
}
|
||||||
auto size = file->GetSize();
|
auto size = file->GetSize();
|
||||||
|
|
||||||
|
|
|
@ -258,8 +258,7 @@ ResultVal<ArchiveHandle> OpenArchive(ArchiveIdCode id_code, FileSys::Path& archi
|
||||||
|
|
||||||
auto itr = id_code_map.find(id_code);
|
auto itr = id_code_map.find(id_code);
|
||||||
if (itr == id_code_map.end())
|
if (itr == id_code_map.end())
|
||||||
return ResultCode(ErrorDescription::FS_NotFound, ErrorModule::FS, ErrorSummary::NotFound,
|
return FileSys::ERROR_NOT_FOUND;
|
||||||
ErrorLevel::Status);
|
|
||||||
|
|
||||||
CASCADE_RESULT(std::unique_ptr<ArchiveBackend> res, itr->second->Open(archive_path));
|
CASCADE_RESULT(std::unique_ptr<ArchiveBackend> res, itr->second->Open(archive_path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue