mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 09:38:01 +02:00
Added ability to retrieve module name for Beef DLL projects
This commit is contained in:
parent
5fce0af004
commit
84f03abcc7
4 changed files with 31 additions and 1 deletions
|
@ -48,6 +48,14 @@ namespace System
|
|||
});
|
||||
}
|
||||
|
||||
public static void GetModuleFilePath(String outPath)
|
||||
{
|
||||
Platform.GetStrHelper(outPath, scope (outPtr, outSize, outResult) =>
|
||||
{
|
||||
Platform.BfpDynLib_GetFilePath((.)Internal.[Friend]sModuleHandle, outPtr, outSize, (Platform.BfpLibResult*)outResult);
|
||||
});
|
||||
}
|
||||
|
||||
public static uint32 TickCount
|
||||
{
|
||||
get
|
||||
|
|
|
@ -70,6 +70,13 @@ namespace System
|
|||
static extern int32 Test_Query();
|
||||
static extern void Test_Finish();
|
||||
|
||||
static void* sModuleHandle;
|
||||
[AlwaysInclude]
|
||||
static void SetModuleHandle(void* handle)
|
||||
{
|
||||
sModuleHandle = handle;
|
||||
}
|
||||
|
||||
public static Object ObjectAlloc(TypeInstance typeInst, int size)
|
||||
{
|
||||
#if BF_ENABLE_OBJECT_DEBUG_FLAGS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue