Skip to content

Commit

Permalink
Applied runtime process architecture bit-length on V4L2.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Apr 7, 2024
1 parent 76df4ad commit fccb7f5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions FlashCap.Core/Internal/NativeMethods_V4L2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ static NativeMethods_V4L2()
{
case "x86_64":
case "amd64":
Interop = new NativeMethods_V4L2_Interop_x86_64();
break;
case "i686":
case "i586":
case "i486":
case "i386":
Interop = new NativeMethods_V4L2_Interop_i686();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_x86_64() :
new NativeMethods_V4L2_Interop_i686();
break;
case "aarch64":
Interop = new NativeMethods_V4L2_Interop_aarch64();
break;
case "armv9l":
case "armv8l":
case "armv7l":
case "armv6l":
Interop = new NativeMethods_V4L2_Interop_armv7l();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_aarch64() :
new NativeMethods_V4L2_Interop_armv7l();
break;
case "mips":
case "mipsel":
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,22 +748,22 @@ switch (buf.machine)
{
case "x86_64":
case "amd64":
Interop = new NativeMethods_V4L2_Interop_x86_64();
break;
case "i686":
case "i586":
case "i486":
case "i386":
Interop = new NativeMethods_V4L2_Interop_i686();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_x86_64() :
new NativeMethods_V4L2_Interop_i686();
break;
case "aarch64":
Interop = new NativeMethods_V4L2_Interop_aarch64();
break;
case "armv9l":
case "armv8l":
case "armv7l":
case "armv6l":
Interop = new NativeMethods_V4L2_Interop_armv7l();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_aarch64() :
new NativeMethods_V4L2_Interop_armv7l();
break;
case "mips":
case "mipsel":
Expand Down
12 changes: 6 additions & 6 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,22 +683,22 @@ switch (buf.machine)
{
case "x86_64":
case "amd64":
Interop = new NativeMethods_V4L2_Interop_x86_64();
break;
case "i686":
case "i586":
case "i486":
case "i386":
Interop = new NativeMethods_V4L2_Interop_i686();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_x86_64() :
new NativeMethods_V4L2_Interop_i686();
break;
case "aarch64":
Interop = new NativeMethods_V4L2_Interop_aarch64();
break;
case "armv9l":
case "armv8l":
case "armv7l":
case "armv6l":
Interop = new NativeMethods_V4L2_Interop_armv7l();
Interop = IntPtr.Size == 8 ?
new NativeMethods_V4L2_Interop_aarch64() :
new NativeMethods_V4L2_Interop_armv7l();
break;
case "mips":
case "mipsel":
Expand Down

0 comments on commit fccb7f5

Please sign in to comment.