Update ServerSwitcher.cs

This commit is contained in:
Mikhail Tyukin
2025-12-04 09:38:35 -05:00
parent 338a769ade
commit aac1c00715

View File

@@ -43,7 +43,11 @@ namespace ServerSelector
return "Launcher path is invalid. Make sure that the game executable exists in the launcher folder"; return "Launcher path is invalid. Make sure that the game executable exists in the launcher folder";
} }
string launcherCertList = launcherPath + "/intl_service/cacert.pem";
// TODO fix this mess
string launcherCertList = launcherPath + "/intl_service/intl_cacert.pem";
if (!File.Exists(launcherCertList))
launcherCertList = launcherPath + "/intl_service/cacert.pem"; // older INTL sdk versions
string gameCertList = gamePath + "/nikke_Data/Plugins/x86_64/intl_cacert.pem"; string gameCertList = gamePath + "/nikke_Data/Plugins/x86_64/intl_cacert.pem";
if (!File.Exists(gameCertList)) if (!File.Exists(gameCertList))
gameCertList = gamePath + "/nikke_Data/Plugins/x86_64/cacert.pem"; // older INTL sdk versions gameCertList = gamePath + "/nikke_Data/Plugins/x86_64/cacert.pem"; // older INTL sdk versions