mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
Fixed some small things
This commit is contained in:
10
lib/cli.dart
10
lib/cli.dart
@@ -21,9 +21,9 @@ import 'package:shelf/shelf_io.dart' as shelf_io;
|
|||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
// Needed because binaries can't be loaded in any other way
|
// 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 _craniumDownload = "https://filebin.net/ybn0gme7dqjr4zup/cranium.dll";
|
||||||
const String _consoleDownload = "https://cdn.discordapp.com/attachments/1001161930599317524/1027684489184432188/console.dll";
|
const String _consoleDownload = "https://filebin.net/ybn0gme7dqjr4zup/console.dll";
|
||||||
const String _injectorDownload = "https://cdn.discordapp.com/attachments/1001161930599317524/1027686593697435799/injector.exe";
|
const String _injectorDownload = "https://filebin.net/ybn0gme7dqjr4zup/injector.exe";
|
||||||
|
|
||||||
Process? _gameProcess;
|
Process? _gameProcess;
|
||||||
|
|
||||||
@@ -116,6 +116,10 @@ Future<void> handleCLI(List<String> args) async {
|
|||||||
await _startLauncherProcess(dummyVersion);
|
await _startLauncherProcess(dummyVersion);
|
||||||
await _startEacProcess(dummyVersion);
|
await _startEacProcess(dummyVersion);
|
||||||
if (result["type"] == "headless_server") {
|
if (result["type"] == "headless_server") {
|
||||||
|
if(dummyVersion.executable == null){
|
||||||
|
throw Exception("Missing game executable at: ${dummyVersion.location.path}");
|
||||||
|
}
|
||||||
|
|
||||||
await patchExe(dummyVersion.executable!);
|
await patchExe(dummyVersion.executable!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ class _LaunchButtonState extends State<LaunchButton> {
|
|||||||
builder: (context) => ContentDialog(
|
builder: (context) => ContentDialog(
|
||||||
content: const SizedBox(
|
content: const SizedBox(
|
||||||
width: double.infinity,
|
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: [
|
actions: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user