From fdaa7d2568d03cd6bb7507e5cedbf597f847f178 Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 15 Feb 2018 13:14:49 -0500 Subject: expose script_sprintf to plugins --- src/map/script.c | 1 + src/map/script.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index 26de803d7..d653800cc 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -25180,6 +25180,7 @@ void script_defaults(void) script->search_str = script_search_str; script->setd_sub = setd_sub; script->attach_state = script_attach_state; + script->sprintf = script_sprintf; script->queue = script_hqueue_get; script->queue_add = script_hqueue_add; diff --git a/src/map/script.h b/src/map/script.h index 14d20838d..2dc3b2327 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -909,6 +909,7 @@ struct script_interface { int (*buildin_mobuseskill_sub) (struct block_list *bl, va_list ap); int (*cleanfloor_sub) (struct block_list *bl, va_list ap); int (*run_func) (struct script_state *st); + bool (*sprintf) (struct script_state *st, int start, struct StringBuf *out); const char *(*getfuncname) (struct script_state *st); // for ENABLE_CASE_CHECK unsigned int (*calc_hash_ci) (const char *p); -- cgit v1.2.3-70-g09d2