2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-04-02 18:30:50 +00:00
|
|
|
#include <Project64-core/Settings.h>
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
class CPluginList
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
PLUGIN_INFO Info;
|
2022-09-26 02:31:54 +00:00
|
|
|
bool AboutFunction;
|
|
|
|
CPath FullPath;
|
|
|
|
stdstr FileName;
|
2016-01-27 09:11:59 +00:00
|
|
|
} PLUGIN;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CPluginList(bool bAutoFill = true);
|
|
|
|
~CPluginList();
|
|
|
|
|
2022-09-26 02:31:54 +00:00
|
|
|
bool LoadList(void);
|
|
|
|
int GetPluginCount(void) const;
|
2016-01-27 09:11:59 +00:00
|
|
|
const PLUGIN * GetPluginInfo(int indx) const;
|
|
|
|
|
|
|
|
private:
|
2022-09-26 02:31:54 +00:00
|
|
|
typedef std::vector<PLUGIN> PluginList;
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
PluginList m_PluginList;
|
2022-09-26 02:31:54 +00:00
|
|
|
CPath m_PluginDir;
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
void AddPluginFromDir(CPath Dir);
|
|
|
|
};
|