mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
36 lines
788 B
Text
36 lines
788 B
Text
// Standard result format - "type: name(version)[options]".
|
|
// If no version, make it "-"; if no options, use the general options.
|
|
|
|
includeScript("_init");
|
|
|
|
function result(bShowType,bShowVersion,bShowOptions)
|
|
{
|
|
var sResult="";
|
|
|
|
if(bDetected)
|
|
{
|
|
if(bShowType)
|
|
{
|
|
sResult+=sType+": ";
|
|
}
|
|
sResult+=sName;
|
|
if(bShowVersion)
|
|
{
|
|
if(sVersion=="")
|
|
{
|
|
sVersion="-";
|
|
}
|
|
sResult+="("+sVersion+")";
|
|
}
|
|
if(bShowOptions)
|
|
{
|
|
if(sOptions=="")
|
|
{
|
|
sOptions=File.getGeneralOptions();
|
|
}
|
|
sResult+="["+sOptions+"]";
|
|
}
|
|
}
|
|
|
|
return sResult;
|
|
}
|