[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Safe config file using Lua
- From: Jose Marin <jose_marin2@...>
- Date: Mon, 6 Aug 2007 05:02:17 -0700 (PDT)
I would like to use Lua to manage config files fo my game, but the problem is how to restrict the functions the user may call in this file, to avoid hacking my game.
For example, on the config file this could be legal:
ActionKey = K_ENTER
But this not:
ResourcePath = "c:/myres"
The user could use "ActionKey " and "SetResolution", but not "ResourcePath " or "SetPlayerMaxHealth".
Thanks for any tip.
Flickr agora em português. Você cria, todo mundo vê.