logic: Application moving protection, licensegenerator for other licensetypes

* Licensegenerator can now generate any type of license via commandline argument
* When moving the appliction, the user needs to enter the License again
This commit is contained in:
Andreas Stallinger
2016-02-10 12:52:00 +01:00
parent 082b94ac8d
commit 50a94bf108
12 changed files with 117 additions and 41 deletions
+11 -1
View File
@@ -51,4 +51,14 @@ void AppPath::setupAppPath()
m_appPath = m_appPath.substr(0, pos + 1);
}
#endif // WINDOWS
}
}
bool AppPath::setAppPath(std::string path)
{
if(!path.empty())
{
m_appPath = path;
return true;
}
return false;
}
+1
View File
@@ -20,6 +20,7 @@ class AppPath
{
public:
static std::string getAppPath();
static bool setAppPath(std::string path);
private:
static void setupAppPath();