Fixing minor bugs in texts, encoding, UI

This commit is contained in:
Vladislav Khorev committed 2026-07-12 12:07:58 +03:00
1 parent 79413e7319
commit d4365728fe
87 files changed
+883 -404

No files matched your search

+9 -2
View File
@@ -1,4 +1,4 @@
#include "navigation/PathFinder.h"
#include "navigation/PathFinder.h"
#include "external/nlohmann/json.hpp"
#include "utils/Utils.h"
#include <algorithm>
@@ -584,16 +584,20 @@ bool PathFinder::saveConfig(const std::string& path) const
}
root["obstacles"] = obstArr;
/*
std::ofstream f(path);
if (!f.is_open()) {
return false;
}
f << root.dump(2);
return f.good();
return f.good();*/
return saveJsonToFile(root, path);
}
bool PathFinder::saveGrid(const std::string& path) const
{
#if defined(_WIN32)
if (!ready) return false;
std::ofstream f(path);
if (!f.is_open()) return false;
@@ -615,6 +619,9 @@ bool PathFinder::saveGrid(const std::string& path) const
f << '\n';
}
return f.good();
#else
return false;
#endif
}
bool PathFinder::loadGrid(const std::string& path, const std::string& zipPath)
+1 -1
View File
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "render/Renderer.h"
#include <Eigen/Core>