Skip to content

Commit

Permalink
updated version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FredyH committed May 12, 2018
1 parent a6462b7 commit 4e87e10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/UpdateChecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//I'm trying to make this as easy for anyone to adapt to their own module
//So if you want to use this, feel free
#define MODULE_VERSION "0.9.1" //The version of the current build
#define MODULE_VERSION "1.0.0" //The version of the current build
#define MODULE_VERSION_URL "https://github.com/raw/FredyH/GWSockets/master/version.txt" //A URL to a txt file containing only the version number of the latest version
#define MODULE_NAME "GWSockets" //The name of this program
#define MODULE_RELEASE_URL "https://github.com/FredyH/GWSockets/releases" //A URL to the latest releases
Expand All @@ -18,7 +18,6 @@ namespace UpdateChecker
{
namespace Internal
{

static std::vector<int> splitVersions(std::string versionString)
{
size_t start = 0;
Expand All @@ -27,7 +26,15 @@ namespace UpdateChecker
{
if (versionString[i] == '.' || i + 1 == versionString.size())
{
auto subStr = versionString.substr(start, i - start);
std::string subStr;
if (i + 1 == versionString.size())
{
subStr = versionString.substr(start);
}
else
{
subStr = versionString.substr(start, i - start);
}
values.push_back(strtol(subStr.c_str(), NULL, 10));
start = i + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
1.0.0

0 comments on commit 4e87e10

Please sign in to comment.