MikuSB.Loader

This commit is contained in:
Kei-Luna
2026-05-13 07:19:45 +09:00
parent e92b214161
commit d9b16fb55d
13 changed files with 466 additions and 275 deletions

View File

@@ -9,6 +9,7 @@ public class ConfigContainer
public PathConfig Path { get; set; } = new();
public ServerOption ServerOption { get; set; } = new();
public ProxyOptions Proxy { get; set; } = new();
public LoaderOptions Loader { get; set; } = new();
}
public class HttpServerConfig
@@ -88,8 +89,12 @@ public class ProxyOptions
public bool Enabled { get; set; } = true;
public int Port { get; set; } = 18888;
public int ServerHttpPort { get; set; } = 21500;
public bool InstallRootCertificate { get; set; } = false;
public bool ManageSystemProxy { get; set; } = false;
public bool RestoreSystemProxyOnStop { get; set; } = false;
public string ProxyOverride { get; set; } = "localhost;127.*;10.*;192.168.*;<local>";
}
public class LoaderOptions
{
public string GamePath { get; set; } = "";
public string[] PatchPaths { get; set; } = [@"Patch\MikuSB-Patch.dll"];
public string[] Arguments { get; set; } = ["-FeatureLevelES31", "-channelid=seasun", "-NoSplash"];
public bool SetAllProxy { get; set; } = true;
}

View File

@@ -131,6 +131,7 @@ public class CommandTextCHS
public GirlTextCHS Girl { get; } = new();
public GiveAllTextCHS GiveAll { get; } = new();
public DebugTextCHS Debug { get; } = new();
public GameCommandTextCHS Game { get; } = new();
}
#endregion
@@ -272,6 +273,14 @@ public class DebugTextCHS
public string FileDisabled => "个人调试文件输出已禁用。";
}
public class GameCommandTextCHS
{
public string Desc => "使用补丁注入启动已配置的游戏";
public string Usage => "用法: /game [额外游戏参数]";
public string Started => "游戏已启动。PID: {0}";
public string Failed => "游戏启动失败: {0}";
}
#endregion
#endregion
#endregion

View File

@@ -131,6 +131,7 @@ public class CommandTextCHT
public GirlTextCHT Girl { get; } = new();
public GiveAllTextCHT GiveAll { get; } = new();
public DebugTextCHT Debug { get; } = new();
public GameCommandTextCHT Game { get; } = new();
}
#endregion
@@ -272,6 +273,14 @@ public class DebugTextCHT
public string FileDisabled => "個人調試檔案輸出已停用。";
}
public class GameCommandTextCHT
{
public string Desc => "使用補丁注入啟動已配置的遊戲";
public string Usage => "用法: /game [額外遊戲參數]";
public string Started => "遊戲已啟動。PID: {0}";
public string Failed => "遊戲啟動失敗: {0}";
}
#endregion
#endregion
#endregion

View File

@@ -90,6 +90,7 @@ public class CommandTextEN
public GirlTextEN Girl { get; } = new();
public GiveAllTextEN GiveAll { get; } = new();
public DebugTextEN Debug { get; } = new();
public GameCommandTextEN Game { get; } = new();
}
#endregion
@@ -238,6 +239,14 @@ public class DebugTextEN
public string FileDisabled => "Personal debug file output disabled.";
}
public class GameCommandTextEN
{
public string Desc => "Launch the configured game with patch injection";
public string Usage => "Usage: /game [extra game args]";
public string Started => "Game launched. PID: {0}";
public string Failed => "Failed to launch game: {0}";
}
#endregion
#endregion
#endregion