git mv Code\Sandbox\Plugins Code/Editor/Plugins

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-06-29 12:42:54 -07:00
parent e34e36cb35
commit 1696680240
215 changed files with 0 additions and 0 deletions
@@ -0,0 +1,49 @@
/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
/////////////////////////////////////////////////////////////////////////////
//
// Asset Importer Sandbox Plugin Instance Creation
//
/////////////////////////////////////////////////////////////////////////////
#include "EditorAssetImporter_precompiled.h"
#include "AssetImporterPlugin.h"
#if defined(AZ_PLATFORM_WINDOWS)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <AzCore/Memory/SystemAllocator.h>
PLUGIN_API IPlugin* CreatePluginInstance(PLUGIN_INIT_PARAM* pInitParam)
{
IEditor* editor = pInitParam->pIEditorInterface;
SetIEditor(editor);
ISystem* system = pInitParam->pIEditorInterface->GetSystem();
ModuleInitISystem(system, "QtAssetImporter");
return new AssetImporterPlugin(editor);
}
#if !defined(AZ_MONOLITHIC_BUILD)
#if defined(AZ_PLATFORM_WINDOWS)
HINSTANCE g_hInstance = 0;
BOOL __stdcall DllMain(HINSTANCE hinstDLL, ULONG fdwReason, [[maybe_unused]] LPVOID lpvReserved)
{
if (fdwReason == DLL_PROCESS_ATTACH)
{
g_hInstance = hinstDLL;
}
return TRUE;
}
#endif
#endif // !defined(AZ_MONOLITHIC_BUILD)