From 5a9e31c5bc184d04e88a73135e081fb5898d0adf Mon Sep 17 00:00:00 2001 From: horsicq Date: Fri, 8 Jul 2022 01:15:30 +0200 Subject: [PATCH] Fix: 2022-07-08 --- db/Binary/MS Compiled HTML Help.1.sg | 15 +++++++++------ db/Binary/wav.1.sg | 2 +- help/Binary.md | 3 +++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/db/Binary/MS Compiled HTML Help.1.sg b/db/Binary/MS Compiled HTML Help.1.sg index 41b0fbc28..5b703acef 100644 --- a/db/Binary/MS Compiled HTML Help.1.sg +++ b/db/Binary/MS Compiled HTML Help.1.sg @@ -1,16 +1,19 @@ // DIE's signature file -// Author: sendersu -/* -If errors pls contact sendersu on exelab.ru -*/ +// Authors: +// sendersu (sendersu on exelab.ru), +// Kaens (TG @kaens) init("format","Microsoft Compiled HTML Help"); +includeScript("read"); + function detect(bShowType,bShowVersion,bShowOptions) { - if(Binary.compare("'ITSF'03000000")) + if(Binary.compare("'ITSF'..000000")) { - bDetected=1; + bDetected = 1; + sVersion = "v"+Binary.read_int32(4,_BE); + sOption(Binary.read_uint32(0x14,_BE),"LangID: "); } return result(bShowType,bShowVersion,bShowOptions); diff --git a/db/Binary/wav.1.sg b/db/Binary/wav.1.sg index ee182bc1e..c75dcaf11 100644 --- a/db/Binary/wav.1.sg +++ b/db/Binary/wav.1.sg @@ -288,7 +288,7 @@ function nextChunk() { case "data": if(nBPS && nFormat==1 && (nBPS==8 || nBPS==16)) { var nmSeconds = Math.round(Binary.readDword(pc-4)/(nBPS/8)/nRate/nChannels*1000); - sOption(new Date(nmSeconds).toISOString().substr(11, 8)); + sOption=new Date(nmSeconds).toISOString().substr(11, 8); } break; case "INFO": diff --git a/help/Binary.md b/help/Binary.md index 8da79c668..f5fd0715d 100755 --- a/help/Binary.md +++ b/help/Binary.md @@ -256,7 +256,10 @@ if(signature=="AA5411DD") ``` ``` +**bool isVerbose()** +``` +``` **quint8 read_uint8(qint64 nOffset)* ```