From 32644b50d1600796f553bec4357b5b62dc2966ce Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:26:46 -0300 Subject: [PATCH] add formatter for matjson --- loader/include/Geode/loader/Log.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/loader/include/Geode/loader/Log.hpp b/loader/include/Geode/loader/Log.hpp index d457aedf..ea7d8483 100644 --- a/loader/include/Geode/loader/Log.hpp +++ b/loader/include/Geode/loader/Log.hpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include // for formatting std::vector and such @@ -64,6 +65,12 @@ namespace ghc::filesystem { } } +namespace matjson { + GEODE_INLINE GEODE_HIDDEN std::string format_as(matjson::Value const& value) { + return value.dump(matjson::NO_INDENTATION); + } +} + namespace geode { class Mod;