AutoExecConfig: Add AutoExecConfig native

This commit is contained in:
Arkshine
2015-07-19 21:12:24 +02:00
parent f22185d646
commit 9a1dc5d179
3 changed files with 88 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
#include "amx.h"
#include "amxxfile.h"
#include <am-string.h>
#include <am-vector.h>
// *****************************************************
// class CPluginMngr
@@ -29,6 +30,13 @@ enum
ps_running, //Plugin is running
};
struct AutoConfig
{
ke::AString autocfg;
ke::AString folder;
bool create;
};
class CPluginMngr
{
public:
@@ -63,6 +71,7 @@ public:
bool m_Debug;
cell* m_pNullStringOfs;
cell* m_pNullVectorOfs;
ke::Vector<AutoConfig*> m_configs;
public:
inline const char* getName() { return name.chars();}
inline const char* getVersion() { return version.chars();}
@@ -94,6 +103,10 @@ public:
inline bool isDebug() const { return m_Debug; }
inline cell* getNullStringOfs() const { return m_pNullStringOfs; }
inline cell* getNullVectorOfs() const { return m_pNullVectorOfs; }
public:
void AddConfig(bool create, const char *name, const char *folder);
size_t GetConfigCount();
AutoConfig *GetConfig(size_t index);
};
private: