diff --git a/src/editors/xrManagedApi/core/Core.cpp b/src/editors/xrManagedApi/core/Core.cpp index 7af39e228d5..f3cd29c25b7 100644 --- a/src/editors/xrManagedApi/core/Core.cpp +++ b/src/editors/xrManagedApi/core/Core.cpp @@ -1,6 +1,8 @@ #include "Pch.hpp" #include "Core.hpp" +#pragma unmanaged #include "xrCore/xrCore.h" +#pragma managed #include namespace XRay @@ -42,6 +44,11 @@ void Core::Initialize(String ^ appName, LogCallback ^ logCallback) void Core::Initialize(String ^ appName) { Core::Initialize(appName, nullptr, false, nullptr); } void Core::Destroy() { ::Core._destroy(); } + +const String ^ Core::GetBuildDate() { return msclr::interop::marshal_as(::Core.GetBuildDate()); } + +const UInt32 Core::GetBuildId() { return ::Core.GetBuildId(); } + } } } diff --git a/src/editors/xrManagedApi/core/Core.hpp b/src/editors/xrManagedApi/core/Core.hpp index 8ace8d6340f..9ffac9f1fa0 100644 --- a/src/editors/xrManagedApi/core/Core.hpp +++ b/src/editors/xrManagedApi/core/Core.hpp @@ -22,6 +22,9 @@ ref class Core abstract sealed static void Initialize(String ^ appName, LogCallback ^ logCallback); static void Initialize(String ^ appName); static void Destroy(); + + static const String ^ GetBuildDate(); + static const UInt32 GetBuildId(); }; } }