Skip to content

Commit 42ede87

Browse files
author
Pavel Kovalenko
committed
Add xrManagedApi reference and basic xrCore initialization.
1 parent 62e6b9c commit 42ede87

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/editors/xrPostprocessEditor/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Windows.Forms;
5+
using XRay.ManagedApi.Core;
56

67
namespace xrPostprocessEditor
78
{
@@ -15,7 +16,9 @@ static void Main()
1516
{
1617
Application.EnableVisualStyles();
1718
Application.SetCompatibleTextRenderingDefault(false);
19+
Core.Initialize(Application.ProductName);
1820
Application.Run(new MainDialog());
21+
Core.Destroy();
1922
}
2023
}
2124
}

src/editors/xrPostprocessEditor/xrPostprocessEditor.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@
9393
<DesignTimeSharedInput>True</DesignTimeSharedInput>
9494
</Compile>
9595
</ItemGroup>
96+
<ItemGroup>
97+
<ProjectReference Include="..\xrManagedApi\xrManagedApi.vcxproj">
98+
<Project>{55b0e2ca-e27a-47fc-bc92-21abdc1044f5}</Project>
99+
<Name>xrManagedApi</Name>
100+
</ProjectReference>
101+
</ItemGroup>
96102
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
97103
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
98104
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)