summaryrefslogtreecommitdiff
path: root/src/sanitychecks.cpp
diff options
context:
space:
mode:
authorQudix <17361645+Qudix@users.noreply.github.com>2020-11-09 13:02:01 -0600
committerQudix <17361645+Qudix@users.noreply.github.com>2020-11-09 13:02:01 -0600
commit0a3bdad8afd18a21a3697804ae344abd09e3712e (patch)
tree0bf234b41dff43cdfe39afea48c7c1d8bdd995c2 /src/sanitychecks.cpp
parentb7b843d42badab83b262260035658259f24e4f9a (diff)
parentfef8543a58b4226242ce26c4c8876abaa64394cb (diff)
Merge branch 'master' of https://github.com/ModOrganizer2/modorganizer into master
Diffstat (limited to 'src/sanitychecks.cpp')
-rw-r--r--src/sanitychecks.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sanitychecks.cpp b/src/sanitychecks.cpp
index 7afce7bd..613e4b26 100644
--- a/src/sanitychecks.cpp
+++ b/src/sanitychecks.cpp
@@ -1,3 +1,4 @@
+#include "sanitychecks.h"
#include "env.h"
#include "envmodule.h"
#include "settings.h"
@@ -5,6 +6,9 @@
#include <log.h>
#include <utility.h>
+namespace sanity
+{
+
using namespace MOBase;
enum class SecurityZone
@@ -368,7 +372,7 @@ int checkProtected(const QDir& d, const QString& what)
return 0;
}
-int checkPathsForSanity(IPluginGame& game, const Settings& s)
+int checkPaths(IPluginGame& game, const Settings& s)
{
log::debug("checking paths");
@@ -390,7 +394,7 @@ int checkPathsForSanity(IPluginGame& game, const Settings& s)
return n;
}
-void sanityChecks(const env::Environment& e)
+void checkEnvironment(const env::Environment& e)
{
log::debug("running sanity checks...");
@@ -404,3 +408,5 @@ void sanityChecks(const env::Environment& e)
"sanity checks done, {}",
(n > 0 ? "problems were found" : "everything looks okay"));
}
+
+} // namespace