| 1 | /* |
| 2 | * Copyright (C) 2000,2001 Onlyer ([email protected]) |
| 3 | * Copyright (C) 2005 Olaf Freyer ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | #include "common/setup_before.h"cxx . . $ `<file>/src/common/setup_before.h`/ |
| 20 | #include "setup.h"cxx . . $ `<file>/src/d2dbs/setup.h`/ |
| 21 | #include "prefs.h"cxx . . $ `<file>/src/d2dbs/prefs.h`/ |
| 22 | |
| 23 | #include <cstdio> |
| 24 | |
| 25 | #include "common/conf.h"cxx . . $ `<file>/src/common/conf.h`/ |
| 26 | #include "common/eventlog.h"cxx . . $ `<file>/src/common/eventlog.h`/ |
| 27 | #include "common/setup_after.h"cxx . . $ `<file>/src/common/setup_after.h`/ |
| 28 | |
| 29 | namespace pvpgncxx . . $ pvpgn/ |
| 30 | { |
| 31 | |
| 32 | namespace d2dbscxx . . $ pvpgn/d2dbs/ |
| 33 | { |
| 34 | |
| 35 | static structcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0# |
| 36 | { |
| 37 | char const * logfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile.; |
| 38 | char const * logfile_gscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile_gs.; |
| 39 | char const * servaddrscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#servaddrs.; |
| 40 | char const * charsave_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_dir.; |
| 41 | char const * charinfo_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_dir.; |
| 42 | char const * charsave_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_bak_dir.; |
| 43 | char const * charinfo_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_bak_dir.; |
| 44 | char const * ladder_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_dir.; |
| 45 | char const * d2gs_listcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#d2gs_list.; |
| 46 | unsigned int laddersave_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#laddersave_interval.; |
| 47 | unsigned int ladderinit_timecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderinit_time.; |
| 48 | char const * loglevelscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#loglevels.; |
| 49 | char const * pidfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#pidfile.; |
| 50 | unsigned int shutdown_delaycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_delay.; |
| 51 | unsigned int shutdown_decrcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_decr.; |
| 52 | unsigned int idletimecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#idletime.; |
| 53 | unsigned int keepalive_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#keepalive_interval.; |
| 54 | unsigned int timeout_checkintervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#timeout_checkinterval.; |
| 55 | unsigned int XML_output_laddercxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#XML_output_ladder.; |
| 56 | unsigned int ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderupdate_threshold.; |
| 57 | unsigned int ladder_chars_onlycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_chars_only.; |
| 58 | unsigned int difficulty_hackcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#difficulty_hack.; |
| 59 | |
| 60 | } prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf.; |
| 61 | |
| 62 | static int conf_set_logfilecxx . . $ pvpgn/d2dbs/conf_set_logfile(5c4306d8553b3696).(const char* valstr); |
| 63 | static int conf_setdef_logfilecxx . . $ pvpgn/d2dbs/conf_setdef_logfile(b126dc7c1de90089).(void); |
| 64 | |
| 65 | static int conf_set_logfile_gscxx . . $ pvpgn/d2dbs/conf_set_logfile_gs(5c4306d8553b3696).(const char* valstr); |
| 66 | static int conf_setdef_logfile_gscxx . . $ pvpgn/d2dbs/conf_setdef_logfile_gs(b126dc7c1de90089).(void); |
| 67 | |
| 68 | static int conf_set_servaddrscxx . . $ pvpgn/d2dbs/conf_set_servaddrs(5c4306d8553b3696).(const char* valstr); |
| 69 | static int conf_setdef_servaddrscxx . . $ pvpgn/d2dbs/conf_setdef_servaddrs(b126dc7c1de90089).(void); |
| 70 | |
| 71 | static int conf_set_charsave_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_dir(5c4306d8553b3696).(const char* valstr); |
| 72 | static int conf_setdef_charsave_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_dir(b126dc7c1de90089).(void); |
| 73 | |
| 74 | static int conf_set_charinfo_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_dir(5c4306d8553b3696).(const char* valstr); |
| 75 | static int conf_setdef_charinfo_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_dir(b126dc7c1de90089).(void); |
| 76 | |
| 77 | static int conf_set_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_bak_dir(5c4306d8553b3696).(const char* valstr); |
| 78 | static int conf_setdef_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_bak_dir(b126dc7c1de90089).(void); |
| 79 | |
| 80 | static int conf_set_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_bak_dir(5c4306d8553b3696).(const char* valstr); |
| 81 | static int conf_setdef_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_bak_dir(b126dc7c1de90089).(void); |
| 82 | |
| 83 | static int conf_set_ladder_dircxx . . $ pvpgn/d2dbs/conf_set_ladder_dir(5c4306d8553b3696).(const char* valstr); |
| 84 | static int conf_setdef_ladder_dircxx . . $ pvpgn/d2dbs/conf_setdef_ladder_dir(b126dc7c1de90089).(void); |
| 85 | |
| 86 | static int conf_set_d2gs_listcxx . . $ pvpgn/d2dbs/conf_set_d2gs_list(5c4306d8553b3696).(const char* valstr); |
| 87 | static int conf_setdef_d2gs_listcxx . . $ pvpgn/d2dbs/conf_setdef_d2gs_list(b126dc7c1de90089).(void); |
| 88 | |
| 89 | static int conf_set_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_set_laddersave_interval(5c4306d8553b3696).(const char* valstr); |
| 90 | static int conf_setdef_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_laddersave_interval(b126dc7c1de90089).(void); |
| 91 | |
| 92 | static int conf_set_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_set_ladderinit_time(5c4306d8553b3696).(const char* valstr); |
| 93 | static int conf_setdef_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_setdef_ladderinit_time(b126dc7c1de90089).(void); |
| 94 | |
| 95 | static int conf_set_loglevelscxx . . $ pvpgn/d2dbs/conf_set_loglevels(5c4306d8553b3696).(const char* valstr); |
| 96 | static int conf_setdef_loglevelscxx . . $ pvpgn/d2dbs/conf_setdef_loglevels(b126dc7c1de90089).(void); |
| 97 | |
| 98 | static int conf_set_pidfilecxx . . $ pvpgn/d2dbs/conf_set_pidfile(5c4306d8553b3696).(const char* valstr); |
| 99 | static int conf_setdef_pidfilecxx . . $ pvpgn/d2dbs/conf_setdef_pidfile(b126dc7c1de90089).(void); |
| 100 | |
| 101 | static int conf_set_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_set_shutdown_delay(5c4306d8553b3696).(const char* valstr); |
| 102 | static int conf_setdef_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_delay(b126dc7c1de90089).(void); |
| 103 | |
| 104 | static int conf_set_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_set_shutdown_decr(5c4306d8553b3696).(const char* valstr); |
| 105 | static int conf_setdef_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_decr(b126dc7c1de90089).(void); |
| 106 | |
| 107 | static int conf_set_idletimecxx . . $ pvpgn/d2dbs/conf_set_idletime(5c4306d8553b3696).(const char* valstr); |
| 108 | static int conf_setdef_idletimecxx . . $ pvpgn/d2dbs/conf_setdef_idletime(b126dc7c1de90089).(void); |
| 109 | |
| 110 | static int conf_set_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_set_keepalive_interval(5c4306d8553b3696).(const char* valstr); |
| 111 | static int conf_setdef_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_keepalive_interval(b126dc7c1de90089).(void); |
| 112 | |
| 113 | static int conf_set_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_set_timeout_checkinterval(5c4306d8553b3696).(const char* valstr); |
| 114 | static int conf_setdef_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_setdef_timeout_checkinterval(b126dc7c1de90089).(void); |
| 115 | |
| 116 | static int conf_set_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_set_XML_output_ladder(5c4306d8553b3696).(const char* valstr); |
| 117 | static int conf_setdef_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_setdef_XML_output_ladder(b126dc7c1de90089).(void); |
| 118 | |
| 119 | static int conf_set_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_set_ladderupdate_threshold(5c4306d8553b3696).(const char* valstr); |
| 120 | static int conf_setdef_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_setdef_ladderupdate_threshold(b126dc7c1de90089).(void); |
| 121 | |
| 122 | static int conf_set_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_set_ladder_chars_only(5c4306d8553b3696).(const char* valstr); |
| 123 | static int conf_setdef_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_setdef_ladder_chars_only(b126dc7c1de90089).(void); |
| 124 | |
| 125 | static int conf_set_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_set_difficulty_hack(5c4306d8553b3696).(const char* valstr); |
| 126 | static int conf_setdef_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_setdef_difficulty_hack(b126dc7c1de90089).(void); |
| 127 | |
| 128 | |
| 129 | static t_conf_entrycxx . . $ pvpgn/t_conf_entry# prefs_conf_tablecxx . . $ pvpgn/d2dbs/prefs_conf_table.[] = { |
| 130 | { "logfile", conf_set_logfilecxx . . $ pvpgn/d2dbs/conf_set_logfile(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_logfilecxx . . $ pvpgn/d2dbs/conf_setdef_logfile(b126dc7c1de90089). }, |
| 131 | { "logfile-gs", conf_set_logfile_gscxx . . $ pvpgn/d2dbs/conf_set_logfile_gs(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_logfile_gscxx . . $ pvpgn/d2dbs/conf_setdef_logfile_gs(b126dc7c1de90089). }, |
| 132 | { "servaddrs", conf_set_servaddrscxx . . $ pvpgn/d2dbs/conf_set_servaddrs(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_servaddrscxx . . $ pvpgn/d2dbs/conf_setdef_servaddrs(b126dc7c1de90089). }, |
| 133 | { "charsavedir", conf_set_charsave_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_dir(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_charsave_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_dir(b126dc7c1de90089). }, |
| 134 | { "charinfodir", conf_set_charinfo_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_dir(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_charinfo_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_dir(b126dc7c1de90089). }, |
| 135 | { "bak_charsavedir", conf_set_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_bak_dir(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_bak_dir(b126dc7c1de90089). }, |
| 136 | { "bak_charinfodir", conf_set_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_bak_dir(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_bak_dir(b126dc7c1de90089). }, |
| 137 | { "ladderdir", conf_set_ladder_dircxx . . $ pvpgn/d2dbs/conf_set_ladder_dir(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_ladder_dircxx . . $ pvpgn/d2dbs/conf_setdef_ladder_dir(b126dc7c1de90089). }, |
| 138 | { "gameservlist", conf_set_d2gs_listcxx . . $ pvpgn/d2dbs/conf_set_d2gs_list(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_d2gs_listcxx . . $ pvpgn/d2dbs/conf_setdef_d2gs_list(b126dc7c1de90089). }, |
| 139 | { "laddersave_interval", conf_set_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_set_laddersave_interval(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_laddersave_interval(b126dc7c1de90089). }, |
| 140 | { "ladderinit_time", conf_set_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_set_ladderinit_time(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_setdef_ladderinit_time(b126dc7c1de90089). }, |
| 141 | { "loglevels", conf_set_loglevelscxx . . $ pvpgn/d2dbs/conf_set_loglevels(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_loglevelscxx . . $ pvpgn/d2dbs/conf_setdef_loglevels(b126dc7c1de90089). }, |
| 142 | { "pidfile", conf_set_pidfilecxx . . $ pvpgn/d2dbs/conf_set_pidfile(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_pidfilecxx . . $ pvpgn/d2dbs/conf_setdef_pidfile(b126dc7c1de90089). }, |
| 143 | { "shutdown_delay", conf_set_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_set_shutdown_delay(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_delay(b126dc7c1de90089). }, |
| 144 | { "shutdown_decr", conf_set_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_set_shutdown_decr(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_decr(b126dc7c1de90089). }, |
| 145 | { "idletime", conf_set_idletimecxx . . $ pvpgn/d2dbs/conf_set_idletime(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_idletimecxx . . $ pvpgn/d2dbs/conf_setdef_idletime(b126dc7c1de90089). }, |
| 146 | { "keepalive_interval", conf_set_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_set_keepalive_interval(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_keepalive_interval(b126dc7c1de90089). }, |
| 147 | { "timeout_checkinterval", conf_set_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_set_timeout_checkinterval(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_setdef_timeout_checkinterval(b126dc7c1de90089). }, |
| 148 | { "XML_ladder_output", conf_set_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_set_XML_output_ladder(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_setdef_XML_output_ladder(b126dc7c1de90089). }, |
| 149 | { "ladderupdate_threshold", conf_set_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_set_ladderupdate_threshold(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_setdef_ladderupdate_threshold(b126dc7c1de90089). }, |
| 150 | { "ladder_chars_only", conf_set_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_set_ladder_chars_only(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_setdef_ladder_chars_only(b126dc7c1de90089). }, |
| 151 | { "difficulty_hack", conf_set_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_set_difficulty_hack(5c4306d8553b3696)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, conf_setdef_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_setdef_difficulty_hack(b126dc7c1de90089). }, |
| 152 | { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`! } |
| 153 | }; |
| 154 | |
| 155 | extern int d2dbs_prefs_loadcxx . . $ pvpgn/d2dbs/d2dbs_prefs_load(5c4306d8553b3696).(char const * filename) |
| 156 | { |
| 157 | stdcxx . . $ std/::FILEcxx . . $ std/FILE# *fd; |
| 158 | |
| 159 | if (!filename) { |
| 160 | eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "got NULL filename"); |
| 161 | return -1; |
| 162 | } |
| 163 | |
| 164 | fd = stdcxx . . $ std/::fopencxx . . $ std/fopen(82ec0787cd37e0a3).(filename, "rt"); |
| 165 | if (!fd) { |
| 166 | eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "could not open file '{}'", filename); |
| 167 | return -1; |
| 168 | } |
| 169 | |
| 170 | if (conf_load_filecxx . . $ pvpgn/conf_load_file(d06f02f90cf2e5b0).(fd, prefs_conf_tablecxx . . $ pvpgn/d2dbs/prefs_conf_table.)) { |
| 171 | eventlogcxx . . $ pvpgn/eventlog(f1d8dd72586f1e25).(eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error., __FUNCTION__, "error loading config file '{}'", filename); |
| 172 | stdcxx . . $ std/::fclosecxx . . $ std/fclose(89bc1efcdac0ca22).(fd); |
| 173 | return -1; |
| 174 | } |
| 175 | |
| 176 | stdcxx . . $ std/::fclosecxx . . $ std/fclose(89bc1efcdac0ca22).(fd); |
| 177 | |
| 178 | return 0; |
| 179 | } |
| 180 | |
| 181 | extern int d2dbs_prefs_reloadcxx . . $ pvpgn/d2dbs/d2dbs_prefs_reload(5c4306d8553b3696).(char const * filename) |
| 182 | { |
| 183 | d2dbs_prefs_unloadcxx . . $ pvpgn/d2dbs/d2dbs_prefs_unload(b126dc7c1de90089).(); |
| 184 | if (d2dbs_prefs_loadcxx . . $ pvpgn/d2dbs/d2dbs_prefs_load(5c4306d8553b3696).(filename) < 0) return -1; |
| 185 | return 0; |
| 186 | } |
| 187 | |
| 188 | extern int d2dbs_prefs_unloadcxx . . $ pvpgn/d2dbs/d2dbs_prefs_unload(b126dc7c1de90089).(void) |
| 189 | { |
| 190 | conf_unloadcxx . . $ pvpgn/conf_unload(ffbf16c7007c705c).(prefs_conf_tablecxx . . $ pvpgn/d2dbs/prefs_conf_table.); |
| 191 | return 0; |
| 192 | } |
| 193 | |
| 194 | extern char const * d2dbs_prefs_get_servaddrscxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_servaddrs(33a1f659e94feb42).(void) |
| 195 | { |
| 196 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..servaddrscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#servaddrs.; |
| 197 | } |
| 198 | |
| 199 | static int conf_set_servaddrscxx . . $ pvpgn/d2dbs/conf_set_servaddrs(5c4306d8553b3696).(const char* valstr) |
| 200 | { |
| 201 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..servaddrscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#servaddrs., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 202 | } |
| 203 | |
| 204 | static int conf_setdef_servaddrscxx . . $ pvpgn/d2dbs/conf_setdef_servaddrs(b126dc7c1de90089).(void) |
| 205 | { |
| 206 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..servaddrscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#servaddrs., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_SERVER_ADDRScxx . . $ `src/d2dbs/setup.h:43:9`!); |
| 207 | } |
| 208 | |
| 209 | |
| 210 | extern char const * d2dbs_prefs_get_logfilecxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_logfile(33a1f659e94feb42).(void) |
| 211 | { |
| 212 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile.; |
| 213 | } |
| 214 | |
| 215 | static int conf_set_logfilecxx . . $ pvpgn/d2dbs/conf_set_logfile(5c4306d8553b3696).(const char * valstr) |
| 216 | { |
| 217 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 218 | } |
| 219 | |
| 220 | static int conf_setdef_logfilecxx . . $ pvpgn/d2dbs/conf_setdef_logfile(b126dc7c1de90089).(void) |
| 221 | { |
| 222 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_LOG_FILEcxx . . $ `src/d2dbs/setup.h:30:9`!); |
| 223 | } |
| 224 | |
| 225 | |
| 226 | extern char const * prefs_get_logfile_gscxx . . $ pvpgn/d2dbs/prefs_get_logfile_gs(33a1f659e94feb42).(void) |
| 227 | { |
| 228 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfile_gscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile_gs.; |
| 229 | } |
| 230 | |
| 231 | static int conf_set_logfile_gscxx . . $ pvpgn/d2dbs/conf_set_logfile_gs(5c4306d8553b3696).(const char * valstr) |
| 232 | { |
| 233 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfile_gscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile_gs., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 234 | } |
| 235 | |
| 236 | static int conf_setdef_logfile_gscxx . . $ pvpgn/d2dbs/conf_setdef_logfile_gs(b126dc7c1de90089).(void) |
| 237 | { |
| 238 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..logfile_gscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#logfile_gs., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_LOG_FILEcxx . . $ `src/d2dbs/setup.h:30:9`!); |
| 239 | } |
| 240 | |
| 241 | |
| 242 | extern char const * d2dbs_prefs_get_charsave_dircxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_charsave_dir(33a1f659e94feb42).(void) |
| 243 | { |
| 244 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_dir.; |
| 245 | } |
| 246 | |
| 247 | static int conf_set_charsave_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_dir(5c4306d8553b3696).(const char * valstr) |
| 248 | { |
| 249 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_dir., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 250 | } |
| 251 | |
| 252 | static int conf_setdef_charsave_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_dir(b126dc7c1de90089).(void) |
| 253 | { |
| 254 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_dir., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_CHARSAVE_DIRcxx . . $ `src/d2dbs/setup.h:33:9`!); |
| 255 | } |
| 256 | |
| 257 | |
| 258 | extern char const * d2dbs_prefs_get_charinfo_dircxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_charinfo_dir(33a1f659e94feb42).(void) |
| 259 | { |
| 260 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_dir.; |
| 261 | } |
| 262 | |
| 263 | static int conf_set_charinfo_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_dir(5c4306d8553b3696).(const char * valstr) |
| 264 | { |
| 265 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_dir., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 266 | } |
| 267 | |
| 268 | static int conf_setdef_charinfo_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_dir(b126dc7c1de90089).(void) |
| 269 | { |
| 270 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_dir., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_CHARINFO_DIRcxx . . $ `src/d2dbs/setup.h:34:9`!); |
| 271 | } |
| 272 | |
| 273 | |
| 274 | extern char const * prefs_get_charsave_bak_dircxx . . $ pvpgn/d2dbs/prefs_get_charsave_bak_dir(33a1f659e94feb42).(void) |
| 275 | { |
| 276 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_bak_dir.; |
| 277 | } |
| 278 | |
| 279 | static int conf_set_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charsave_bak_dir(5c4306d8553b3696).(const char * valstr) |
| 280 | { |
| 281 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_bak_dir., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 282 | } |
| 283 | |
| 284 | static int conf_setdef_charsave_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charsave_bak_dir(b126dc7c1de90089).(void) |
| 285 | { |
| 286 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charsave_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charsave_bak_dir., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_CHARSAVEBAK_DIRcxx . . $ `src/d2dbs/setup.h:35:9`!); |
| 287 | } |
| 288 | |
| 289 | |
| 290 | extern char const * prefs_get_charinfo_bak_dircxx . . $ pvpgn/d2dbs/prefs_get_charinfo_bak_dir(33a1f659e94feb42).(void) |
| 291 | { |
| 292 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_bak_dir.; |
| 293 | } |
| 294 | |
| 295 | static int conf_set_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_set_charinfo_bak_dir(5c4306d8553b3696).(const char * valstr) |
| 296 | { |
| 297 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_bak_dir., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 298 | } |
| 299 | |
| 300 | static int conf_setdef_charinfo_bak_dircxx . . $ pvpgn/d2dbs/conf_setdef_charinfo_bak_dir(b126dc7c1de90089).(void) |
| 301 | { |
| 302 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..charinfo_bak_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#charinfo_bak_dir., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_CHARINFOBAK_DIRcxx . . $ `src/d2dbs/setup.h:36:9`!); |
| 303 | } |
| 304 | |
| 305 | |
| 306 | extern char const * d2dbs_prefs_get_ladder_dircxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_ladder_dir(33a1f659e94feb42).(void) |
| 307 | { |
| 308 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_dir.; |
| 309 | } |
| 310 | |
| 311 | static int conf_set_ladder_dircxx . . $ pvpgn/d2dbs/conf_set_ladder_dir(5c4306d8553b3696).(const char * valstr) |
| 312 | { |
| 313 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_dir., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 314 | } |
| 315 | |
| 316 | static int conf_setdef_ladder_dircxx . . $ pvpgn/d2dbs/conf_setdef_ladder_dir(b126dc7c1de90089).(void) |
| 317 | { |
| 318 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_dircxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_dir., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2DBS_LADDER_DIRcxx . . $ `src/d2dbs/setup.h:37:9`!); |
| 319 | } |
| 320 | |
| 321 | |
| 322 | extern char const * d2dbs_prefs_get_d2gs_listcxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_d2gs_list(33a1f659e94feb42).(void) |
| 323 | { |
| 324 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..d2gs_listcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#d2gs_list.; |
| 325 | } |
| 326 | |
| 327 | static int conf_set_d2gs_listcxx . . $ pvpgn/d2dbs/conf_set_d2gs_list(5c4306d8553b3696).(const char * valstr) |
| 328 | { |
| 329 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..d2gs_listcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#d2gs_list., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 330 | } |
| 331 | |
| 332 | static int conf_setdef_d2gs_listcxx . . $ pvpgn/d2dbs/conf_setdef_d2gs_list(b126dc7c1de90089).(void) |
| 333 | { |
| 334 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..d2gs_listcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#d2gs_list., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, D2GS_SERVER_LISTcxx . . $ `src/d2dbs/setup.h:44:9`!); |
| 335 | } |
| 336 | |
| 337 | |
| 338 | extern unsigned int prefs_get_laddersave_intervalcxx . . $ pvpgn/d2dbs/prefs_get_laddersave_interval(db52760e79bf9054).(void) |
| 339 | { |
| 340 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..laddersave_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#laddersave_interval.; |
| 341 | } |
| 342 | |
| 343 | static int conf_set_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_set_laddersave_interval(5c4306d8553b3696).(char const * valstr) |
| 344 | { |
| 345 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..laddersave_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#laddersave_interval., valstr, 0); |
| 346 | } |
| 347 | |
| 348 | static int conf_setdef_laddersave_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_laddersave_interval(b126dc7c1de90089).(void) |
| 349 | { |
| 350 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..laddersave_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#laddersave_interval., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 3600); |
| 351 | } |
| 352 | |
| 353 | extern unsigned int prefs_get_ladderinit_timecxx . . $ pvpgn/d2dbs/prefs_get_ladderinit_time(db52760e79bf9054).(void) |
| 354 | { |
| 355 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderinit_timecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderinit_time.; |
| 356 | } |
| 357 | |
| 358 | static int conf_set_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_set_ladderinit_time(5c4306d8553b3696).(char const * valstr) |
| 359 | { |
| 360 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderinit_timecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderinit_time., valstr, 0); |
| 361 | } |
| 362 | |
| 363 | static int conf_setdef_ladderinit_timecxx . . $ pvpgn/d2dbs/conf_setdef_ladderinit_time(b126dc7c1de90089).(void) |
| 364 | { |
| 365 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderinit_timecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderinit_time., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 366 | } |
| 367 | |
| 368 | |
| 369 | extern char const * d2dbs_prefs_get_loglevelscxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_loglevels(33a1f659e94feb42).(void) |
| 370 | { |
| 371 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..loglevelscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#loglevels.; |
| 372 | } |
| 373 | |
| 374 | static int conf_set_loglevelscxx . . $ pvpgn/d2dbs/conf_set_loglevels(5c4306d8553b3696).(const char* valstr) |
| 375 | { |
| 376 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..loglevelscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#loglevels., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 377 | } |
| 378 | |
| 379 | static int conf_setdef_loglevelscxx . . $ pvpgn/d2dbs/conf_setdef_loglevels(b126dc7c1de90089).(void) |
| 380 | { |
| 381 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..loglevelscxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#loglevels., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_LOG_LEVELScxx . . $ `src/d2dbs/setup.h:32:9`!); |
| 382 | } |
| 383 | |
| 384 | |
| 385 | extern char const * d2dbs_prefs_get_pidfilecxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_pidfile(33a1f659e94feb42).(void) |
| 386 | { |
| 387 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..pidfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#pidfile.; |
| 388 | } |
| 389 | |
| 390 | static int conf_set_pidfilecxx . . $ pvpgn/d2dbs/conf_set_pidfile(5c4306d8553b3696).(const char* valstr) |
| 391 | { |
| 392 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..pidfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#pidfile., valstr, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 393 | } |
| 394 | |
| 395 | static int conf_setdef_pidfilecxx . . $ pvpgn/d2dbs/conf_setdef_pidfile(b126dc7c1de90089).(void) |
| 396 | { |
| 397 | return conf_set_strcxx . . $ pvpgn/conf_set_str(ef5efe93f374dbad).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..pidfilecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#pidfile., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, ""); |
| 398 | } |
| 399 | |
| 400 | |
| 401 | extern unsigned int d2dbs_prefs_get_shutdown_delaycxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_shutdown_delay(db52760e79bf9054).(void) |
| 402 | { |
| 403 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_delaycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_delay.; |
| 404 | } |
| 405 | |
| 406 | static int conf_set_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_set_shutdown_delay(5c4306d8553b3696).(const char * valstr) |
| 407 | { |
| 408 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_delaycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_delay., valstr, 0); |
| 409 | } |
| 410 | |
| 411 | static int conf_setdef_shutdown_delaycxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_delay(b126dc7c1de90089).(void) |
| 412 | { |
| 413 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_delaycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_delay., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_SHUTDOWN_DELAYcxx . . $ `src/d2dbs/setup.h:47:9`!); |
| 414 | } |
| 415 | |
| 416 | |
| 417 | extern unsigned int d2dbs_prefs_get_shutdown_decrcxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_shutdown_decr(db52760e79bf9054).(void) |
| 418 | { |
| 419 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_decrcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_decr.; |
| 420 | } |
| 421 | |
| 422 | static int conf_set_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_set_shutdown_decr(5c4306d8553b3696).(const char * valstr) |
| 423 | { |
| 424 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_decrcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_decr., valstr, 0); |
| 425 | } |
| 426 | |
| 427 | static int conf_setdef_shutdown_decrcxx . . $ pvpgn/d2dbs/conf_setdef_shutdown_decr(b126dc7c1de90089).(void) |
| 428 | { |
| 429 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..shutdown_decrcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#shutdown_decr., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_SHUTDOWN_DECRcxx . . $ `src/d2dbs/setup.h:48:9`!); |
| 430 | } |
| 431 | |
| 432 | |
| 433 | extern unsigned int d2dbs_prefs_get_idletimecxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_idletime(db52760e79bf9054).(void) |
| 434 | { |
| 435 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..idletimecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#idletime.; |
| 436 | } |
| 437 | |
| 438 | static int conf_set_idletimecxx . . $ pvpgn/d2dbs/conf_set_idletime(5c4306d8553b3696).(const char * valstr) |
| 439 | { |
| 440 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..idletimecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#idletime., valstr, 0); |
| 441 | } |
| 442 | |
| 443 | static int conf_setdef_idletimecxx . . $ pvpgn/d2dbs/conf_setdef_idletime(b126dc7c1de90089).(void) |
| 444 | { |
| 445 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..idletimecxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#idletime., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_IDLETIMEcxx . . $ `src/d2dbs/setup.h:49:9`!); |
| 446 | } |
| 447 | |
| 448 | |
| 449 | extern unsigned int prefs_get_keepalive_intervalcxx . . $ pvpgn/d2dbs/prefs_get_keepalive_interval(db52760e79bf9054).(void) |
| 450 | { |
| 451 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..keepalive_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#keepalive_interval.; |
| 452 | } |
| 453 | |
| 454 | static int conf_set_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_set_keepalive_interval(5c4306d8553b3696).(const char * valstr) |
| 455 | { |
| 456 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..keepalive_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#keepalive_interval., valstr, 0); |
| 457 | } |
| 458 | |
| 459 | static int conf_setdef_keepalive_intervalcxx . . $ pvpgn/d2dbs/conf_setdef_keepalive_interval(b126dc7c1de90089).(void) |
| 460 | { |
| 461 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..keepalive_intervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#keepalive_interval., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_KEEPALIVE_INTERVALcxx . . $ `src/d2dbs/setup.h:50:9`!); |
| 462 | } |
| 463 | |
| 464 | |
| 465 | extern unsigned int d2dbs_prefs_get_timeout_checkintervalcxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_timeout_checkinterval(db52760e79bf9054).(void) |
| 466 | { |
| 467 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..timeout_checkintervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#timeout_checkinterval.; |
| 468 | } |
| 469 | |
| 470 | static int conf_set_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_set_timeout_checkinterval(5c4306d8553b3696).(const char * valstr) |
| 471 | { |
| 472 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..timeout_checkintervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#timeout_checkinterval., valstr, 0); |
| 473 | } |
| 474 | |
| 475 | static int conf_setdef_timeout_checkintervalcxx . . $ pvpgn/d2dbs/conf_setdef_timeout_checkinterval(b126dc7c1de90089).(void) |
| 476 | { |
| 477 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..timeout_checkintervalcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#timeout_checkinterval., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_TIMEOUT_CHECKINTERVALcxx . . $ `src/d2dbs/setup.h:51:9`!); |
| 478 | } |
| 479 | |
| 480 | |
| 481 | extern unsigned int d2dbs_prefs_get_XML_output_laddercxx . . $ pvpgn/d2dbs/d2dbs_prefs_get_XML_output_ladder(db52760e79bf9054).(void) |
| 482 | { |
| 483 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..XML_output_laddercxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#XML_output_ladder.; |
| 484 | } |
| 485 | |
| 486 | static int conf_set_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_set_XML_output_ladder(5c4306d8553b3696).(const char * valstr) |
| 487 | { |
| 488 | return conf_set_boolcxx . . $ pvpgn/conf_set_bool(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..XML_output_laddercxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#XML_output_ladder., valstr, 0); |
| 489 | } |
| 490 | |
| 491 | static int conf_setdef_XML_output_laddercxx . . $ pvpgn/d2dbs/conf_setdef_XML_output_ladder(b126dc7c1de90089).(void) |
| 492 | { |
| 493 | return conf_set_boolcxx . . $ pvpgn/conf_set_bool(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..XML_output_laddercxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#XML_output_ladder., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 494 | } |
| 495 | |
| 496 | extern unsigned int prefs_get_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/prefs_get_ladderupdate_threshold(db52760e79bf9054).(void) |
| 497 | { |
| 498 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderupdate_threshold.; |
| 499 | } |
| 500 | |
| 501 | static int conf_set_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_set_ladderupdate_threshold(5c4306d8553b3696).(const char * valstr) |
| 502 | { |
| 503 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderupdate_threshold., valstr, 0); |
| 504 | } |
| 505 | |
| 506 | static int conf_setdef_ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/conf_setdef_ladderupdate_threshold(b126dc7c1de90089).(void) |
| 507 | { |
| 508 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladderupdate_thresholdcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladderupdate_threshold., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, DEFAULT_LADDERUPDATE_THRESHOLDcxx . . $ `src/d2dbs/setup.h:52:9`!); |
| 509 | } |
| 510 | |
| 511 | |
| 512 | extern unsigned int prefs_get_ladder_chars_onlycxx . . $ pvpgn/d2dbs/prefs_get_ladder_chars_only(db52760e79bf9054).(void) |
| 513 | { |
| 514 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_chars_onlycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_chars_only.; |
| 515 | } |
| 516 | |
| 517 | static int conf_set_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_set_ladder_chars_only(5c4306d8553b3696).(const char * valstr) |
| 518 | { |
| 519 | return conf_set_boolcxx . . $ pvpgn/conf_set_bool(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_chars_onlycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_chars_only., valstr, 0); |
| 520 | } |
| 521 | |
| 522 | static int conf_setdef_ladder_chars_onlycxx . . $ pvpgn/d2dbs/conf_setdef_ladder_chars_only(b126dc7c1de90089).(void) |
| 523 | { |
| 524 | return conf_set_boolcxx . . $ pvpgn/conf_set_bool(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..ladder_chars_onlycxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#ladder_chars_only., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 525 | } |
| 526 | |
| 527 | |
| 528 | extern unsigned int prefs_get_difficulty_hackcxx . . $ pvpgn/d2dbs/prefs_get_difficulty_hack(db52760e79bf9054).(void) |
| 529 | { |
| 530 | return prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..difficulty_hackcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#difficulty_hack.; |
| 531 | } |
| 532 | |
| 533 | static int conf_set_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_set_difficulty_hack(5c4306d8553b3696).(const char * valstr) |
| 534 | { |
| 535 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..difficulty_hackcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#difficulty_hack., valstr, 0); |
| 536 | } |
| 537 | |
| 538 | static int conf_setdef_difficulty_hackcxx . . $ pvpgn/d2dbs/conf_setdef_difficulty_hack(b126dc7c1de90089).(void) |
| 539 | { |
| 540 | return conf_set_intcxx . . $ pvpgn/conf_set_int(5db442afce5f848d).(&prefs_confcxx . . $ pvpgn/d2dbs/prefs_conf..difficulty_hackcxx . . $ pvpgn/d2dbs/$anonymous_type_7204097fd5006cf6_0#difficulty_hack., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 541 | } |
| 542 | |
| 543 | } |
| 544 | |
| 545 | } |