Ease detection of calling obs_module_text() too early

This commit is contained in:
WarmUpTill 2024-04-26 23:19:56 +02:00 committed by WarmUpTill
parent d136bf5561
commit 54f1051456

View File

@ -9,7 +9,8 @@ namespace advss {
const char *obs_module_text(const char *text)
{
if (!advss::switcher) {
return "";
assert(false);
return "obs_module_text called too early";
}
return advss::switcher->Translate(text);
}