summaryrefslogtreecommitdiff
path: root/src/gui/intlGUIEditBox.cpp
diff options
context:
space:
mode:
authorJozef Behran <jozuejozef@gmail.com>2020-05-06 21:35:18 +0200
committerGitHub <noreply@github.com>2020-05-06 21:35:18 +0200
commit4f9ccd89b347dad3db5ce63d3405a8d60c163af5 (patch)
tree1fc5601254e8a5d88319235acbb0430796603823 /src/gui/intlGUIEditBox.cpp
parent664800b2adda44039a85c3566b4ed958abff8b95 (diff)
downloadminetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.tar.gz
minetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.tar.bz2
minetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.zip
Get rid of non-ascii characters in the debug display code (#8821)
Diffstat (limited to 'src/gui/intlGUIEditBox.cpp')
0 files changed, 0 insertions, 0 deletions
e Foundation, Inc., --51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. gamemgr = {} -------------------------------------------------------------------------------- function gamemgr.find_by_gameid(gameid) for i=1,#gamemgr.games,1 do if gamemgr.games[i].id == gameid then return gamemgr.games[i], i end end return nil, nil end -------------------------------------------------------------------------------- function gamemgr.get_game_mods(gamespec, retval) if gamespec ~= nil and gamespec.gamemods_path ~= nil and gamespec.gamemods_path ~= "" then get_mods(gamespec.gamemods_path, retval) end end -------------------------------------------------------------------------------- function gamemgr.get_game_modlist(gamespec) local retval = "" local game_mods = {} gamemgr.get_game_mods(gamespec, game_mods) for i=1,#game_mods,1 do if retval ~= "" then retval = retval.."," end retval = retval .. game_mods[i].name end return retval end -------------------------------------------------------------------------------- function gamemgr.get_game(index) if index > 0 and index <= #gamemgr.games then return gamemgr.games[index] end return nil end -------------------------------------------------------------------------------- function gamemgr.update_gamelist() gamemgr.games = core.get_games() end -------------------------------------------------------------------------------- function gamemgr.gamelist() local retval = "" if #gamemgr.games > 0 then retval = retval .. gamemgr.games[1].name for i=2,#gamemgr.games,1 do retval = retval .. "," .. gamemgr.games[i].name end end return retval end -------------------------------------------------------------------------------- -- read initial data -------------------------------------------------------------------------------- gamemgr.update_gamelist()