impr: Further improve compile times

This commit is contained in:
WerWolv
2023-11-30 14:40:07 +01:00
parent 8ee234e5a6
commit a50bb39978
28 changed files with 89 additions and 79 deletions

View File

@@ -1,6 +1,7 @@
#include <hex/api/content_registry.hpp>
#include <hex/api/localization_manager.hpp>
#include <hex/api/shortcut_manager.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/helpers/fmt.hpp>

View File

@@ -2,9 +2,11 @@
#include <hex/api/content_registry.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/helpers/fmt.hpp>
#include <hex/helpers/crypto.hpp>
#include <hex/helpers/fmt.hpp>
#include <fmt/chrono.h>
#include <hex/providers/provider.hpp>
#include <cstring>

View File

@@ -7,6 +7,9 @@
#include <hex/helpers/utils.hpp>
#include <hex/helpers/opengl.hpp>
#include <hex/helpers/fmt.hpp>
#include <fmt/chrono.h>
#include <imgui.h>
#include <implot.h>

View File

@@ -119,7 +119,7 @@ namespace hex::plugin::builtin {
nlohmann::json json;
json["type"] = provider->getTypeName();
json["settings"] = provider->storeSettings();
json["settings"] = provider->storeSettings({});
tar.writeString(basePath / hex::format("{}.json", id), json.dump(4));
}

View File

@@ -16,6 +16,8 @@
#include <imgui.h>
#include <nlohmann/json.hpp>
#if defined(OS_WINDOWS)
#include <windows.h>
#include <winioctl.h>

View File

@@ -8,9 +8,9 @@
#include <hex/api/project_file_manager.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/helpers/fmt.hpp>
#include <fmt/chrono.h>
#include <wolv/utils/string.hpp>

View File

@@ -10,6 +10,8 @@
#include <wolv/io/file.hpp>
#include <nlohmann/json.hpp>
namespace hex::plugin::builtin {
bool MemoryFileProvider::open() {

View File

@@ -6,9 +6,11 @@
#include <hex/api/content_registry.hpp>
#include <hex/api/project_file_manager.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/helpers/fmt.hpp>
#include <hex/providers/provider.hpp>
#include <hex/helpers/fmt.hpp>
#include <fmt/chrono.h>
#include <wolv/utils/guards.hpp>
#include <wolv/utils/string.hpp>
@@ -48,7 +50,7 @@ namespace hex::plugin::builtin::recent {
auto path = ProjectFile::getPath();
ProjectFile::clearPath();
if (auto settings = provider->storeSettings(); !settings.is_null())
if (auto settings = provider->storeSettings({}); !settings.is_null())
recentFile.writeString(settings.dump(4));
ProjectFile::setPath(path);

View File

@@ -16,6 +16,9 @@
#include <hex/helpers/magic.hpp>
#include <hex/helpers/binary_pattern.hpp>
#include <hex/helpers/fmt.hpp>
#include <fmt/chrono.h>
#include <content/popups/popup_file_chooser.hpp>
#include <content/popups/popup_question.hpp>
@@ -1052,7 +1055,7 @@ namespace hex::plugin::builtin {
std::scoped_lock lock(this->m_logMutex);
this->m_console->emplace_back(
hex::format("I: Evaluation took {}", runtime.getLastRunningTime())
hex::format("I: Evaluation took {}", std::chrono::duration<double>(runtime.getLastRunningTime()))
);
this->m_consoleNeedsUpdate = true;
};