Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 12:11:57 PM (14 years ago)
Author:
rgrieder
Message:

All CEGUI calls that can execute Lua code should be protected against ScriptException.
Although this is bad design (can leave the game in an undefined state), the game doesn't terminate just because of simple script problem.
When the GUI code is more mature, we should probably remove this again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestates2/src/libraries/core/GUIManager.h

    r6722 r6736  
    101101        void executeCode(const std::string& str);
    102102
     103        template <typename FunctionType>
     104        bool protectedCall(FunctionType function);
     105
    103106        // keyHandler functions
    104107        void keyPressed (const KeyEvent& evt);
Note: See TracChangeset for help on using the changeset viewer.