add file check in fsp-srv:8
This commit is contained in:
parent
cacac0ea6e
commit
a6c21db0e3
1 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,11 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
|
|
||||||
string FullPath = Context.Device.FileSystem.SwitchPathToSystemPath(SwitchPath);
|
string FullPath = Context.Device.FileSystem.SwitchPathToSystemPath(SwitchPath);
|
||||||
|
|
||||||
|
if (!File.Exists(FullPath))
|
||||||
|
{
|
||||||
|
return MakeError(ErrorModule.Fs, FsErr.PathDoesNotExist);
|
||||||
|
}
|
||||||
|
|
||||||
FileStream FileStream = new FileStream(FullPath, FileMode.Open, FileAccess.Read);
|
FileStream FileStream = new FileStream(FullPath, FileMode.Open, FileAccess.Read);
|
||||||
|
|
||||||
string Extension = Path.GetExtension(FullPath);
|
string Extension = Path.GetExtension(FullPath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue