aboutsummaryrefslogtreecommitdiff
path: root/src/lua/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/filesystem')
-rw-r--r--src/lua/filesystem/luaopen_filesystem.cpp5
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);
}
}