From 7ac86950d3a89a996974e8406ee88e8f5f44187d Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 29 Jul 2018 21:30:03 +0800 Subject: *update --- src/lua/filesystem/luaopen_filesystem.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/lua/filesystem/luaopen_filesystem.cpp') 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; iisDir(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); } } -- cgit v1.1-26-g67d0