View Single Post
mattressfish
Member
Join Date: Feb 2009
Old 05-11-2009 , 09:59   Re: Plugin Autoupdater
Reply With Quote #25

Quote:
Originally Posted by Downtown1 View Post
Ok upon thinking about this.. why do you need a plugin to add autoupdate support to itself via code? Why not do it via some kind of configuration file.

i.e. to add support to autoupdate a plugin called abc.smx we go to data/autoupdate/abc.txt and it is a key-value file with the URL to the XML file?
Code:
//Filename: abc.txt
{
  "Plugins Repository"
  { 
    "http://localhost/plugins.xml"
   }
}
That way to add autoupdate support could be done to any plugin without having to edit the source code .
------------------

You could try iterating the plugins with GetPluginIterator/MorePlugins/ReadPlugin then with GetPluginFilename see if there's any matches entries in data/autoupdate and if there is then you just associate them with it. GetPluginInfo or "sm plugins list" to get the version of the loaded plugin .
That's an even better idea!

I've been waiting for something like this guys. Keep up the good work!
mattressfish is offline