diff options
Diffstat (limited to 'ping')
-rw-r--r-- | ping/ping.cpp | 25 | ||||
-rw-r--r-- | ping/ping.mdsp | 14 |
2 files changed, 32 insertions, 7 deletions
diff --git a/ping/ping.cpp b/ping/ping.cpp index 90ebf36..67a6165 100644 --- a/ping/ping.cpp +++ b/ping/ping.cpp @@ -89,6 +89,31 @@ int OnShutdown(WPARAM wParam, LPARAM lParam) { }
int OnModulesLoaded(WPARAM wParam, LPARAM lParam) {
+ if(ServiceExists(MS_UPDATE_REGISTER)) {
+ // register with updater
+ Update update = {0};
+ char szVersion[16];
+
+ update.cbSize = sizeof(Update);
+
+ update.szComponentName = pluginInfo.shortName;
+ update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
+ update.cpbVersion = strlen((char *)update.pbVersion);
+
+ update.szUpdateURL = UPDATER_AUTOREGISTER;
+
+ // these are the three lines that matter - the archive, the page containing the version string, and the text (or data)
+ // before the version that we use to locate it on the page
+ // (note that if the update URL and the version URL point to standard file listing entries, the backend xml
+ // data will be used to check for updates rather than the actual web page - this is not true for beta urls)
+ update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/ping.zip";
+ update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_ping.html";
+ update.pbBetaVersionPrefix = (BYTE *)"Ping version ";
+
+ update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+
+ CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
+ }
NETLIBUSER nl_user = {0};
nl_user.cbSize = sizeof(nl_user);
diff --git a/ping/ping.mdsp b/ping/ping.mdsp index 7d12ab0..e1b26d3 100644 --- a/ping/ping.mdsp +++ b/ping/ping.mdsp @@ -11,7 +11,7 @@ intermediateFilesDirectory=Debug outputFilesDirectory=Debug
compilerPreprocessor=PING_EXPORTS
extraCompilerOptions=
-compilerIncludeDirectory=
+compilerIncludeDirectory=..\..\include
noWarning=0
defaultWarning=0
allWarning=1
@@ -49,7 +49,7 @@ intermediateFilesDirectory=Release outputFilesDirectory=Release
compilerPreprocessor=PING_EXPORTS
extraCompilerOptions=
-compilerIncludeDirectory=
+compilerIncludeDirectory=..\..\include
noWarning=0
defaultWarning=0
allWarning=1
@@ -109,11 +109,11 @@ extraResourceOptions= 1=ping.rc
[Other]
[History]
-utils.cpp,7005
-pinglist.cpp,3419
-pinggraph.cpp,7484
+utils.cpp,7003
+pinglist.cpp,3417
+pinggraph.cpp,7482
collection.h,6339
-options.cpp,21263
+options.cpp,21233
..\..\..\..\..\..\..\msys\include\stlport\stl\_list.h,1137
-rawping.cpp,3607
+rawping.cpp,3605
pingthread.cpp,13438
|