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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ class AppPath
|
||||
{
|
||||
public:
|
||||
static std::string getAppPath();
|
||||
static bool setAppPath(std::string path);
|
||||
|
||||
private:
|
||||
static void setupAppPath();
|
||||
|
||||
Reference in New Issue
Block a user