Don't ignore SCE_KERNEL_ERROR_NOCWD in many cases.

Use a error 1 to mean the uccessful mapping but carry with  SCE_KERNEL_ERROR_NOCWD error.
This commit is contained in:
shenweip
2019-12-13 17:59:55 +08:00
parent fd6b0554d6
commit c3a489fa90
3 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ public:
inline int MapFilePath(const std::string &_inpath, std::string &outpath, IFileSystem **system) {
MountPoint *mountPoint;
int error = MapFilePath(_inpath, outpath, &mountPoint);
if (error == 0 || error == SCE_KERNEL_ERROR_NOCWD) {
if (error >= 0) {
*system = mountPoint->system;
return error;
}