From 9a0ac7c7fd06a60f0e61b88828eaa59c0ee30fdd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 2 Dec 2022 03:53:23 +0100 Subject: serialize: work on recovering from corrupted saves --- src/CMakeLists.txt | 1 + src/exception.cpp | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/exception.cpp (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c994aacb..7af9439e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,6 +6,7 @@ target_link_libraries( Magnum::GL Magnum::Magnum Magnum::Shaders + fmt::fmt ) if(FLOORMAT_PRECOMPILED-HEADERS) target_precompile_headers(${self} PRIVATE precomp.hpp) diff --git a/src/exception.cpp b/src/exception.cpp new file mode 100644 index 00000000..4855e240 --- /dev/null +++ b/src/exception.cpp @@ -0,0 +1,7 @@ +#include "compat/exception.hpp" + +namespace floormat { + +const char* exception::what() const noexcept { return buf.data(); } + +} // namespace floormat -- cgit v1.2.3