Update comment to reference meta() instead of init()

Replaces a comment reference to init() with meta() to clarify the recommended function for use with _setResult in detection scripts.
This commit is contained in:
DosX 2025-10-19 20:38:04 +03:00
commit d91a0393c5

View file

@ -21,7 +21,7 @@ function detect() {
/*
Tips for writing detection scripts:
* If you want to detect a specific file format, use full-file signature search as a last resort (after checking magic values or if you just want to get the version when bDetected is already true)
* Avoid using _setResult instead of init(). But you can use it as an addition to the main detection.
* Avoid using _setResult instead of meta(). But you can use it as an addition to the main detection.
* sVersion, sOptions, bDetected, sLang, sLangVersion, etc. are already declared with default values. You don't need to reset them at the start of the file.
* Try to follow the code style from the main "db" directory files.
* If you want to forcibly stop script execution, just use "return;"