Suppress CA1416 warnings, correct argument kind in IFileSystem

This commit is contained in:
KeatonTheBot 2025-06-01 01:56:20 -05:00 committed by KeatonTheBot
parent 18f302c0b0
commit e09f16838e
4 changed files with 7 additions and 1 deletions

View file

@ -1,10 +1,12 @@
using Ryujinx.Common;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace Ryujinx.Cpu.Signal
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
static partial class UnixSignalHandlerRegistration
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]

View file

@ -134,7 +134,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
ref readonly Path name = ref FileSystemProxyHelper.GetSfPath(context);
using var dir = new SharedRef<LibHac.FsSrv.Sf.IDirectory>();
Result result = _fileSystem.Get.OpenDirectory(ref dir.Ref, name, mode);
Result result = _fileSystem.Get.OpenDirectory(ref dir.Ref, in name, mode);
if (result.IsSuccess())
{

View file

@ -1,8 +1,10 @@
using Ryujinx.Common;
using System;
using System.Diagnostics.CodeAnalysis;
namespace Ryujinx.Memory
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public static class MemoryManagement
{
public static IntPtr Allocate(ulong size, bool forJit)

View file

@ -2,6 +2,7 @@ using Ryujinx.Common;
using Ryujinx.Common.Logging;
using System;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using static Ryujinx.Memory.MemoryManagerUnixHelper;
@ -11,6 +12,7 @@ namespace Ryujinx.Memory
[SupportedOSPlatform("linux")]
[SupportedOSPlatform("macos")]
[SupportedOSPlatform("android")]
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
static class MemoryManagementUnix
{
private static readonly ConcurrentDictionary<IntPtr, ulong> _allocations = new();