2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-06-30 19:03:42 -04:00

No longer require unsafe option

- Change unsafe/fixed to use IntPtr or MarshallAs instead.
- Added methods in physac to marshall IntPtr returns to PhysicsBodyData.
This commit is contained in:
2018-09-23 12:34:40 +01:00
parent 4652f1fa6d
commit f880241ee4
6 changed files with 67 additions and 36 deletions

View File

@ -37,7 +37,7 @@
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
@ -54,6 +54,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>raylib-cs.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
@ -65,23 +68,26 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Examples\audio\audio_module_playing.cs" />
<Compile Include="Examples\audio\audio_music_stream.cs" />
<Compile Include="Examples\core\core_basic_window.cs" />
<Compile Include="Examples\physac\physics_demo.cs" />
<Compile Include="Examples\text\text_bmfont_ttf.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="raylib-cs.ico" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bindings\Bindings.csproj">
<Project>{a2b3bbc8-3d48-46dd-b3cf-263f554e4474}</Project>
<Name>Bindings</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Examples\core\core_basic_window.png" />
<Content Include="Examples\core\resources\ps3.png" />
<Content Include="Examples\core\resources\xbox.png" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>