#ifndef READ_INI_H #define READ_INI_H #include #include #include #include namespace OpenGTA { class ScriptParser { public: ScriptParser(const std::string &file); virtual ~ScriptParser(); void loadLevel(PHYSFS_uint32 level); private: typedef std::map LevelMapType; LevelMapType levels; PHYSFS_file* fd; PHYSFS_sint64 sectionEndOffset(PHYSFS_sint64 start); protected: std::string section_info; std::string section_vars; virtual void acceptDefinition(const char*); virtual void acceptCommand(const char*); }; } #endif