mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Merge branch 'dev' into 'dev'
Allow arcturus to run as sevice in linux See merge request morningstar/Arcturus-Community!452
This commit is contained in:
commit
0d5a01902c
@ -2,3 +2,6 @@ INSERT INTO `emulator_settings`(`key`, `value`) VALUES ('wired.place.under', '0'
|
||||
INSERT INTO `emulator_settings`(`key`, `value`) VALUES ('wired.custom.enabled', '0');
|
||||
|
||||
INSERT INTO `emulator_texts` (`key`, `value`) VALUES ('commands.error.cmd_stalk.forgot_username', 'Specify the username of the Habbo you want to follow!');
|
||||
|
||||
-- Enable or Disable TTY in console (Default is enabled)
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('console.mode', '1');
|
||||
|
@ -175,10 +175,12 @@ public final class Emulator {
|
||||
Runtime.getRuntime().availableProcessors() * 2);
|
||||
}
|
||||
|
||||
|
||||
Emulator.getThreading().run(() -> {
|
||||
}, 1500);
|
||||
|
||||
// Check if console mode is true or false, default is true
|
||||
if (Emulator.getConfig().getBoolean("console.mode", true)) {
|
||||
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
|
||||
|
||||
while (!isShuttingDown && isReady) {
|
||||
@ -195,6 +197,8 @@ public final class Emulator {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user