added %T format support

added a new lang native

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40395
This commit is contained in:
Borja Ferrer
2007-01-27 03:25:34 +00:00
parent 7f44c014ae
commit aa8bf86dc1
8 changed files with 150 additions and 1 deletions
+15
View File
@@ -491,6 +491,21 @@ void CPlugin::SetTimeStamp(time_t t)
m_LastAccess = t;
}
void CPlugin::AddLangFile(unsigned int index)
{
m_PhraseFiles.push_back(index);
}
size_t CPlugin::GetLangFileCount() const
{
return m_PhraseFiles.size();
}
unsigned int CPlugin::GetFileByIndex(unsigned int index) const
{
return m_PhraseFiles.at(index);
}
/*******************
* PLUGIN ITERATOR *
*******************/
+17
View File
@@ -21,6 +21,7 @@
#include <IHandleSys.h>
#include <sh_list.h>
#include <sh_stack.h>
#include <sh_vector.h>
#include "sm_globals.h"
#include "vm/sp_vm_basecontext.h"
#include "PluginInfoDatabase.h"
@@ -176,6 +177,21 @@ public:
* Returns true if a plugin is usable.
*/
bool IsRunnable() const;
/**
* Adds a language file index to the plugin's list.
*/
void AddLangFile(unsigned int index);
/**
* Get language file count for this plugin.
*/
size_t GetLangFileCount() const;
/**
* Get language file index based on the vector index.
*/
unsigned int GetFileByIndex(unsigned int index) const;
public:
/**
* Returns the modification time during last plugin load.
@@ -207,6 +223,7 @@ private:
IdentityToken_t *m_ident;
Handle_t m_handle;
bool m_WasRunning;
CVector<unsigned int> m_PhraseFiles;
};
class CPluginManager :