diff --git a/lib/cli.dart b/lib/cli.dart index 499f31e..5c8c838 100644 --- a/lib/cli.dart +++ b/lib/cli.dart @@ -21,9 +21,9 @@ import 'package:shelf/shelf_io.dart' as shelf_io; import 'package:http/http.dart' as http; // Needed because binaries can't be loaded in any other way -const String _craniumDownload = "https://cdn.discordapp.com/attachments/1001161930599317524/1027684488718860309/cranium.dll"; -const String _consoleDownload = "https://cdn.discordapp.com/attachments/1001161930599317524/1027684489184432188/console.dll"; -const String _injectorDownload = "https://cdn.discordapp.com/attachments/1001161930599317524/1027686593697435799/injector.exe"; +const String _craniumDownload = "https://filebin.net/ybn0gme7dqjr4zup/cranium.dll"; +const String _consoleDownload = "https://filebin.net/ybn0gme7dqjr4zup/console.dll"; +const String _injectorDownload = "https://filebin.net/ybn0gme7dqjr4zup/injector.exe"; Process? _gameProcess; @@ -116,6 +116,10 @@ Future handleCLI(List args) async { await _startLauncherProcess(dummyVersion); await _startEacProcess(dummyVersion); if (result["type"] == "headless_server") { + if(dummyVersion.executable == null){ + throw Exception("Missing game executable at: ${dummyVersion.location.path}"); + } + await patchExe(dummyVersion.executable!); } diff --git a/lib/src/widget/launch_button.dart b/lib/src/widget/launch_button.dart index 36f9553..8713a92 100644 --- a/lib/src/widget/launch_button.dart +++ b/lib/src/widget/launch_button.dart @@ -222,7 +222,7 @@ class _LaunchButtonState extends State { builder: (context) => ContentDialog( content: const SizedBox( width: double.infinity, - child: Text("A token error occurred, restart the game and try again", textAlign: TextAlign.center) + child: Text("A token error occurred, restart the game and the lawin server, then try again", textAlign: TextAlign.center) ), actions: [ SizedBox(