mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-05 22:03:36 +00:00
Replace dots with slashes instead of question marks;
In filesystem loader.
This commit is contained in:
parent
95da07d165
commit
adee0a3012
|
@ -35,7 +35,7 @@ int l_lovrFilesystemLoad(lua_State* L);
|
||||||
|
|
||||||
// Loader to help Lua's require understand PhysFS.
|
// Loader to help Lua's require understand PhysFS.
|
||||||
static int filesystemLoader(lua_State* L) {
|
static int filesystemLoader(lua_State* L) {
|
||||||
const char* module = luaL_gsub(L, lua_tostring(L, -1), ".", "?");
|
const char* module = luaL_gsub(L, lua_tostring(L, -1), ".", "/");
|
||||||
lua_pop(L, 2);
|
lua_pop(L, 2);
|
||||||
|
|
||||||
char* path; int i;
|
char* path; int i;
|
||||||
|
|
Loading…
Reference in a new issue