Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2009, 11:32:39 AM (15 years ago)
Author:
rgrieder
Message:

Applied changes to the real sandbox this time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/src/libraries/core/LuaState.h

    r5738 r5782  
    4545namespace orxonox
    4646{
     47    //! Stores basic information about a File
     48    struct ResourceInfo
     49    {
     50        //! The file's fully qualified name
     51        std::string filename;
     52        //! Path name; separated by '/' and ending with '/'
     53        std::string path;
     54        //! Base filename
     55        std::string basename;
     56    };
     57
    4758    /**
    4859    @brief
     
    5667        ~LuaState();
    5768
    58         void doFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
     69        void doFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
    5970        void doString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>());
    6071
    61         void includeFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
     72        void includeFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
    6273        void includeString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>());
    6374
    6475        void luaPrint(const std::string& str); // tolua_export
    6576        void luaLog(unsigned int level, const std::string& message); // tolua_export
    66         bool fileExists(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
     77        bool fileExists(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
    6778
    6879        const std::stringstream& getOutput() const { return output_; }
     
    7889
    7990    private:
    80         shared_ptr<ResourceInfo> getFileInfo(const std::string& filename, const std::string& resourceGroup, bool bSearchOtherPaths);
     91        shared_ptr<ResourceInfo> getFileInfo(const std::string& filename, bool bSearchOtherPaths);
     92        shared_ptr<ResourceInfo> getFileInfo(const std::string& filename);
     93        std::string loadFile(const std::string& filename);
    8194
    8295#if LUA_VERSION_NUM != 501
Note: See TracChangeset for help on using the changeset viewer.