変更は許可されていません
\n')
end
if post then
edcb.WritePrivateProfile('SET','AllService',GetVarInt(post,'allService')==1,appIni)
edcb.WritePrivateProfile('SET','Scramble',GetVarInt(post,'scramble')==1,appIni)
edcb.WritePrivateProfile('SET','EMM',GetVarInt(post,'emm')==1,appIni)
edcb.WritePrivateProfile('SET','Caption',GetVarInt(post,'enableCaption')==1,appIni)
edcb.WritePrivateProfile('SET','Data',GetVarInt(post,'enableData')==1,appIni)
edcb.WritePrivateProfile('SET','OverWrite',GetVarInt(post,'overWrite')==1,appIni)
edcb.WritePrivateProfile('SET','DropSaveThresh',GetVarInt(post,'dropSaveThresh',-1) or 0,appIni)
edcb.WritePrivateProfile('SET','ScrambleSaveThresh',GetVarInt(post,'scrambleSaveThresh',-1) or -1,appIni)
edcb.WritePrivateProfile('SET','NoLogScramble',GetVarInt(post,'noLogScramble')==1,appIni)
edcb.WritePrivateProfile('SET','RecFileName',(mg.get_var(post,'recFileName') or ''):gsub('%c',''),appIni)
if WIN32 then
edcb.WritePrivateProfile('SET','OpenLast',GetVarInt(post,'openLast')==1,appIni)
edcb.WritePrivateProfile('SET','DropLogAsUtf8',GetVarInt(post,'dropLogAsUtf8')==1,appIni)
end
edcb.WritePrivateProfile('SET','SaveDebugLog',GetVarInt(post,'saveDebugLog')==1,appIni)
--設定的には多値なので、すでに有効な場合は値を維持する
traceLevel=GetVarInt(post,'traceBonDriverLevel')==1 and 2 or 0
if traceLevel==0 or edcb.GetPrivateProfile('SET','TraceBonDriverLevel',0,appIni)=='0' then
edcb.WritePrivateProfile('SET','TraceBonDriverLevel',traceLevel,appIni)
end
edcb.WritePrivateProfile('SET','TsBuffMaxCount',GetVarInt(post,'tsBuffMaxCount',0) or 5000,appIni)
edcb.WritePrivateProfile('SET','WriteBuffMaxCount',GetVarInt(post,'writeBuffMaxCount',1) or -1,appIni)
edcb.WritePrivateProfile('SET','EpgCapBackBSBasicOnly',GetVarInt(post,'epgCapBackBSBasic')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapBackCS1BasicOnly',GetVarInt(post,'epgCapBackCS1Basic')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapBackCS2BasicOnly',GetVarInt(post,'epgCapBackCS2Basic')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapBackCS3BasicOnly',GetVarInt(post,'epgCapBackCS3Basic')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapLive',GetVarInt(post,'epgCapLive')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapRec',GetVarInt(post,'epgCapRec')==1,appIni)
edcb.WritePrivateProfile('SET','ParseEpgPostProcess',GetVarInt(post,'parseEpgPostProcess')==1,appIni)
edcb.WritePrivateProfile('SET','EpgCapBackStartWaitSec',GetVarInt(post,'epgCapBackStartWaitSec',0) or 30,appIni)
edcb.WritePrivateProfile('SET','SaveLogo',GetVarInt(post,'saveLogo')==1,appIni)
edcb.WritePrivateProfile('SET','SaveLogoTypeFlags',GetVarInt(post,'saveLogoTypeFlags',0) or 32,appIni)
ct:Append('変更しました
\n')
end
edcb.htmlEscape=15
allService=edcb.GetPrivateProfile('SET','AllService',0,appIni)~='0'
scramble=edcb.GetPrivateProfile('SET','Scramble',1,appIni)~='0'
emm=edcb.GetPrivateProfile('SET','EMM',0,appIni)~='0'
enableCaption=edcb.GetPrivateProfile('SET','Caption',1,appIni)~='0'
enableData=edcb.GetPrivateProfile('SET','Data',0,appIni)~='0'
overWrite=edcb.GetPrivateProfile('SET','OverWrite',0,appIni)~='0'
dropSaveThresh=tonumber(edcb.GetPrivateProfile('SET','DropSaveThresh',0,appIni)) or 0
scrambleSaveThresh=tonumber(edcb.GetPrivateProfile('SET','ScrambleSaveThresh',-1,appIni)) or -1
noLogScramble=edcb.GetPrivateProfile('SET','NoLogScramble',0,appIni)~='0'
recFileName=edcb.GetPrivateProfile('SET','RecFileName','$DYYYY$$DMM$$DDD$-$THH$$TMM$$TSS$-$ServiceName$.ts',appIni)
openLast=WIN32 and edcb.GetPrivateProfile('SET','OpenLast',1,appIni)~='0'
dropLogAsUtf8=not WIN32 or edcb.GetPrivateProfile('SET','DropLogAsUtf8',0,appIni)~='0'
saveDebugLog=edcb.GetPrivateProfile('SET','SaveDebugLog',0,appIni)~='0'
traceBonDriverLevel=edcb.GetPrivateProfile('SET','TraceBonDriverLevel',0,appIni)~='0'
tsBuffMaxCount=tonumber(edcb.GetPrivateProfile('SET','TsBuffMaxCount',5000,appIni)) or 5000
--設定上の無制限は-1だがUIでは0を無制限とみなす
writeBuffMaxCount=math.max(tonumber(edcb.GetPrivateProfile('SET','WriteBuffMaxCount',0,appIni)) or 0,0)
epgCapBackBSBasic=edcb.GetPrivateProfile('SET','EpgCapBackBSBasicOnly',1,appIni)~='0'
epgCapBackCS1Basic=edcb.GetPrivateProfile('SET','EpgCapBackCS1BasicOnly',1,appIni)~='0'
epgCapBackCS2Basic=edcb.GetPrivateProfile('SET','EpgCapBackCS2BasicOnly',1,appIni)~='0'
epgCapBackCS3Basic=edcb.GetPrivateProfile('SET','EpgCapBackCS3BasicOnly',0,appIni)~='0'
epgCapLive=edcb.GetPrivateProfile('SET','EpgCapLive',1,appIni)~='0'
epgCapRec=edcb.GetPrivateProfile('SET','EpgCapRec',1,appIni)~='0'
parseEpgPostProcess=edcb.GetPrivateProfile('SET','ParseEpgPostProcess',0,appIni)~='0'
epgCapBackStartWaitSec=tonumber(edcb.GetPrivateProfile('SET','EpgCapBackStartWaitSec',30,appIni)) or 30
saveLogo=edcb.GetPrivateProfile('SET','SaveLogo',0,appIni)~='0'
saveLogoTypeFlags=tonumber(edcb.GetPrivateProfile('SET','SaveLogoTypeFlags',32,appIni)) or 32
ct:Append([=[