implement GetOSName, start working on HttpsPOST

This commit is contained in:
Lion Kortlepel committed 2021-08-02 14:01:00 +02:00
1 parent a865c95e2a
commit cc88734279
6 files changed
+113 -35

No files matched your search

+4
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)) {