[development] removed CryLibrary (#5474)
* [redcode_crylibrary] replaced CrySystem loading in launcher and editor with new custom wrapper that uses AZ::DynamicModuleHandle Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com> * [redcode_crylibrary] removed all remaining references to CryLibrary Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com> * [redcode_crylibrary] migrate CrySystem loading to use AZ::DynamicModuleHandle directly instead Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com> * [redcode_crylibrary] clean up of CrySystemModuleHandle and old CrySystem module [un]init functions Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com> * [redcode_crylibrary] added trailing newline to DllMain.cpp in CrySystem Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
@@ -102,22 +102,6 @@ void ModuleShutdownISystem([[maybe_unused]] ISystem* pSystem)
|
||||
AZ::Environment::Detach();
|
||||
}
|
||||
|
||||
extern "C" AZ_DLL_EXPORT void InjectEnvironment(void* env)
|
||||
{
|
||||
static bool injected = false;
|
||||
if (!injected)
|
||||
{
|
||||
AZ::Environment::Attach(reinterpret_cast<AZ::EnvironmentInstance>(env));
|
||||
AZ::AllocatorManager::Instance(); // Force the AllocatorManager to instantiate and register any allocators defined in data sections
|
||||
injected = true;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" AZ_DLL_EXPORT void DetachEnvironment()
|
||||
{
|
||||
AZ::Environment::Detach();
|
||||
}
|
||||
|
||||
void* GetModuleInitISystemSymbol()
|
||||
{
|
||||
return reinterpret_cast<void*>(&ModuleInitISystem);
|
||||
@@ -126,16 +110,6 @@ void* GetModuleShutdownISystemSymbol()
|
||||
{
|
||||
return reinterpret_cast<void*>(&ModuleShutdownISystem);
|
||||
}
|
||||
void* GetInjectEnvironmentSymbol()
|
||||
{
|
||||
return reinterpret_cast<void*>(&InjectEnvironment);
|
||||
}
|
||||
void* GetDetachEnvironmentSymbol()
|
||||
{
|
||||
return reinterpret_cast<void*>(&DetachEnvironment);
|
||||
}
|
||||
|
||||
bool g_bProfilerEnabled = false;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// global random number generator used by cry_random functions
|
||||
|
||||
Reference in New Issue
Block a user