From af4d0a9d5467ea222df89cb7784d681e81f4cdcd Mon Sep 17 00:00:00 2001 From: wutno Date: Fri, 2 Feb 2024 19:25:45 -0500 Subject: [PATCH] Fix UI not displaying any cards on Linux --- Includes/WebIo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Includes/WebIo.cpp b/Includes/WebIo.cpp index 914282d..da58991 100644 --- a/Includes/WebIo.cpp +++ b/Includes/WebIo.cpp @@ -141,10 +141,11 @@ const std::string WebIo::GenerateCardListJSON(std::string basepath) if (find != std::string::npos) { list.append("{\"name\":\""); - std::string card = fullCardPath.substr(fullCardPath.find_last_of("\\") + 1); #ifdef _WIN32 + std::string card = fullCardPath.substr(fullCardPath.find_last_of("\\") + 1); list.append(card); #else + std::string card = fullCardPath.substr(fullCardPath.find_last_of("/") + 1); list.append(card); #endif