mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
2df8b4269e
added bcompat trans support to format() and copy()
29 lines
789 B
C
29 lines
789 B
C
#ifndef _INCLUDE_AMXMOD_CORE_COMPAT_H
|
|
#define _INCLUDE_AMXMOD_CORE_COMPAT_H
|
|
|
|
/**
|
|
* New format for translation:
|
|
* Note that we only support:
|
|
* 4k keys
|
|
* 32 languages
|
|
* 0000 0000 0000 0000 0000 0000 0000 0000
|
|
* | key id |
|
|
* | | <- dest id
|
|
* | | <- lang id
|
|
*/
|
|
|
|
#define BCOMPAT_TRANSLATE_BITS 0xFF000000
|
|
#define BCOMPAT_TRANSLATE_KEYMASK 0xFFF
|
|
#define BCOMPAT_TRANSLATE_DESTMASK 0x3F
|
|
#define BCOMPAT_TRANSLATE_DESTRSH 12
|
|
#define BCOMPAT_TRANSLATE_LANGMASK 0x1F
|
|
#define BCOMPAT_TRANSLATE_LANGRSH 18
|
|
|
|
typedef unsigned int amxtrans_t;
|
|
|
|
bool GetTranslation(amxtrans_t trans, int &key, int &dest, int &lang);
|
|
|
|
extern AMX_NATIVE_INFO g_BcompatNatives[];
|
|
|
|
#endif //_INCLUDE_AMXMOD_CORE_COMPAT_H
|