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;
|
length += subpathLength;
|
||||||
p += subpathLength;
|
p += subpathLength;
|
||||||
#else
|
#else
|
||||||
char* slash = strrchr(path, '/');
|
char* slash = strrchr(path, LOVR_PATH_SEP);
|
||||||
char* p = slash ? slash + 1 : path;
|
char* p = slash ? slash + 1 : path;
|
||||||
length = p - path;
|
length = p - path;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue