mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-06 22:26:01 +00:00
add GetServerVersion
This commit is contained in:
@@ -24,6 +24,10 @@ void Application::GracefullyShutdown() {
|
||||
}
|
||||
}
|
||||
|
||||
std::string Application::ServerVersionString() {
|
||||
return mVersion.AsString();
|
||||
}
|
||||
|
||||
std::string Comp(std::string Data) {
|
||||
std::array<char, Biggest> C {};
|
||||
// obsolete
|
||||
@@ -86,3 +90,14 @@ std::string ThreadName() {
|
||||
void RegisterThread(const std::string str) {
|
||||
threadNameMap[std::this_thread::get_id()] = str;
|
||||
}
|
||||
|
||||
Version::Version(uint8_t major, uint8_t minor, uint8_t patch)
|
||||
: major(major)
|
||||
, minor(minor)
|
||||
, patch(patch) { }
|
||||
|
||||
std::string Version::AsString() {
|
||||
std::stringstream ss {};
|
||||
ss << major << "." << minor << "." << patch;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user