project64/Source/Project64/Plugins/Plugin List.h

42 lines
1.4 KiB
C
Raw Normal View History

/****************************************************************************
* *
* 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
#include <Project64/Settings/Settings.h>
class CPluginList
{
public:
typedef struct
{
PLUGIN_INFO Info;
bool AboutFunction;
CPath FullPath;
stdstr FileName;
} PLUGIN;
public:
CPluginList(bool bAutoFill = true);
~CPluginList();
bool LoadList(void);
int GetPluginCount(void) const;
const PLUGIN * GetPluginInfo(int indx) const;
2015-10-25 11:10:54 +00:00
private:
typedef std::vector<PLUGIN> PluginList;
2015-10-25 11:10:54 +00:00
PluginList m_PluginList;
CPath m_PluginDir;
2015-10-25 11:10:54 +00:00
void AddPluginFromDir(CPath Dir);
};