AxibugEmuOnline/References/VirtuaNESex_src_191105/Plugin.h

55 lines
1.3 KiB
C
Raw Normal View History

2024-08-05 17:58:53 +08:00
//
// Language Plugin support
//
#ifndef __CPLUGIN_INCLUDED__
#define __CPLUGIN_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <mbctype.h>
#include <string>
using namespace std;
#define PLUGIN_MAX 64
class CPlugin
{
public:
typedef struct tagPLUGIN {
LCID LocaleID;
CHAR Path[_MAX_PATH];
CHAR Language[256];
} PLUGIN, *LPPLUGIN;
static HINSTANCE LoadPlugin();
static HINSTANCE LoadPluginID( INT nID );
static BOOL FindPlugin( LPCSTR lpModulePath );
static INT GetPluginNum() { return m_PluginNum; }
static INT GetPluginID() { return m_PluginID; }
static void SetPluginID( INT nID ) { m_PluginID = nID; }
// <20>f<EFBFBD>t<EFBFBD>H<EFBFBD><48><EFBFBD>g<EFBFBD>v<EFBFBD><76><EFBFBD>O<EFBFBD>C<EFBFBD><43>
static LPCSTR GetPluginPath() { return m_Plugin[m_PluginID].Path; }
static LPCSTR GetPluginLanguage() { return m_Plugin[m_PluginID].Language; }
static LCID GetPluginLocaleID() { return m_Plugin[m_PluginID].LocaleID; }
// <20>v<EFBFBD><76><EFBFBD>O<EFBFBD>C<EFBFBD><43>ID<49>w<EFBFBD><77>
static LPCSTR GetPluginPath( INT nID ) { return m_Plugin[nID].Path; }
static LPCSTR GetPluginLanguage( INT nID ) { return m_Plugin[nID].Language; }
static LCID GetPluginLocaleID( INT nID ) { return m_Plugin[nID].LocaleID; }
protected:
static INT m_PluginID;
static INT m_PluginNum;
static PLUGIN m_Plugin[PLUGIN_MAX];
private:
};
#endif // !__CPLUGIN_INCLUDED__