Redefine WIN constant to WINX86

This commit is contained in:
Matt Nadareski
2024-12-14 17:33:46 -05:00
parent 6f388102ee
commit 944b0ce91b
6 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
<!-- Set a build flag for Windows specifically -->
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
</PropertyGroup>
<!-- Exclude certain parts of external modules for by default -->

View File

@@ -1,6 +1,6 @@
using System.IO;
using BinaryObjectScanner.Interfaces;
#if (NET452_OR_GREATER || NETCOREAPP) && WIN
#if (NET452_OR_GREATER || NETCOREAPP) && WINX86
using StormLibSharp;
#endif
@@ -25,7 +25,7 @@ namespace BinaryObjectScanner.FileType
/// <inheritdoc/>
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
{
#if NET20 || NET35 || !WIN
#if NET20 || NET35 || !WINX86
// Not supported for old .NET due to feature requirements
// Not supported in non-Windows builds due to DLL requirements
return false;

View File

@@ -1,7 +1,7 @@
using System;
using System.IO;
using BinaryObjectScanner.Interfaces;
#if (NET40_OR_GREATER || NETCOREAPP) && WIN
#if (NET40_OR_GREATER || NETCOREAPP) && WINX86
using LibMSPackN;
#else
using SabreTools.Models.MicrosoftCabinet;
@@ -29,7 +29,7 @@ namespace BinaryObjectScanner.FileType
/// <inheritdoc/>
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
{
#if NET20 || NET35 || !WIN
#if NET20 || NET35 || !WINX86
try
{
// Create the wrapper

View File

@@ -28,7 +28,7 @@
<!-- Set a build flag for Windows specifically -->
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
</PropertyGroup>
<ItemGroup>

View File

@@ -300,7 +300,7 @@ namespace ExtractionTool
{
// Build the cabinet information
Console.WriteLine("Extracting MS-CAB contents");
#if NET20 || NET35 || !WIN
#if NET20 || NET35 || !WINX86
Console.WriteLine("WARNING: LZX compression not supported so some files may be skipped!");
#endif
Console.WriteLine();
@@ -317,7 +317,7 @@ namespace ExtractionTool
Console.WriteLine("Extracting MoPaQ contents");
Console.WriteLine();
#if NET20 || NET35 || !WIN
#if NET20 || NET35 || !WINX86
Console.WriteLine("Extraction is not supported for this framework!");
Console.WriteLine();
#else

View File

@@ -28,7 +28,7 @@
<!-- Set a build flag for Windows specifically -->
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
</PropertyGroup>
<ItemGroup>