mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 06:20:34 +00:00
Fix struct reordering (#3247)
This commit is contained in:
@@ -524,6 +524,22 @@
|
|||||||
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/XmlFormatter/WRAP_LINES/@EntryValue">False</s:Boolean>
|
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/XmlFormatter/WRAP_LINES/@EntryValue">False</s:Boolean>
|
||||||
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue"><?xml version="1.0" encoding="utf-16"?>
|
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue"><?xml version="1.0" encoding="utf-16"?>
|
||||||
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
|
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
|
||||||
|
<TypePattern DisplayName="Non-reorderable types" Priority="99999999">
|
||||||
|
<TypePattern.Match>
|
||||||
|
<Or>
|
||||||
|
<And>
|
||||||
|
<Kind Is="Interface" />
|
||||||
|
<Or>
|
||||||
|
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
|
||||||
|
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
|
||||||
|
</Or>
|
||||||
|
</And>
|
||||||
|
<Kind Is="Struct" />
|
||||||
|
<HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" />
|
||||||
|
<HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" />
|
||||||
|
</Or>
|
||||||
|
</TypePattern.Match>
|
||||||
|
</TypePattern>
|
||||||
<TypePattern DisplayName="ArchiPattern" Priority="150">
|
<TypePattern DisplayName="ArchiPattern" Priority="150">
|
||||||
<Entry DisplayName="Public (Events and Delegates)">
|
<Entry DisplayName="Public (Events and Delegates)">
|
||||||
<Entry.Match>
|
<Entry.Match>
|
||||||
|
|||||||
@@ -108,12 +108,10 @@ internal static partial class NativeMethods {
|
|||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
[SupportedOSPlatform("Windows")]
|
[SupportedOSPlatform("Windows")]
|
||||||
internal struct FlashWindowInfo {
|
internal struct FlashWindowInfo {
|
||||||
#pragma warning disable Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
|
||||||
public uint StructSize;
|
public uint StructSize;
|
||||||
public nint WindowHandle;
|
public nint WindowHandle;
|
||||||
public EFlashFlags Flags;
|
public EFlashFlags Flags;
|
||||||
public uint Count;
|
public uint Count;
|
||||||
public uint TimeoutBetweenFlashes;
|
public uint TimeoutBetweenFlashes;
|
||||||
#pragma warning restore Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user