mirror of https://github.com/bjornbytes/lovr.git
Plugin loader uses platform-native path separator;
This commit is contained in:
parent
bc5ed02d7d
commit
5fdf88224d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue