添加直播伴侣参数开关

This commit is contained in:
Muihd
2024-09-28 16:53:50 +08:00
parent 6d6e281ee3
commit 192e489fa5
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -48,6 +48,8 @@
<add key="useComPortFilter" value="true" /> <add key="useComPortFilter" value="true" />
<!--直播伴侣exe文件位置(除非程序找不到,否则请留空)--> <!--直播伴侣exe文件位置(除非程序找不到,否则请留空)-->
<add key="liveCompanPath" value="" /> <add key="liveCompanPath" value="" />
<!--直播伴侣代理hook开关-->
<add key="liveCompanHookSwitch" value="true" />
</appSettings> </appSettings>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+6
View File
@@ -41,6 +41,7 @@ namespace BarrageGrab
DisableLivePageScriptCache = bool.Parse(AppSettings["disableLivePageScriptCache"].Trim()); DisableLivePageScriptCache = bool.Parse(AppSettings["disableLivePageScriptCache"].Trim());
WebRoomIds = AppSettings["webRoomIds"].Trim().Split(',').Where(w => !string.IsNullOrWhiteSpace(w)).ToArray(); WebRoomIds = AppSettings["webRoomIds"].Trim().Split(',').Where(w => !string.IsNullOrWhiteSpace(w)).ToArray();
LiveCompanPath = AppSettings["liveCompanPath"].Trim(); LiveCompanPath = AppSettings["liveCompanPath"].Trim();
LiveCompanHookSwitch = bool.Parse(AppSettings["liveCompanHookSwitch"].Trim());
ConfigComPort(); ConfigComPort();
ConfigFilter(); ConfigFilter();
@@ -249,5 +250,10 @@ namespace BarrageGrab
/// 直播伴侣文件位置 /// 直播伴侣文件位置
/// </summary> /// </summary>
public string LiveCompanPath { get; set; } = string.Empty; public string LiveCompanPath { get; set; } = string.Empty;
/// <summary>
/// hook直播伴侣代理开关
/// </summary>
public bool LiveCompanHookSwitch { get; set; } = true;
} }
} }