bundle missing steam lib

This commit is contained in:
Chris 2020-12-13 17:05:33 -07:00
parent d786e797e9
commit 5787f5a70b
4 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
investigation/
src/EdLauncher/epic-sdk-details.txt
lib/*
!lib/libsteam_api.so
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##

BIN
lib/libsteam_api.so Executable file

Binary file not shown.

View File

@ -52,6 +52,10 @@
<Compile Include="App.fs" />
<Compile Include="Program.fs" />
<EmbeddedResource Include="settings.json" />
<Content Include="..\..\lib\libsteam_api.so" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' ">
<Link>libsteam_api.so</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>

View File

@ -98,8 +98,7 @@ type Steam() =
|> Hex.toString
let init() =
if not <| File.Exists(SteamLib) then
Error <| sprintf "Unable to find steam library '%s'" SteamLib
if initialized then Ok ()
elif SteamAPI_Init() then
initialized <- true
Ok ()