添加直播伴侣参数开关
This commit is contained in:
@@ -48,6 +48,8 @@
|
||||
<add key="useComPortFilter" value="true" />
|
||||
<!--直播伴侣exe文件位置(除非程序找不到,否则请留空)-->
|
||||
<add key="liveCompanPath" value="" />
|
||||
<!--直播伴侣代理hook开关-->
|
||||
<add key="liveCompanHookSwitch" value="true" />
|
||||
</appSettings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace BarrageGrab
|
||||
DisableLivePageScriptCache = bool.Parse(AppSettings["disableLivePageScriptCache"].Trim());
|
||||
WebRoomIds = AppSettings["webRoomIds"].Trim().Split(',').Where(w => !string.IsNullOrWhiteSpace(w)).ToArray();
|
||||
LiveCompanPath = AppSettings["liveCompanPath"].Trim();
|
||||
LiveCompanHookSwitch = bool.Parse(AppSettings["liveCompanHookSwitch"].Trim());
|
||||
|
||||
ConfigComPort();
|
||||
ConfigFilter();
|
||||
@@ -249,5 +250,10 @@ namespace BarrageGrab
|
||||
/// 直播伴侣文件位置
|
||||
/// </summary>
|
||||
public string LiveCompanPath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// hook直播伴侣代理开关
|
||||
/// </summary>
|
||||
public bool LiveCompanHookSwitch { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user