mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Disable naming inspections in p/invoke code
This commit is contained in:
parent
fe9e6168fe
commit
981a19f6a5
@ -489,6 +489,7 @@ namespace osu.Desktop
|
|||||||
public static uint Stride => (uint)Marshal.SizeOf(typeof(NvApplication)) | (2 << 16);
|
public static uint Stride => (uint)Marshal.SizeOf(typeof(NvApplication)) | (2 << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper disable InconsistentNaming
|
||||||
internal enum NvStatus
|
internal enum NvStatus
|
||||||
{
|
{
|
||||||
OK = 0, // Success. Request is completed.
|
OK = 0, // Success. Request is completed.
|
||||||
@ -738,4 +739,6 @@ namespace osu.Desktop
|
|||||||
OGL_THREAD_CONTROL_NUM_VALUES = 2,
|
OGL_THREAD_CONTROL_NUM_VALUES = 2,
|
||||||
OGL_THREAD_CONTROL_DEFAULT = 0
|
OGL_THREAD_CONTROL_DEFAULT = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper restore InconsistentNaming
|
||||||
}
|
}
|
||||||
|
@ -163,6 +163,8 @@ namespace osu.Desktop.Windows
|
|||||||
[DllImport("Shell32.dll")]
|
[DllImport("Shell32.dll")]
|
||||||
private static extern void SHChangeNotify(EventId wEventId, Flags uFlags, IntPtr dwItem1, IntPtr dwItem2);
|
private static extern void SHChangeNotify(EventId wEventId, Flags uFlags, IntPtr dwItem1, IntPtr dwItem2);
|
||||||
|
|
||||||
|
// ReSharper disable InconsistentNaming
|
||||||
|
|
||||||
private enum EventId
|
private enum EventId
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -174,9 +176,12 @@ namespace osu.Desktop.Windows
|
|||||||
|
|
||||||
private enum Flags : uint
|
private enum Flags : uint
|
||||||
{
|
{
|
||||||
|
// ReSharper disable once InconsistentNaming
|
||||||
SHCNF_IDLIST = 0x0000
|
SHCNF_IDLIST = 0x0000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper restore InconsistentNaming
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private record FileAssociation(string Extension, LocalisableString Description, string IconPath)
|
private record FileAssociation(string Extension, LocalisableString Description, string IconPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user