mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-05 15:58:14 +07:00
Fixed steam crash with a workaround
This commit is contained in:
@ -388,7 +388,10 @@ public class Control implements ApplicationListener, Loadable{
|
||||
saves.update();
|
||||
|
||||
//update and load any requested assets
|
||||
assets.update();
|
||||
try{
|
||||
assets.update();
|
||||
}catch(Exception ignored){
|
||||
}
|
||||
|
||||
input.updateState();
|
||||
|
||||
|
@ -26,7 +26,9 @@ import io.anuke.mindustry.net.*;
|
||||
import io.anuke.mindustry.net.Net.*;
|
||||
import io.anuke.mindustry.ui.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
|
||||
import static io.anuke.mindustry.Vars.*;
|
||||
@ -37,6 +39,12 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
|
||||
boolean useDiscord = OS.is64Bit, showConsole = OS.getPropertyNotNull("user.name").equals("anuke");
|
||||
|
||||
static{
|
||||
if(!Charset.forName("US-ASCII").newEncoder().canEncode(System.getProperty("user.name", ""))){
|
||||
System.setProperty("com.codedisaster.steamworks.SharedLibraryExtractPath", new File("").getAbsolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] arg){
|
||||
try{
|
||||
new SdlApplication(new DesktopLauncher(arg), new SdlConfig(){{
|
||||
|
Reference in New Issue
Block a user