Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Reverted trunk again. We might want to find a way to delete these revisions again (x3n's changes are still available as diff in the commit mails).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/LuaState.h

    r5774 r5781  
    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 
    5847    /**
    5948    @brief
     
    6756        ~LuaState();
    6857
    69         void doFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
     58        void doFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
    7059        void doString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>());
    7160
    72         void includeFile(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
     61        void includeFile(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
    7362        void includeString(const std::string& code, shared_ptr<ResourceInfo> sourceFileInfo = shared_ptr<ResourceInfo>());
    7463
    7564        void luaPrint(const std::string& str); // tolua_export
    7665        void luaLog(unsigned int level, const std::string& message); // tolua_export
    77         bool fileExists(const std::string& filename, bool bSearchOtherPaths = true); // tolua_export
     66        bool fileExists(const std::string& filename, const std::string& resourceGroup = "General", bool bSearchOtherPaths = true); // tolua_export
    7867
    7968        const std::stringstream& getOutput() const { return output_; }
     
    8978
    9079    private:
    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);
     80        shared_ptr<ResourceInfo> getFileInfo(const std::string& filename, const std::string& resourceGroup, bool bSearchOtherPaths);
    9481
    9582#if LUA_VERSION_NUM != 501
Note: See TracChangeset for help on using the changeset viewer.