Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2009, 2:22:00 AM (15 years ago)
Author:
rgrieder
Message:

Merged resource2 branch back to trunk.

IMPORTANT NOTE:
Upon this merge you need to specifically call your data directory "data_extern" when checking it out (when you don't provide a name, it will be just called 'trunk').
The new CMake variable is EXTERNAL_DATA_DIRECTORY. DATA_DIRECTORY now points to the one the source part of the repository.
UPDATE YOUR DATA DIRECTORY AS WELL!!!

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/core/XMLFile.h

    r3196 r5695  
    4040    {
    4141        public:
    42             XMLFile(const std::string& filename) : filename_(filename) {}
    43             XMLFile(const std::string& filename, const ClassTreeMask& mask) : filename_(filename), mask_(mask) {};
     42            XMLFile(const std::string& filename, const std::string& resourceGroup = "General")
     43                : filename_(filename)
     44                , group_(resourceGroup)
     45                , bLuaSupport_(true)
     46            { }
     47            XMLFile(const ClassTreeMask& mask, const std::string& filename, const std::string& resourceGroup = "General")
     48                : filename_(filename)
     49                , group_(resourceGroup)
     50                , mask_(mask)
     51                , bLuaSupport_(true)
     52            { }
     53
     54            void setLuaSupport(bool val) { bLuaSupport_ = val; }
    4455
    4556            const std::string& getFilename() const { return this->filename_; }
     57            const std::string& getResourceGroup() const { return this->group_; }
    4658            const ClassTreeMask& getMask() const { return this->mask_; }
     59            bool getLuaSupport() const { return this->bLuaSupport_; }
    4760
    4861        private:
    4962            std::string filename_;
     63            std::string group_;
    5064            ClassTreeMask mask_;
     65            bool bLuaSupport_; // Default is true
    5166    };
    5267}
Note: See TracChangeset for help on using the changeset viewer.