Adjust installscript
This commit is contained in:
parent
da3762177a
commit
45ef595bae
2 changed files with 6 additions and 7 deletions
|
@ -6,15 +6,10 @@ import 'package:servermanager/game.dart';
|
|||
import 'package:servermanager/packets/ClientPackets.dart';
|
||||
import 'package:servermanager/structs/settings.dart';
|
||||
|
||||
void main(List<String> args) async {
|
||||
void main() async {
|
||||
print("Current working directory: ${Directory.current.path}");
|
||||
print("/!\\ This server is now starting... /!\\\n\n");
|
||||
print("Checking for command line args...");
|
||||
|
||||
if (args.isNotEmpty) {
|
||||
print("Changing current working directory to ${args[0]}");
|
||||
Directory.current = args[0];
|
||||
}
|
||||
ClientPackets.register();
|
||||
// Set up paths
|
||||
Settings settings = Settings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue