Initial commit
A modern .NET 9 NativeAOT framework for Asheron's Call client modding. Self-contained injection system that hooks D3D9 EndScene to render an ImGui overlay inside the AC client process.
This commit is contained in:
commit
80b71d295d
179 changed files with 52858 additions and 0 deletions
|
|
@ -0,0 +1,57 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0-windows</TargetFramework>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
|
||||
<OutputType>Library</OutputType>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Nullable>enable</Nullable>
|
||||
<PublishAot>true</PublishAot>
|
||||
<NativeLib>Shared</NativeLib>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
|
||||
<StripSymbols>false</StripSymbols>
|
||||
<RootNamespace>RynthCore.Plugin.HelloBox</RootNamespace>
|
||||
<AssemblyName>RynthCore.Plugin.HelloBox</AssemblyName>
|
||||
<Platforms>x86</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\RynthCore.PluginCore\RynthCore.PluginCore.csproj" />
|
||||
<ProjectReference Include="..\..\src\RynthCore.PluginSdk\RynthCore.PluginSdk.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyPublishedPluginToEngineOutputs" AfterTargets="Publish" Condition="'$(PublishDir)' != ''">
|
||||
<ItemGroup>
|
||||
<_EnginePluginDir Include="$(MSBuildThisFileDirectory)..\..\src\RynthCore.Engine\bin\$(Configuration)\net9.0-windows\win-x86\Plugins\" />
|
||||
<_EnginePluginDir Include="$(MSBuildThisFileDirectory)..\..\src\RynthCore.Engine\bin\$(PlatformTarget)\$(Configuration)\net9.0-windows\win-x86\Plugins\" />
|
||||
<_EnginePluginPublishDir Include="$(MSBuildThisFileDirectory)..\..\src\RynthCore.Engine\bin\$(Configuration)\net9.0-windows\win-x86\publish\Plugins\" />
|
||||
<_EnginePluginPublishDir Include="$(MSBuildThisFileDirectory)..\..\src\RynthCore.Engine\bin\$(PlatformTarget)\$(Configuration)\net9.0-windows\win-x86\publish\Plugins\" />
|
||||
</ItemGroup>
|
||||
|
||||
<MakeDir Directories="@(_EnginePluginDir)" />
|
||||
<MakeDir Directories="@(_EnginePluginPublishDir)" />
|
||||
<Copy
|
||||
SourceFiles="$(PublishDir)$(AssemblyName).dll"
|
||||
DestinationFolder="%(_EnginePluginDir.Identity)"
|
||||
SkipUnchangedFiles="true"
|
||||
Condition="Exists('$(PublishDir)$(AssemblyName).dll')" />
|
||||
<Copy
|
||||
SourceFiles="$(PublishDir)$(AssemblyName).pdb"
|
||||
DestinationFolder="%(_EnginePluginDir.Identity)"
|
||||
SkipUnchangedFiles="true"
|
||||
Condition="Exists('$(PublishDir)$(AssemblyName).pdb')" />
|
||||
<Copy
|
||||
SourceFiles="$(PublishDir)$(AssemblyName).dll"
|
||||
DestinationFolder="%(_EnginePluginPublishDir.Identity)"
|
||||
SkipUnchangedFiles="true"
|
||||
Condition="Exists('$(PublishDir)$(AssemblyName).dll')" />
|
||||
<Copy
|
||||
SourceFiles="$(PublishDir)$(AssemblyName).pdb"
|
||||
DestinationFolder="%(_EnginePluginPublishDir.Identity)"
|
||||
SkipUnchangedFiles="true"
|
||||
Condition="Exists('$(PublishDir)$(AssemblyName).pdb')" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
Loading…
Reference in a new issue