@@ -753,30 +753,6 @@ int ModApiMainMenu::l_get_texturepath_share(lua_State *L)
753
753
return 1 ;
754
754
}
755
755
756
- /* *****************************************************************************/
757
- int ModApiMainMenu::l_get_dirlist (lua_State *L)
758
- {
759
- const char *path = luaL_checkstring (L, 1 );
760
- bool dironly = lua_toboolean (L, 2 );
761
-
762
- std::vector<fs::DirListNode> dirlist = fs::GetDirListing (path);
763
-
764
- unsigned int index = 1 ;
765
- lua_newtable (L);
766
- int table = lua_gettop (L);
767
-
768
- for (unsigned int i=0 ;i< dirlist.size (); i++) {
769
- if ((dirlist[i].dir ) || (dironly == false )) {
770
- lua_pushnumber (L,index );
771
- lua_pushstring (L,dirlist[i].name .c_str ());
772
- lua_settable (L, table);
773
- index ++;
774
- }
775
- }
776
-
777
- return 1 ;
778
- }
779
-
780
756
/* *****************************************************************************/
781
757
int ModApiMainMenu::l_create_dir (lua_State *L) {
782
758
const char *path = luaL_checkstring (L, 1 );
@@ -1170,7 +1146,6 @@ void ModApiMainMenu::Initialize(lua_State *L, int top)
1170
1146
API_FCT (get_gamepath);
1171
1147
API_FCT (get_texturepath);
1172
1148
API_FCT (get_texturepath_share);
1173
- API_FCT (get_dirlist);
1174
1149
API_FCT (create_dir);
1175
1150
API_FCT (delete_dir);
1176
1151
API_FCT (copy_dir);
@@ -1204,7 +1179,6 @@ void ModApiMainMenu::InitializeAsync(AsyncEngine& engine)
1204
1179
ASYNC_API_FCT (get_gamepath);
1205
1180
ASYNC_API_FCT (get_texturepath);
1206
1181
ASYNC_API_FCT (get_texturepath_share);
1207
- ASYNC_API_FCT (get_dirlist);
1208
1182
ASYNC_API_FCT (create_dir);
1209
1183
ASYNC_API_FCT (delete_dir);
1210
1184
ASYNC_API_FCT (copy_dir);
0 commit comments