diff --git a/SatisfactoryModLoader.vcxproj b/SatisfactoryModLoader.vcxproj
index 4b5f1f084f..7e2f25c457 100644
--- a/SatisfactoryModLoader.vcxproj
+++ b/SatisfactoryModLoader.vcxproj
@@ -183,7 +183,6 @@
-
@@ -208,7 +207,6 @@
-
diff --git a/SatisfactoryModLoader/SatisfactoryModLoader.cpp b/SatisfactoryModLoader/SatisfactoryModLoader.cpp
index 347c695505..5b9388ceef 100644
--- a/SatisfactoryModLoader/SatisfactoryModLoader.cpp
+++ b/SatisfactoryModLoader/SatisfactoryModLoader.cpp
@@ -27,7 +27,6 @@
#include
#include
#include
-#include
#include
#include
#include
diff --git a/SatisfactoryModLoader/mod/Coremods.h b/SatisfactoryModLoader/mod/Coremods.h
index bffc9c0040..42e9666cb5 100644
--- a/SatisfactoryModLoader/mod/Coremods.h
+++ b/SatisfactoryModLoader/mod/Coremods.h
@@ -11,6 +11,5 @@ namespace SML {
void startLoadingCoremods(const char* currentPath);
void loadCoremodsInternal(std::string path);
-
};
};
\ No newline at end of file
diff --git a/SatisfactoryModLoader/mod/ModHandler.cpp b/SatisfactoryModLoader/mod/ModHandler.cpp
index 9bd2bbdced..2d05d3d6af 100644
--- a/SatisfactoryModLoader/mod/ModHandler.cpp
+++ b/SatisfactoryModLoader/mod/ModHandler.cpp
@@ -1,7 +1,6 @@
#include
#include
#include
-#include
#include
#include "ModHandler.h"
diff --git a/SatisfactoryModLoader/util/FKey.h b/SatisfactoryModLoader/util/FKey.h
index dfb81fef6c..a78ebc5f67 100644
--- a/SatisfactoryModLoader/util/FKey.h
+++ b/SatisfactoryModLoader/util/FKey.h
@@ -8,8 +8,7 @@ namespace SML {
namespace Objects {
struct ITextData {
public:
- virtual ~ITextData()
- {
+ virtual ~ITextData() {
}
/**
diff --git a/SatisfactoryModLoader/util/JsonConfig.h b/SatisfactoryModLoader/util/JsonConfig.h
index eb3fbd3698..87a98113f7 100644
--- a/SatisfactoryModLoader/util/JsonConfig.h
+++ b/SatisfactoryModLoader/util/JsonConfig.h
@@ -4,6 +4,7 @@
#include
#include
#include
+#include
using json = nlohmann::json;
@@ -12,7 +13,9 @@ namespace SML {
class JsonConfig {
public:
static void save(const std::string& name, const json& data, bool useDefaultPath = true) {
- //info("Saving: " + name);
+ if (debugOutput) {
+ info("Saving config: " + name);
+ }
if (useDefaultPath) {
std::string stringpath = defaultPath;
@@ -36,7 +39,9 @@ namespace SML {
out.close();
}
static json load(const std::string& name, const json& defaultValues, bool useDefaultPath = true) {
- //info("Loading: " + name);
+ if (debugOutput) {
+ info("Loading config: " + name);
+ }
if (!exists(name, useDefaultPath)) {
save(name, defaultValues, useDefaultPath);
diff --git a/SatisfactoryModLoader/util/Reflection.cpp b/SatisfactoryModLoader/util/Reflection.cpp
deleted file mode 100644
index f4184b3e28..0000000000
--- a/SatisfactoryModLoader/util/Reflection.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#define WIN32_LEAN_AND_MEAN
-
-#include
-#include "Reflection.h"
-
-#include
-
-namespace SML {
- namespace Utility {
- void* get_field_value(void* module, const char* procName) {
- return GetProcAddress((HMODULE)module, procName);
- }
- }
-}
\ No newline at end of file
diff --git a/SatisfactoryModLoader/util/Reflection.h b/SatisfactoryModLoader/util/Reflection.h
deleted file mode 100644
index dd2e1dc5c8..0000000000
--- a/SatisfactoryModLoader/util/Reflection.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-namespace SML {
- namespace Utility {
- static const char* gameModule = "FactoryGame-Win64-Shipping.exe";
-
- void* get_field_value(void* module, const char* procName);
-
- // gets a field's value
- template
- bool get_field_value(void* module, const char* procName, O& value) {
- void* proc = get_field_value(module, procName);
- if (proc == nullptr) {
- return false;
- }
-
- value = *(O*)proc;
- return true;
- }
- }
-}
\ No newline at end of file