mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed to check for updates from GitHub rather than Google Code
This commit is contained in:
parent
1def58618c
commit
22c5d6a340
@ -27,18 +27,19 @@ void CheckVersion(void* dummy)
|
||||
{
|
||||
int version = 0;
|
||||
|
||||
HINTERNET hRootHandle = InternetOpen(L"Rainmeter",
|
||||
HINTERNET hRootHandle = InternetOpen(
|
||||
L"Rainmeter",
|
||||
INTERNET_OPEN_TYPE_PRECONFIG,
|
||||
NULL,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
if (hRootHandle == NULL)
|
||||
{
|
||||
Log(LOG_ERROR, L"CheckUpdate: InternetOpen failed");
|
||||
return;
|
||||
}
|
||||
|
||||
HINTERNET hUrlDump = InternetOpenUrl(hRootHandle, L"http://rainmeter.googlecode.com/svn/version", NULL, NULL, INTERNET_FLAG_RESYNCHRONIZE, 0);
|
||||
HINTERNET hUrlDump = InternetOpenUrl(hRootHandle, L"http://rainmeter.github.com/rainmeter/release", NULL, NULL, INTERNET_FLAG_RESYNCHRONIZE, 0);
|
||||
if (hUrlDump)
|
||||
{
|
||||
DWORD dwSize;
|
||||
@ -79,16 +80,8 @@ void CheckVersion(void* dummy)
|
||||
Rainmeter->SetNewVersion(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Log(LOG_ERROR, L"CheckUpdate: InternetReadFile failed");
|
||||
}
|
||||
InternetCloseHandle(hUrlDump);
|
||||
}
|
||||
else
|
||||
{
|
||||
Log(LOG_ERROR, L"CheckUpdate: InternetOpenUrl failed");
|
||||
}
|
||||
|
||||
InternetCloseHandle(hRootHandle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user