1
0
mirror of https://github.com/MinimaJack/JVM-plugin.git synced 2024-11-21 13:15:56 +02:00
JVM-plugin/exports.cpp
2019-11-29 14:29:46 +03:00

36 lines
803 B
C++

#include "JVMLauncher.h"
static const wchar_t g_kClassNames[] = L"JVMLauncher";
//---------------------------------------------------------------------------//
const WCHAR_T* GetClassNames()
{
static WCHAR_T* names = 0;
if (!names)
::convToShortWchar(&names, g_kClassNames);
return names;
}
//---------------------------------------------------------------------------//
long GetClassObject(const WCHAR_T* wsName, IComponentBase** pInterface)
{
if (!*pInterface) {
*pInterface = new JVMLauncher;
return (long)*pInterface;
}
return 0;
}
long DestroyObject(IComponentBase** pInterface)
{
if (!*pInterface)
return -1;
delete *pInterface;
*pInterface = nullptr;
return 0;
}
AppCapabilities SetPlatformCapabilities(const AppCapabilities capabilities) {
return eAppCapabilitiesLast;
}