32-bit messages cleaned up
This commit is contained in:
@@ -354,11 +354,6 @@ save.mode = Gamemode: {0}
|
|||||||
save.date = Last Saved: {0}
|
save.date = Last Saved: {0}
|
||||||
save.playtime = Playtime: {0}
|
save.playtime = Playtime: {0}
|
||||||
dontshowagain = Don't show again
|
dontshowagain = Don't show again
|
||||||
warn.32bit.title = 32-bit Deprecation Warning
|
|
||||||
warn.32bit = You are using a [red]32-bit[] version of Mindustry.\n\
|
|
||||||
As newer Java versions have dropped 32-bit Windows support, [red]32-bit support will be discontinued in the future[].\n\n\
|
|
||||||
Please upgrade to a 64-bit machine, and make sure you have the 64-bit version of Mindustry downloaded.\n\n\
|
|
||||||
If you are running Mindustry as a JAR file, make sure you are using 64-bit Java.
|
|
||||||
warning = Warning.
|
warning = Warning.
|
||||||
confirm = Confirm
|
confirm = Confirm
|
||||||
delete = Delete
|
delete = Delete
|
||||||
|
|||||||
@@ -77,15 +77,6 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
checkAutoUnlocks();
|
checkAutoUnlocks();
|
||||||
|
|
||||||
if((OS.isWindows && !OS.is64Bit && !Core.settings.getBool("nowarn32bit", false))){
|
|
||||||
BaseDialog dialog = new BaseDialog("@warn.32bit.title");
|
|
||||||
dialog.buttons.button("@ok", dialog::hide).size(120f, 64f);
|
|
||||||
dialog.cont.add("@warn.32bit").labelAlign(Align.center, Align.center).wrap().grow().row();
|
|
||||||
dialog.cont.check("@dontshowagain", val -> Core.settings.put("nowarn32bit", val));
|
|
||||||
|
|
||||||
dialog.show();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(StateChangeEvent.class, event -> {
|
Events.on(StateChangeEvent.class, event -> {
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ public class Net{
|
|||||||
private final ObjectMap<Class<?>, Cons2<NetConnection, Object>> serverListeners = new ObjectMap<>();
|
private final ObjectMap<Class<?>, Cons2<NetConnection, Object>> serverListeners = new ObjectMap<>();
|
||||||
private final IntMap<StreamBuilder> streams = new IntMap<>();
|
private final IntMap<StreamBuilder> streams = new IntMap<>();
|
||||||
private final ExecutorService pingExecutor =
|
private final ExecutorService pingExecutor =
|
||||||
OS.isWindows && !OS.is64Bit ? Threads.boundedExecutor("Ping Servers", 5) : //on 32-bit windows, thread spam crashes
|
|
||||||
OS.isIos ? Threads.boundedExecutor("Ping Servers", 32) : //on IOS, 256 threads can crash, so limit the amount
|
OS.isIos ? Threads.boundedExecutor("Ping Servers", 32) : //on IOS, 256 threads can crash, so limit the amount
|
||||||
Threads.unboundedExecutor();
|
Threads.unboundedExecutor();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user