Skip to content

Commit

Permalink
Fix UI not displaying any cards on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GXTX authored Feb 3, 2024
1 parent 8b7cce9 commit af4d0a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Includes/WebIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit af4d0a9

Please sign in to comment.