From af50726f2a0e070f15877d2e2e1598515b5f9c86 Mon Sep 17 00:00:00 2001 From: Ackis Date: Wed, 22 Oct 2008 17:52:12 +0000 Subject: [PATCH] Error checking to see if babble libs and acelocal is loaded. --- AckisRecipeList.lua | 29 +++++++++++++++++++++++++++++ AckisRecipeList.toc | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 61e0968..5d862a0 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -27,6 +27,35 @@ local MODNAME = "Ackis Recipe List" local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) +-- Lets check to see if we have the needed libraries loaded (these are manditory to run) +if (not LibStub:GetLibrary("LibBabble-Faction-3.0", true)) then + + self:Print("LibBabble-Faction-3.0 not loaded. Addon cannot run.") + return + +end + +if (not LibStub:GetLibrary("LibBabble-Zone-3.0", true)) then + + self:Print("LibBabble-Zone-3.0 not loaded. Addon cannot run.") + return + +end + +if (not LibStub:GetLibrary("LibBabble-Boss-3.0", true)) then + + self:Print("LibBabble-Boss-3.0 not loaded. Addon cannot run.") + return + +end + +if (not LibStub:GetLibrary("AceLocale-3.0", true)) then + + self:Print("AceLocale-3.0 not loaded. Addon cannot run.") + return + +end + local BFAC = LibStub("LibBabble-Faction-3.0"):GetLookupTable() local L = LibStub("AceLocale-3.0"):GetLocale(MODNAME) diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index 3384c48..8668d0c 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -18,7 +18,7 @@ ## X-Donate: Donate a few bucks/hours at your local animal shelter, or send me UDE Point codes, a Murky Code, or an account upgrade certificate. ## Interface: 30000 -## Version: Beta 5 r937 +## Version: Beta 5 r938 ## X-Revision: $Rev$ ## X-Date: $Date$ -- 1.7.9.5