diff --git a/src/Regex.cpp b/src/Regex.cpp index d9bc249..84b8de2 100644 --- a/src/Regex.cpp +++ b/src/Regex.cpp @@ -48,7 +48,7 @@ void Regex(cmd *inputCmd) { // Count the number of lines while (std::getline(inputStream, line)) { - inputCmd->slashtp++; + inputCmd->totalmods++; } } diff --git a/src/includes/Regex.hpp b/src/includes/Regex.hpp index ce31c53..d9e905d 100644 --- a/src/includes/Regex.hpp +++ b/src/includes/Regex.hpp @@ -19,9 +19,8 @@ std::string dir; bool ab = false; -// slashing -int slashtp = 0; -std::string slash; +// total mods +int totalmods = 0; // counter std::string sucids; diff --git a/src/maincommand.cpp b/src/maincommand.cpp index 2a970dc..40ec7d5 100644 --- a/src/maincommand.cpp +++ b/src/maincommand.cpp @@ -83,7 +83,7 @@ void maincommand(cmd *inputCmd) { } // mod or collection? - std::string total = (inputCmd->ab == true) ? "Total: 1" : "Total: " + std::to_string(inputCmd->slashtp -1) + "\n"; + std::string total = (inputCmd->ab == true) ? "Total: 1" : "Total: " + std::to_string(inputCmd->totalmods -1) + "\n"; std::string colm = (inputCmd->ab == true) ? R"(Mod)" : R"(Collection)"; // shows how much and what has downloaded @@ -98,7 +98,7 @@ void maincommand(cmd *inputCmd) { std::string line; while (std::getline(inputStream, line)) { - inputCmd->slashtp++; + inputCmd->totalmods++; Modname(inputCmd, line); filerestort(inputCmd); }