mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Fixed Steam offline crash
This commit is contained in:
parent
3b5dd7567a
commit
5eba4a360d
@ -125,11 +125,11 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
if(!SteamAPI.init()){
|
||||
Log.err("Steam client not running.");
|
||||
}else{
|
||||
Vars.steam = true;
|
||||
initSteam(args);
|
||||
|
||||
Vars.steam = true;
|
||||
}
|
||||
}catch(Exception e){
|
||||
}catch(Throwable e){
|
||||
steam = false;
|
||||
Log.err("Failed to load Steam native libraries.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -199,9 +199,6 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
|
||||
@Override
|
||||
public Array<FileHandle> getExternalMaps(){
|
||||
if(steam && SVars.workshop == null){
|
||||
SVars.workshop = new SWorkshop();
|
||||
}
|
||||
return !steam ? super.getExternalMaps() : SVars.workshop.getMapFiles();
|
||||
}
|
||||
|
||||
@ -222,7 +219,6 @@ public class DesktopLauncher extends ClientLauncher{
|
||||
|
||||
@Override
|
||||
public NetProvider getNet(){
|
||||
if(steam && SVars.net == null) SVars.net = new SNet(new ArcNetImpl());
|
||||
return steam ? SVars.net : new ArcNetImpl();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user