Added min-game-version 105 enforcement
This commit is contained in:
@@ -170,11 +170,11 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
String finalMessage = Strings.getFinalMesage(e);
|
||||
String total = Strings.getCauses(e).toString();
|
||||
|
||||
if(total.contains("Couldn't create window") || total.contains("OpenGL 2.0 or higher") || total.toLowerCase().contains("pixel format") || total.contains("GLEW")){
|
||||
if(total.contains("Couldn't create window") || total.contains("OpenGL 2.0 or higher") || total.toLowerCase().contains("pixel format") || total.contains("GLEW")|| total.contains("unsupported combination of formats")){
|
||||
|
||||
dialog.get(() -> message(
|
||||
total.contains("Couldn't create window") ? "A graphics initialization error has occured! Try to update your graphics drivers:\n" + finalMessage :
|
||||
"Your graphics card does not support OpenGL 2.0 with the framebuffer_object extension!\n" +
|
||||
"Your graphics card does not support the right OpenGL features.\n" +
|
||||
"Try to update your graphics drivers. If this doesn't work, your computer may not support Mindustry.\n\n" +
|
||||
"Full message: " + finalMessage));
|
||||
badGPU = true;
|
||||
|
||||
Reference in New Issue
Block a user