//============================================================================ // Name : plugin.hpp // Copyright : 2012 FIX94 //============================================================================ #ifndef _PLUGIN_HPP_ #define _PLUGIN_HPP_ #include #include #include #include "config/config.hpp" #include "safe_vector.hpp" #include "loader/disc.h" using namespace std; class Plugin { public: bool AddPlugin(Config &plugin); u8* GetBannerSound(u32 magic); u32 GetBannerSoundSize(); char* GetDolName(u32 magic); bool UseReturnLoader(u32 magic); void init(string); void Cleanup(); void EndAdd(); safe_vector ParseScummvmINI(Config &ini, string Device); private: safe_vector BannerSound; safe_vector BannerSoundSize; safe_vector magicWords; safe_vector DolName; safe_vector caseColors; safe_vector ReturnLoader; u8 banner_pos; string pluginsDir; bool adding; }; #endif