mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-14 16:37:07 +00:00
Suppress CA1416 warnings, correct argument kind in IFileSystem
This commit is contained in:
parent
18f302c0b0
commit
e09f16838e
4 changed files with 7 additions and 1 deletions
|
|
@ -1,10 +1,12 @@
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Versioning;
|
using System.Runtime.Versioning;
|
||||||
|
|
||||||
namespace Ryujinx.Cpu.Signal
|
namespace Ryujinx.Cpu.Signal
|
||||||
{
|
{
|
||||||
|
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
|
||||||
static partial class UnixSignalHandlerRegistration
|
static partial class UnixSignalHandlerRegistration
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
||||||
ref readonly Path name = ref FileSystemProxyHelper.GetSfPath(context);
|
ref readonly Path name = ref FileSystemProxyHelper.GetSfPath(context);
|
||||||
using var dir = new SharedRef<LibHac.FsSrv.Sf.IDirectory>();
|
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())
|
if (result.IsSuccess())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Ryujinx.Memory
|
namespace Ryujinx.Memory
|
||||||
{
|
{
|
||||||
|
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
|
||||||
public static class MemoryManagement
|
public static class MemoryManagement
|
||||||
{
|
{
|
||||||
public static IntPtr Allocate(ulong size, bool forJit)
|
public static IntPtr Allocate(ulong size, bool forJit)
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using Ryujinx.Common;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Versioning;
|
using System.Runtime.Versioning;
|
||||||
using static Ryujinx.Memory.MemoryManagerUnixHelper;
|
using static Ryujinx.Memory.MemoryManagerUnixHelper;
|
||||||
|
|
@ -11,6 +12,7 @@ namespace Ryujinx.Memory
|
||||||
[SupportedOSPlatform("linux")]
|
[SupportedOSPlatform("linux")]
|
||||||
[SupportedOSPlatform("macos")]
|
[SupportedOSPlatform("macos")]
|
||||||
[SupportedOSPlatform("android")]
|
[SupportedOSPlatform("android")]
|
||||||
|
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
|
||||||
static class MemoryManagementUnix
|
static class MemoryManagementUnix
|
||||||
{
|
{
|
||||||
private static readonly ConcurrentDictionary<IntPtr, ulong> _allocations = new();
|
private static readonly ConcurrentDictionary<IntPtr, ulong> _allocations = new();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue