10#ifndef SAVELOAD_ERROR_HPP
11#define SAVELOAD_ERROR_HPP
13#include "../3rdparty/fmt/format.h"
14#include "../strings_type.h"
16[[noreturn]]
void SlError(
StringID string,
const std::string &extra_msg = {});
27template <
typename ... Args>
28[[noreturn]]
inline void SlErrorCorruptFmt(
const fmt::format_string<Args...> format, Args&&... fmt_args)
30 SlErrorCorrupt(fmt::format(format, std::forward<Args>(fmt_args)...));
void SlError(StringID string, const std::string &extra_msg)
Error handler.
void SlErrorCorrupt(const std::string &msg)
Error handler for corrupt savegames.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.