summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-01 04:40:06 +0100
committerHaru <haru@dotalux.com>2016-06-25 17:29:40 +0200
commit2a661267b59ebdaad1fceb00339b11eaa06d5bef (patch)
treeeb1c65548489613dd8ad8772257213b188e499e5 /src/map/script.h
parent3dcdb2bbc6e9c06ebdec1e5ad2d18e93c1394a86 (diff)
downloadhercules-2a661267b59ebdaad1fceb00339b11eaa06d5bef.tar.gz
hercules-2a661267b59ebdaad1fceb00339b11eaa06d5bef.tar.bz2
hercules-2a661267b59ebdaad1fceb00339b11eaa06d5bef.tar.xz
hercules-2a661267b59ebdaad1fceb00339b11eaa06d5bef.zip
Changed script->translation_buf to a VECTOR
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/script.h b/src/map/script.h
index dabebe89e..845d52280 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -630,8 +630,7 @@ struct script_interface {
int buildin_lang_macro_offset;
/* */
struct DBMap *translation_db;/* npc_name => DBMap (strings) */
- char **translation_buf;/* */
- uint32 translation_buf_size;
+ VECTOR_DECL(uint8 *) translation_buf;
/* */
char **languages;
uint8 max_lang_id;
@@ -815,7 +814,7 @@ struct script_interface {
unsigned short (*mapindexname2id) (struct script_state *st, const char* name);
int (*string_dup) (char *str);
void (*load_translations) (void);
- void (*load_translation) (const char *file, uint8 lang_id, uint32 *total);
+ int (*load_translation) (const char *file, uint8 lang_id);
int (*translation_db_destroyer) (union DBKey key, struct DBData *data, va_list ap);
void (*clear_translations) (bool reload);
int (*parse_cleanup_timer) (int tid, int64 tick, int id, intptr_t data);