This commit is contained in:
SaltySnail
2024-05-25 20:32:07 +02:00
parent 93192fd9b5
commit 29c3fed374
7 changed files with 63 additions and 5 deletions

8
include/ChronoWrapper.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include <chrono>
#include <string>
namespace ChronoWrapper {
std::chrono::high_resolution_clock::duration TimeFromStringWithLiteral(const std::string time_str);
}

View File

@@ -83,6 +83,7 @@ public:
std::string HTTPServerIP { "127.0.0.1" };
bool HTTPServerUseSSL { false };
bool HideUpdateMessages { false };
std::string UpdateReminderTime { "3h" };
[[nodiscard]] bool HasCustomIP() const { return !CustomIP.empty(); }
};
@@ -151,7 +152,7 @@ private:
static inline std::mutex mShutdownHandlersMutex {};
static inline std::deque<TShutdownHandler> mShutdownHandlers {};
static inline Version mVersion { 3, 5, 0 };
static inline Version mVersion { 4, 5, 0 };
};
void SplitString(std::string const& str, const char delim, std::vector<std::string>& out);