mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-18 06:30:53 +00:00
Minor fixes
This commit is contained in:
+2
-2
@@ -57,7 +57,7 @@ public:
|
|||||||
static std::string ServerVersion() { return "2.3.0"; }
|
static std::string ServerVersion() { return "2.3.0"; }
|
||||||
static std::string ClientVersion() { return "2.0"; }
|
static std::string ClientVersion() { return "2.0"; }
|
||||||
static std::string PPS() { return mPPS; }
|
static std::string PPS() { return mPPS; }
|
||||||
static void SetPPS(std::string NewPPS) { mPPS = NewPPS; }
|
static void SetPPS(const std::string& NewPPS) { mPPS = NewPPS; }
|
||||||
|
|
||||||
static inline TSettings Settings {};
|
static inline TSettings Settings {};
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
std::string ThreadName(bool DebugModeOverride = false);
|
std::string ThreadName(bool DebugModeOverride = false);
|
||||||
void RegisterThread(const std::string str);
|
void RegisterThread(const std::string& str);
|
||||||
#define RegisterThreadAuto() RegisterThread(__func__)
|
#define RegisterThreadAuto() RegisterThread(__func__)
|
||||||
|
|
||||||
#define KB 1024
|
#define KB 1024
|
||||||
|
|||||||
+1
-1
@@ -141,7 +141,7 @@ std::string ThreadName(bool DebugModeOverride) {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegisterThread(const std::string str) {
|
void RegisterThread(const std::string& str) {
|
||||||
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
||||||
threadNameMap[std::this_thread::get_id()] = str;
|
threadNameMap[std::this_thread::get_id()] = str;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ void TLuaEngine::FolderList(const std::string& Path, bool HotSwap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TLuaEngine::RegisterFiles(const fs::path& Path, bool HotSwap) {
|
void TLuaEngine::RegisterFiles(const fs::path& Path, bool HotSwap) {
|
||||||
std::string Name = Path.filename();
|
std::string Name = Path.filename().string();
|
||||||
if (!HotSwap)
|
if (!HotSwap)
|
||||||
info(("Loading plugin : ") + Name);
|
info(("Loading plugin : ") + Name);
|
||||||
std::vector<fs::path> Entries;
|
std::vector<fs::path> Entries;
|
||||||
|
|||||||
Reference in New Issue
Block a user