Project

General

Profile

Bug #2319 » 2319_Main_Part1.patch

Dean Brown, 10/06/2026 05:48 AM

View differences:

server/fcdb.c
{
struct section_file *secfile;
const char *val;
struct stat buf;
fc_assert_ret_val(filename != nullptr, FALSE);
/* does file exist? */
if (fc_stat(filename, &buf) != 0) {
log_error(_("Cannot load fcdb config file '%s':\n%s"), filename,
fc_strerror(fc_get_errno()));
return FALSE;
}
if (!(secfile = secfile_load(filename, FALSE))) {
log_error(_("Cannot load fcdb config file '%s':\n%s"), filename,
secfile_error());
server/stdinhand.c
}
}
/* Attempt to parse the file */
{
struct stat buf;
/* does file exist? */
if (fc_stat(arg, &buf) != 0) {
log_error("Error loading savefile '%s': %s", arg,
fc_strerror(fc_get_errno()));
cmd_reply(CMD_LOAD, caller, C_FAIL, _("Could not load savefile: %s"),
arg);
dlsend_packet_game_load(game.est_connections, FALSE, arg);
return FALSE;
}
}
/* Attempt to parse the file */
if (!(file = secfile_load(arg, FALSE))) {
log_error("Error loading savefile '%s': %s", arg, secfile_error());
cmd_reply(CMD_LOAD, caller, C_FAIL, _("Could not load savefile: %s"),
(2-2/3)