Skip to content

Commit

Permalink
Load 32 bits or 64 bits FMU according to current process (Is64BitProc…
Browse files Browse the repository at this point in the history
…ess) instead of OS architecture (Is64BitOperatingSystem)

As a consequence, it should be possible to load 32 bits FMUs on 64 bits OSes - but the whole process must be 32 bits, not just the FMU.
  • Loading branch information
Olivier Azeau committed May 10, 2024
1 parent aa9bbab commit e445b4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Femyou.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Copyright>Copyright © Olivier Azeau</Copyright>

<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.1.2</Version>
<Version>0.1.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions src/internal/Library.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
using System;
using System.IO;
using NativeLibraryLoader;

namespace Femyou
{
class Library : IDisposable
{
public Library(string baseFolder, string name) : this(Platform.GetLibraryPath(Environment.OSVersion.Platform,Environment.Is64BitOperatingSystem,baseFolder,name))
public Library(string baseFolder, string name)
: this(Platform.GetLibraryPath(
Environment.OSVersion.Platform,
Environment.Is64BitProcess,
baseFolder,
name))
{
}

Expand Down

0 comments on commit e445b4a

Please sign in to comment.