Re-landed automating updating (bug 3530, r=pred).
This commit is contained in:
parent
2e8a53ff34
commit
6ebbb48f9f
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user