Re-landed automating updating (bug 3530, r=pred).

This commit is contained in:
David Anderson 2009-03-01 01:35:39 -05:00
parent 2e8a53ff34
commit 6ebbb48f9f
4 changed files with 26 additions and 1 deletions

View File

@ -100,7 +100,7 @@
* URL to use for retrieving update information.
* SSL is not yet supported.
*/
"AutoUpdateURL" "http://www.sourcemod.net/update/"
"AutoUpdateURL" "http://update.sourcemod.net/update/"
/**
* Whether to show debug spew.

View File

@ -300,6 +300,13 @@ void SourceModBase::StartSourceMod(bool late)
{
g_SourceMod_Core.OnVSPListening(vsp_interface);
}
/* If we want to autoload, do that now */
const char *disabled = GetCoreConfigValue("DisableAutoUpdate");
if (disabled == NULL || strcasecmp(disabled, "yes") != 0)
{
g_Extensions.LoadAutoExtension("updater.ext." PLATFORM_LIB_EXT);
}
}
static bool g_LevelEndBarrier = false;

View File

@ -77,3 +77,14 @@ out = svn_version.h
folder = extensions/clientprefs
in = svn_version.tpl
out = svn_version.h
[curl]
folder = extensions/curl
in = svn_version.tpl
out = svn_version.h
[updater]
folder = extensions/updater
in = svn_version.tpl
out = svn_version.h

View File

@ -330,6 +330,13 @@ namespace builder
lib.vcproj_name = "curl";
libraries.Add(lib);
lib = new Library();
lib.package_path = "addons/sourcemod/extensions";
lib.source_path = "extensions/updater";
lib.binary_name = "updater.ext";
lib.vcproj_name = "updater";
libraries.Add(lib);
return (Library [])libraries.ToArray(typeof(Library));
}