diff options
author | chai <chaifix@163.com> | 2018-07-29 21:30:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-29 21:30:03 +0800 |
commit | 7ac86950d3a89a996974e8406ee88e8f5f44187d (patch) | |
tree | a173ac2e585fa99863ef74fc7d2f7b38f9db7164 /src/lua/filesystem/luaopen_filesystem.cpp | |
parent | f94264fa4ba347fc362b4ae2deea5a12ff95f5af (diff) |
*update
Diffstat (limited to 'src/lua/filesystem/luaopen_filesystem.cpp')
-rw-r--r-- | src/lua/filesystem/luaopen_filesystem.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lua/filesystem/luaopen_filesystem.cpp b/src/lua/filesystem/luaopen_filesystem.cpp index 3a19f12..f4138fc 100644 --- a/src/lua/filesystem/luaopen_filesystem.cpp +++ b/src/lua/filesystem/luaopen_filesystem.cpp @@ -88,12 +88,10 @@ namespace lua } } - // Check whether file exists. if (context.fs->exists(tmp.c_str())) { lua_pop(L, 1); lua_pushstring(L, tmp.c_str()); - // Ok, load it. return loadf(L); } @@ -102,9 +100,7 @@ namespace lua for (int i = 0; i<size; ++i) { if (tmp[i] == '.') - { tmp[i] = '/'; - } } if (context.fs->isDir(tmp.c_str())) @@ -114,7 +110,6 @@ namespace lua { lua_pop(L, 1); lua_pushstring(L, tmp.c_str()); - // Ok, load it. return loadf(L); } } |