Plugin loader uses platform-native path separator;

This commit is contained in:
bjorn 2020-12-28 12:36:59 -07:00
parent bc5ed02d7d
commit 5fdf88224d
1 changed files with 1 additions and 1 deletions

View File

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