Fix packaing and settings loading
This commit is contained in:
parent
e79b8fd2dc
commit
7db7616f2b
|
@ -11,7 +11,7 @@
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
<Title>Ckzg.Bindings</Title>
|
<Title>Ckzg.Bindings</Title>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<Version>0.1.0.1</Version>
|
<Version>0.1.0.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -25,12 +25,12 @@
|
||||||
<Content Include="runtimes\*\native\*.dll">
|
<Content Include="runtimes\*\native\*.dll">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
<Pack>true</Pack>
|
<Pack>true</Pack>
|
||||||
<PackagePath>lib\$(TargetFramework)\runtimes</PackagePath>
|
<PackagePath>runtimes\</PackagePath>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="runtimes\*\native\*.so">
|
<Content Include="runtimes\*\native\*.so">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
<Pack>true</Pack>
|
<Pack>true</Pack>
|
||||||
<PackagePath>lib\$(TargetFramework)\runtimes</PackagePath>
|
<PackagePath>runtimes\</PackagePath>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,9 @@ KZGSettings* load_trusted_setup_wrap(const char* file) {
|
||||||
|
|
||||||
if (f == NULL) { free(out); return NULL; }
|
if (f == NULL) { free(out); return NULL; }
|
||||||
|
|
||||||
if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); return NULL; }
|
if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); fclose(f); return NULL; }
|
||||||
|
|
||||||
|
fclose(f);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue