Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8679 in orxonox.OLD for branches/script_engine/src/lib


Ignore:
Timestamp:
Jun 21, 2006, 5:15:26 PM (18 years ago)
Author:
snellen
Message:

all scripts now get loaded from datadir/scripts

Location:
branches/script_engine/src/lib/script_engine
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script.cc

    r8678 r8679  
    33#include "luaincl.h"
    44
    5 #include "filesys/file.h"
    65#include "util/loading/resource_manager.h"
    76
     
    6059 {
    6160
    62    File scriptFile;
    63 
     61   std::string filedest(ResourceManager::getInstance()->getDataDir());
     62   filedest += "scripts/" + filename;
     63   
    6464   if(currentFile.length() != 0)
    6565   {
     
    6868    }
    6969
    70    int error = luaL_loadfile (luaState, filename.c_str());
     70   int error = luaL_loadfile (luaState, filedest.c_str());
    7171
    7272   if(error == 0)
Note: See TracChangeset for help on using the changeset viewer.