Download
(2 Kb)
Download
Updated: 06-12-11 02:33 AM
Updated:06-12-11 02:33 AM
Created:06-09-11 07:26 PM
Downloads:148
Favorites:1
MD5:
LibStub
Version: r5
by: Myrroddin [More]
This addon has been 100% depreciated, and while it still works, is no longer needed, nor is it the best way load library files. Please see the rifui.com wiki article about the RiftAddon.toc to see how library files and other dependencies should be loaded.


LibStub is a minimalistic versioning library that allows other libraries to easily register themselves and upgrade. It is meant to be a cross-community library sharing system.

LibStub is hereby placed in the Public Domain

Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke

This is a port of LibStub to Rift by Lorandii aka Myrroddin.

Any library files that use LibStub MUST include it in the zip!!

Example and what it does:
Code:
local MAJOR, MINOR = "CallbackHandler-1.0", 1
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
If the library CallbackHandler-1.0 got updated to minor version 2, and the end user had two addons each using CBH, one at version 1, the other at version 2, then the game would load both, and LibStub would discard the older version 1 from memory.

Full documentation and API can be found at http://rift.curseforge.com/addons/libstub/
r5 -------
Removed "## X-" stuff from RiftAddon.toc
Replaced "strmatch" with "string.match"
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
r3
2kB
Myrroddin
06-09-11 07:26 PM


Post A Reply Comment Options
Unread 06-10-11, 08:52 AM  
Myrroddin
Endless Captain
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 8
Uploads: 4
Quote:
Originally posted by Mars85
Thanks for porting it

I really hope that developers (who have the permission) will also do it for other common libraries, such as LibDataBroker etc. (before the proprietary stuff will rise up again )
Already way ahead of you. http://forums.wowace.com/showthread.php?t=19512
Myrroddin is offline Report comment to moderator  
Reply With Quote
Unread 06-10-11, 12:00 AM  
Mars85
Zombie
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 6
Uploads: 1
Thanks for porting it

I really hope that developers (who have the permission) will also do it for other common libraries, such as LibDataBroker etc. (before the proprietary stuff will rise up again )
Last edited by Mars85 : 06-10-11 at 12:06 AM.
Mars85 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.