From e14e4c77614afa2cacab9b5042554702da4b04fa Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Sun, 10 May 2020 23:29:47 +0200 Subject: Read name of new map_reg_*_db tables from configuration file --- src/map/mapreg.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/mapreg.h') diff --git a/src/map/mapreg.h b/src/map/mapreg.h index b3b89e1b2..bd0e13e21 100644 --- a/src/map/mapreg.h +++ b/src/map/mapreg.h @@ -48,6 +48,8 @@ struct mapreg_interface { struct eri *ers; //[Ind/Hercules] /* */ char table[32]; + char num_db[32]; //!< Name of SQL table which holds permanent global integer variables. + char str_db[32]; //!< Name of SQL table which holds permanent global string variables. /* */ bool dirty; ///< Whether there are modified regs to be saved /* */ @@ -63,6 +65,7 @@ struct mapreg_interface { int (*save_timer) (int tid, int64 tick, int id, intptr_t data); int (*destroyreg) (union DBKey key, struct DBData *data, va_list ap); void (*reload) (void); + bool (*config_read_registry) (const char *filename, const struct config_setting_t *config, bool imported); bool (*config_read) (const char *filename, const struct config_setting_t *config, bool imported); }; -- cgit v1.2.3-60-g2f50