2023-02-16 16:01:21 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: AuProcAddresses.cpp
|
|
|
|
Date: 2023-2-16
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#include <RuntimeInternal.hpp>
|
2024-03-19 15:47:42 +00:00
|
|
|
#include "AuProcAddresses.hpp"
|
2023-02-16 16:01:21 +00:00
|
|
|
|
|
|
|
namespace Aurora
|
|
|
|
{
|
|
|
|
void InitProcAddresses()
|
|
|
|
{
|
2023-06-15 19:44:27 +00:00
|
|
|
static bool gDumbInitOnce {};
|
|
|
|
if (AuExchange(gDumbInitOnce, true))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-02-16 16:01:21 +00:00
|
|
|
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
|
|
|
InitNTAddresses();
|
|
|
|
#endif
|
2024-02-23 12:44:43 +00:00
|
|
|
|
|
|
|
#if defined(AURORA_IS_LINUX_DERIVED)
|
|
|
|
InitLinuxAddresses();
|
|
|
|
#endif
|
2023-02-16 16:01:21 +00:00
|
|
|
}
|
2024-03-19 15:47:42 +00:00
|
|
|
|
|
|
|
#if !defined(AURORA_HAS_SYS_ALLOC_LARGE)
|
|
|
|
|
|
|
|
void *SysAllocateLarge(AuUInt uLength)
|
|
|
|
{
|
|
|
|
return AuMemory::FAlloc<void *>(uLength, 32);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SysAllocateFree(void *pBuffer, AuUInt uLength)
|
|
|
|
{
|
|
|
|
AuMemory::Free(pBuffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2023-02-16 16:01:21 +00:00
|
|
|
}
|