1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-08 19:15:28 +01:00

Add support for modstore screenshots

Add error output on invalid mmdb entries
This commit is contained in:
sapier
2013-07-13 01:36:58 +02:00
committed by PilzAdam
parent 80a2acaa86
commit 5c7ecdb7c5
4 changed files with 67 additions and 3 deletions

View File

@@ -430,6 +430,10 @@ int guiLuaApi::l_get_modstore_details(lua_State *L)
lua_pushstring(L,current_mod.versions[0].file.c_str());
lua_settable(L, top);
lua_pushstring(L,"screenshot_url");
lua_pushstring(L,current_mod.titlepic.file.c_str());
lua_settable(L, top);
lua_pushstring(L,"license");
lua_pushstring(L,current_mod.license.shortinfo.c_str());
lua_settable(L, top);