mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-03 15:06:00 +00:00
implement GetOSName, start working on HttpsPOST
This commit is contained in:
@@ -75,7 +75,11 @@ void TLuaEngine::FolderList(const std::string& Path, bool HotSwap) {
|
||||
}
|
||||
|
||||
void TLuaEngine::RegisterFiles(const std::string& Path, bool HotSwap) {
|
||||
#if defined(__linux) || defined(__linux__)
|
||||
std::string Name = Path.substr(Path.find_last_of('/') + 1);
|
||||
#else
|
||||
std::string Name = Path.substr(Path.find_last_of('\\') + 1);
|
||||
#endif
|
||||
if (!HotSwap)
|
||||
info(("Loading plugin : ") + Name);
|
||||
for (const auto& entry : fs::directory_iterator(Path)) {
|
||||
|
||||
Reference in New Issue
Block a user