mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-09 21:58:52 +02:00
misc: chore: Fix possible NullReferenceExceptions, suppress warnings
This commit is contained in:
@@ -78,9 +78,9 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
||||
|
||||
DirectoryInfo archivePath = new DirectoryInfo(fullPath).Parent;
|
||||
|
||||
while (string.IsNullOrWhiteSpace(archivePath.Extension))
|
||||
while (string.IsNullOrWhiteSpace(archivePath?.Extension))
|
||||
{
|
||||
archivePath = archivePath.Parent;
|
||||
archivePath = archivePath?.Parent;
|
||||
}
|
||||
|
||||
if (archivePath.Extension == ".nsp" && File.Exists(archivePath.FullName))
|
||||
|
||||
Reference in New Issue
Block a user