2015-11-12 08:43:32 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-12 10:47:34 +00:00
|
|
|
#include <Project64/Settings/Settings.h>
|
2015-11-12 08:43:32 +00:00
|
|
|
|
|
|
|
class CPluginList
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-11-12 08:43:32 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
PLUGIN_INFO Info;
|
|
|
|
bool AboutFunction;
|
|
|
|
CPath FullPath;
|
|
|
|
stdstr FileName;
|
|
|
|
} PLUGIN;
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
public:
|
2015-11-12 08:43:32 +00:00
|
|
|
CPluginList(bool bAutoFill = true);
|
|
|
|
~CPluginList();
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-11-12 08:43:32 +00:00
|
|
|
bool LoadList(void);
|
|
|
|
int GetPluginCount(void) const;
|
|
|
|
const PLUGIN * GetPluginInfo(int indx) const;
|
2015-10-25 11:10:54 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-12 08:43:32 +00:00
|
|
|
typedef std::vector<PLUGIN> PluginList;
|
2015-10-25 11:10:54 +00:00
|
|
|
|
2015-11-12 08:43:32 +00:00
|
|
|
PluginList m_PluginList;
|
|
|
|
CPath m_PluginDir;
|
2015-10-25 11:10:54 +00:00
|
|
|
|
2015-11-12 08:43:32 +00:00
|
|
|
void AddPluginFromDir(CPath Dir);
|
2008-11-14 20:51:06 +00:00
|
|
|
};
|