summaryrefslogtreecommitdiff
path: root/src/storm/SWrapper.cpp
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-05-26 01:48:04 -0600
committerKiritoDv <kiritodev01@gmail.com>2024-05-26 01:48:04 -0600
commit06bc15d535b3cd623814be3b51d7a916cee8cb59 (patch)
tree2ea340592e53afe7d6718c6bc665fb54eea0973c /src/storm/SWrapper.cpp
parentafd800afc0bad0dd034eb732354ed25c81621d2e (diff)
Fixed tab define conflicting with imgui
Diffstat (limited to 'src/storm/SWrapper.cpp')
-rw-r--r--src/storm/SWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storm/SWrapper.cpp b/src/storm/SWrapper.cpp
index 7abf1be..811e31b 100644
--- a/src/storm/SWrapper.cpp
+++ b/src/storm/SWrapper.cpp
@@ -4,9 +4,9 @@
#include <fstream>
#include "spdlog/spdlog.h"
+#include <Companion.h>
namespace fs = std::filesystem;
-bool debugMode = true;
SWrapper::SWrapper(const std::string& path) {
if(fs::exists(path)) {
@@ -20,7 +20,7 @@ SWrapper::SWrapper(const std::string& path) {
}
bool SWrapper::CreateFile(const std::string& path, std::vector<char> data) {
- if(debugMode){
+ if(Companion::Instance->IsDebug()){
SPDLOG_INFO("Creating debug file: debug/{}", path);
std::string dpath = "debug/" + path;
if(!fs::exists(fs::path(dpath).parent_path())){