From 5fdf88224d1ef656b7a814d2271f27890cbb1f33 Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 28 Dec 2020 12:36:59 -0700 Subject: [PATCH] Plugin loader uses platform-native path separator; --- src/api/l_filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/l_filesystem.c b/src/api/l_filesystem.c index cb6b94f5..a796570c 100644 --- a/src/api/l_filesystem.c +++ b/src/api/l_filesystem.c @@ -421,7 +421,7 @@ static int libLoader(lua_State* L) { length += subpathLength; p += subpathLength; #else - char* slash = strrchr(path, '/'); + char* slash = strrchr(path, LOVR_PATH_SEP); char* p = slash ? slash + 1 : path; length = p - path; #endif