Update in response to feedback

This commit is contained in:
jadebenn
2024-02-03 16:42:24 -06:00
parent 74d8a5b167
commit 27f69d6152
10 changed files with 34 additions and 29 deletions

View File

@@ -176,7 +176,7 @@ namespace GeneralUtils {
template <std::floating_point T>
[[nodiscard]] std::optional<T> TryParse(const char* const str, const char* const strEnd = NULL) noexcept
try {
return std::make_optional<T>(std::stold(str));
return std::stold(str);
} catch (...) {
return std::nullopt;
}

View File

@@ -27,6 +27,13 @@ constexpr uint32_t highFrameDelta = FRAMES_TO_MS(highFramerate);
constexpr uint32_t mediumFrameDelta = FRAMES_TO_MS(mediumFramerate);
constexpr uint32_t lowFrameDelta = FRAMES_TO_MS(lowFramerate);
//========== CLIENT VERSION DEFAULTS ===========
namespace ClientVersion {
constexpr uint16_t major = 1;
constexpr uint16_t current = 10;
constexpr uint16_t minor = 64;
}
//========== MACROS ===========
#define HEADER_SIZE 8