41 lines
1003 B
C
41 lines
1003 B
C
#ifndef PRIVATE_ENC_CONVERT_H
|
|
#define PRIVATE_ENC_CONVERT_H
|
|
|
|
#include <revolution/types.h>
|
|
|
|
#include <private/enc/encutility.h>
|
|
#include <revolution/enc.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ENCODING_NAME_LENGTH 16
|
|
#define ENCODING_HASH_TABLE_ENTRY_NAME_LENGTH 24
|
|
|
|
struct encoding {
|
|
u32 width; // 0x00
|
|
BOOL is7bit; // 0x04
|
|
const char name[ENCODING_NAME_LENGTH]; // 0x08
|
|
};
|
|
|
|
struct encoding_hash_table_entry {
|
|
const char name[ENCODING_HASH_TABLE_ENTRY_NAME_LENGTH]; // 0x00
|
|
ENCEncoding encoding; // 0x18
|
|
int nextIndex; // 0x1C
|
|
};
|
|
|
|
extern const struct encoding encoding_array[];
|
|
extern const struct encoding_hash_table_entry encoding_table[];
|
|
|
|
extern BOOL enc_tbl_jp_loaded;
|
|
extern BOOL enc_tbl_kr_loaded;
|
|
extern BOOL enc_tbl_uhc_loaded;
|
|
extern BOOL enc_tbl_cn_loaded;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // PRIVATE_ENC_CONVERT_H
|