Add quirk configuration

This commit is contained in:
Celestora 2021-10-09 22:18:59 +03:00
parent d2b572818f
commit 21c3c498c8
2 changed files with 7 additions and 0 deletions

View file

@ -46,6 +46,13 @@ function _ovk_check_environment(): void
}
}
function ovkGetQuirk(string $quirk): int
{
static $quirks = chandler_parse_yaml(__DIR__ . "/quirks.yml");
return isset($v = $quirks[$quirk]) ? (int) $v : 0;
}
function ovk_proc_strtr(string $string, int $length = 0): string
{
$newString = iconv_substr($string, 0, $length);

0
quirks.yml Normal file
View file