diff --git a/taiga.h b/taiga.h index b96de5336..b8acb4315 100644 --- a/taiga.h +++ b/taiga.h @@ -26,9 +26,9 @@ #include "win32/win_main.h" #define APP_NAME L"Taiga" -#define APP_TITLE L"Taiga 1.0b" -#define APP_VERSION L"1.0.278 beta" -#define APP_BUILD L"2014-01-24" +#define APP_TITLE L"Taiga 1.0" +#define APP_VERSION L"1.0.282" +#define APP_BUILD L"2014-03-21" #ifndef PORTABLE #define PORTABLE diff --git a/update.cpp b/update.cpp index 6b29d830e..4007ad7e6 100644 --- a/update.cpp +++ b/update.cpp @@ -50,6 +50,7 @@ bool UpdateHelper::Check(win32::App& app) { wstring address = L"taiga.erengy.com/update.php?"; std::map parameters; + parameters[L"channel"] = L"stable"; parameters[L"username"] = Settings.Account.MAL.user; parameters[L"version"] = APP_VERSION; parameters[L"check"] = MainDialog.IsWindow() ? L"manual" : L"auto"; @@ -176,8 +177,8 @@ const GenericFeedItem* UpdateHelper::FindItem(const wstring& guid) const { return nullptr; } -unsigned long UpdateHelper::GetVersionValue(int major, int minor, int revision) const { - return (major * static_cast(pow(10.0, 12))) + - (minor * static_cast(pow(10.0, 8))) + +unsigned long long UpdateHelper::GetVersionValue(int major, int minor, int revision) const { + return (major * static_cast(pow(10.0, 12))) + + (minor * static_cast(pow(10.0, 8))) + revision; } \ No newline at end of file diff --git a/update.h b/update.h index 503cb3d13..2176ce0c0 100644 --- a/update.h +++ b/update.h @@ -40,7 +40,7 @@ class UpdateHelper { void SetDownloadPath(const wstring& path); const GenericFeedItem* FindItem(const wstring& guid) const; - unsigned long GetVersionValue(int major, int minor, int revision) const; + unsigned long long GetVersionValue(int major, int minor, int revision) const; HttpClient client; vector items; diff --git a/version.h b/version.h index c78d4cc65..3c5e60f18 100644 --- a/version.h +++ b/version.h @@ -24,7 +24,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 0 -#define VERSION_REVISION 278 +#define VERSION_REVISION 282 #define VERSION_BUILD 0 #define VERSION_VALUE_DIGITAL VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD