implement GetOSName, start working on HttpsPOST

This commit is contained in:
Lion Kortlepel
2021-06-25 00:42:45 +02:00
parent a865c95e2a
commit cc88734279
6 changed files with 113 additions and 35 deletions

View File

@@ -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)) {