Skip to content

Commit

Permalink
Quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
therealandreww committed Dec 25, 2023
1 parent 77099cf commit 6b5ecab
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9,374 deletions.
10 changes: 10 additions & 0 deletions src/app.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "include/ask.h"
#include "include/codes.h"
#include "include/networking.hpp"

int main(int argc, char **argv)
{
Expand All @@ -25,6 +26,15 @@ int main(int argc, char **argv)
// action = ask_ft();
action = argv[1];

for_each(action.begin(), action.end(), [](auto& c){c = tolower(c);});
if (action == "ver") {
if (getDataFromServer("http://adw.us.to/rvtver.txt") == "0.3.2") {
printe(green + "The current build of REViVeTool is the LATEST build.");
} else {
printe(red + "The current version of REViVeTool is outdated. Please update to version " + getDataFromServer("http://adw.us.to/rvtver.txt") + ".");
}
}

cout << "\033[0m";

// loadingbar(1, "Please wait...", 1);
Expand Down
Loading

0 comments on commit 6b5ecab

Please sign in to comment.