~armagetronad-ct/armagetronad/0.2.8-armagetronad-sty+ct+lua

« back to all changes in this revision

Viewing changes to src/tron/gArmagetron.cpp

yet another try to add scripting support

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
#include "gLanguageMenu.h"
52
52
#include "gAICharacter.h"
53
53
#include "gCycle.h"
 
54
#include "tLuaScript.h"
54
55
//#include <unistd>
55
56
#include <stdio.h>
56
57
#include <stdlib.h>
646
647
        sg_encodingWriter << st_internalEncoding;
647
648
        sg_encodingWriter.write();
648
649
 
 
650
        // Restart scripting to force loading everytime.lua once
 
651
        LuaState::Restart();
 
652
 
649
653
        if ( commandLine.Execute() )
650
654
        {
651
655
            gCycle::PrivateSettings();