Skip to content

Commit f975514

Browse files
committed
Export GetBuildDate() and GetBuildId() to xrManagedApi
And marked that xrCore.h is unmanaged
1 parent c8ed61f commit f975514

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/editors/xrManagedApi/core/Core.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "Pch.hpp"
22
#include "Core.hpp"
3+
#pragma unmanaged
34
#include "xrCore/xrCore.h"
5+
#pragma managed
46
#include <msclr/marshal_cppstd.h>
57

68
namespace XRay
@@ -42,6 +44,11 @@ void Core::Initialize(String ^ appName, LogCallback ^ logCallback)
4244

4345
void Core::Initialize(String ^ appName) { Core::Initialize(appName, nullptr, false, nullptr); }
4446
void Core::Destroy() { ::Core._destroy(); }
47+
48+
const String ^ Core::GetBuildDate() { return msclr::interop::marshal_as<String^>(::Core.GetBuildDate()); }
49+
50+
const UInt32 Core::GetBuildId() { return ::Core.GetBuildId(); }
51+
4552
}
4653
}
4754
}

src/editors/xrManagedApi/core/Core.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ ref class Core abstract sealed
2222
static void Initialize(String ^ appName, LogCallback ^ logCallback);
2323
static void Initialize(String ^ appName);
2424
static void Destroy();
25+
26+
static const String ^ GetBuildDate();
27+
static const UInt32 GetBuildId();
2528
};
2629
}
2730
}

0 commit comments

Comments
 (0)