mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-06 08:18:13 +07:00
Merge remote-tracking branch 'origin/steam' into steam
# Conflicts: # desktop/src/io/anuke/mindustry/desktop/steam/SteamNetImpl.java
This commit is contained in:
@ -27,7 +27,7 @@ import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
|
||||
public class DesktopPlatform extends Platform{
|
||||
static boolean useDiscord = OS.is64Bit, useSteam = true, showConsole = false;
|
||||
static boolean useDiscord = OS.is64Bit, useSteam = true, showConsole = true;
|
||||
final static String applicationId = "610508934456934412";
|
||||
String[] args;
|
||||
|
||||
|
@ -142,6 +142,7 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
|
||||
|
||||
@Override
|
||||
public void discover(Consumer<Host> callback, Runnable done){
|
||||
smat.addRequestLobbyListResultCountFilter(32);
|
||||
smat.requestLobbyList();
|
||||
lobbyCallback = callback;
|
||||
lobbyDoneCallback = done;
|
||||
@ -275,6 +276,7 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
|
||||
|
||||
@Override
|
||||
public void onLobbyMatchList(int matches){
|
||||
Log.info("found {0} matches", matches);
|
||||
|
||||
if(lobbyDoneCallback != null){
|
||||
for(int i = 0; i < matches; i++){
|
||||
|
Reference in New Issue
Block a user