1 #ifndef CORE_SCRIPTS_LEGACYWARN_HPP
2 #define CORE_SCRIPTS_LEGACYWARN_HPP
4 #include <BLIB/Logging.hpp>
5 #include <BLIB/Util/FileUtil.hpp>
23 static void warn(
const std::string& script);
27 #ifdef PEOPLEMON_DEBUG
28 if (bl::util::FileUtil::getExtension(script) ==
"psc") {
29 BL_LOG_WARN <<
"Tried to load legacy script: "
Core classes and functionality for both the editor and game.
static const std::string & ScriptPath()
Helper struct to warn when legacy scripts are attempted to load.
static void warn(const std::string &script)
In debug mode logs a warning if the given script is detected to be legacy.