示例#1
0
DLL_EXPORT bool pluginit(PLUG_INITSTRUCT *InitStruct)
{
    InitStruct->pluginVersion	= PLUGIN_VERSION;
    InitStruct->sdkVersion		= PLUG_SDKVERSION;
    g_PluginHandle				= InitStruct->pluginHandle;
    strcpy_s(InitStruct->pluginName, PLUGIN_NAME);

    // Add any of the callbacks
    _plugin_registercallback(g_PluginHandle, CB_MENUENTRY, (CBPLUGIN)MenuEntryCallback);
    return true;
}
extern "C" __declspec(dllexport) void plugsetup(PLUG_SETUPSTRUCT* setupStruct)
{
    hwndDlg = setupStruct->hwndDlg;
    hMenu = setupStruct->hMenu;
    _plugin_menuaddentry(hMenu, 1, LoadUTF8String(IDS_PLUGMENUENTRY).c_str());
    _plugin_menuaddentry(hMenu, 2, LoadUTF8String(IDS_PLUGMENUENTRY2).c_str());
    _plugin_menuaddentry(hMenu, 3, LoadUTF8String(IDS_PLUGMENUENTRYABOUT).c_str());
    _plugin_registercallback(pluginHandle, CB_MENUENTRY, menu);
    _plugin_registercommand(pluginHandle, "ExportPatch", command, true);
    _plugin_registercommand(pluginHandle, "ExportPatchWithLastTemplate", command, true);
}
示例#3
0
DLL_EXPORT bool pluginit(PLUG_INITSTRUCT *InitStruct)
{
	InitStruct->pluginVersion = PLUGIN_VERSION;
	InitStruct->sdkVersion = PLUG_SDKVERSION;
	g_PluginHandle = InitStruct->pluginHandle;
	strcpy_s(InitStruct->pluginName, PLUGIN_NAME);

	// Add any of the callbacks
	_plugin_registercallback(g_PluginHandle, CB_MENUENTRY, (CBPLUGIN)MenuEntryCallback);

	// Update all check box settings
	Settings::InitIni();
	Settings::Load();

	// Commands
	Cmd_RegisterCommands();

	// Initialization messages
	Plugin_FindcryptLogo();
	Plugin_AESFinderLogo();

	return true;
}