mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
sync serverswitcher
This commit is contained in:
@@ -188,7 +188,7 @@ namespace ServerSelector
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task<ServerSwitchResult> SaveCfg(bool useOffical, string gamePath, string launcherPath, string ip, bool offlineMode)
|
public static async Task<ServerSwitchResult> SaveCfg(bool useOffical, string gamePath, string? launcherPath, string ip, bool offlineMode)
|
||||||
{
|
{
|
||||||
string sodiumLib = AppDomain.CurrentDomain.BaseDirectory + "sodium.dll";
|
string sodiumLib = AppDomain.CurrentDomain.BaseDirectory + "sodium.dll";
|
||||||
string gameSodium = gamePath + "/nikke_Data/Plugins/x86_64/sodium.dll";
|
string gameSodium = gamePath + "/nikke_Data/Plugins/x86_64/sodium.dll";
|
||||||
@@ -368,10 +368,13 @@ namespace ServerSelector
|
|||||||
|
|
||||||
// update launcher/game ca cert list
|
// update launcher/game ca cert list
|
||||||
|
|
||||||
var certList1 = await File.ReadAllTextAsync(launcherCertList);
|
if (launcherPath != null)
|
||||||
certList1 += "\nGood SSL Ca\n===============================\n";
|
{
|
||||||
certList1 += CAcert;
|
var certList1 = await File.ReadAllTextAsync(launcherCertList);
|
||||||
await File.WriteAllTextAsync(launcherCertList, certList1);
|
certList1 += "\nGood SSL Ca\n===============================\n";
|
||||||
|
certList1 += CAcert;
|
||||||
|
await File.WriteAllTextAsync(launcherCertList, certList1);
|
||||||
|
}
|
||||||
|
|
||||||
var certList2 = await File.ReadAllTextAsync(gameCertList);
|
var certList2 = await File.ReadAllTextAsync(gameCertList);
|
||||||
certList2 += "\nGood SSL Ca\n===============================\n";
|
certList2 += "\nGood SSL Ca\n===============================\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user