From 500803413665186eaec125e34b0ebe1efb4e8245 Mon Sep 17 00:00:00 2001 From: Sc2ad Date: Sat, 14 Oct 2023 23:47:41 -0700 Subject: [PATCH] Add standalone file to be included in mods `#include "beatsaber-hook/shared/early-mod-checks.hpp"` at the bottom will ensure that the functions you have in your mod match on compile --- shared/utils/early-mod-checks.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shared/utils/early-mod-checks.hpp diff --git a/shared/utils/early-mod-checks.hpp b/shared/utils/early-mod-checks.hpp new file mode 100644 index 00000000..c290c516 --- /dev/null +++ b/shared/utils/early-mod-checks.hpp @@ -0,0 +1,9 @@ +#pragma once + +// Include this file to assert that you have defined the necessary functions with the correct signatures + +#include +#include "scotland2/shared/loader.hpp" + +static_assert(std::is_same_v, "Must match the specified signature with setup!"); +static_assert(std::is_same_v, "Must match the specified signature with load!");