Fix eagswebrtc bug & add dummy relay to teavm eagleradapter
This commit is contained in:
parent
84772d4172
commit
f26e1b8f6d
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -8,6 +8,8 @@ eaglercraftbungee/bin
|
||||||
eaglercraftbungee/rundir
|
eaglercraftbungee/rundir
|
||||||
eaglercraftbungee/test
|
eaglercraftbungee/test
|
||||||
eaglercraftbungee/minecrafthtml5bungee.iml
|
eaglercraftbungee/minecrafthtml5bungee.iml
|
||||||
|
eaglercraftbungee/src/main/java/META-INF
|
||||||
|
eaglercraftbungee/out
|
||||||
epkcompiler/bin
|
epkcompiler/bin
|
||||||
spigot-server/world*
|
spigot-server/world*
|
||||||
eaglercraftbungee/rundir
|
eaglercraftbungee/rundir
|
||||||
|
@ -24,3 +26,8 @@ sp-server/bin
|
||||||
stable-download/_repl*
|
stable-download/_repl*
|
||||||
lwjgl-rundir/_eagstorage*
|
lwjgl-rundir/_eagstorage*
|
||||||
*.bak
|
*.bak
|
||||||
|
sp-relay/sp-relay.iml
|
||||||
|
sp-relay/out
|
||||||
|
sp-relay/test
|
||||||
|
sp-relay/.idea
|
||||||
|
sp-relay/src/main/java/META-INF
|
||||||
|
|
Binary file not shown.
35683
javascript/classes.js
35683
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -578,7 +578,6 @@ window.initializeLANServer = (() => {
|
||||||
this.ICEServers = [];
|
this.ICEServers = [];
|
||||||
this.hasInit = false;
|
this.hasInit = false;
|
||||||
this.peerList = new Map();
|
this.peerList = new Map();
|
||||||
this.readyState = READYSTATE_NONE;
|
|
||||||
this.peerState = PEERSTATE_LOADING;
|
this.peerState = PEERSTATE_LOADING;
|
||||||
this.peerStateConnect = PEERSTATE_LOADING;
|
this.peerStateConnect = PEERSTATE_LOADING;
|
||||||
this.peerStateInitial = PEERSTATE_LOADING;
|
this.peerStateInitial = PEERSTATE_LOADING;
|
||||||
|
|
|
@ -2932,9 +2932,52 @@ public class EaglerAdapterImpl2 {
|
||||||
}
|
}
|
||||||
return !isLittleEndian;
|
return !isLittleEndian;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final RelayQuery dummyRelayQuery = new RelayQuery() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isQueryOpen() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isQueryFailed() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void close() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getVersion() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getComment() {
|
||||||
|
return "this is a dummy";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getBrand() {
|
||||||
|
return "lax1dude";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long getPing() {
|
||||||
|
return 10l;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VersionMismatch getCompatible() {
|
||||||
|
return VersionMismatch.COMPATIBLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
public static final RelayQuery openRelayQuery(String addr) {
|
public static final RelayQuery openRelayQuery(String addr) {
|
||||||
throw new UnsupportedOperationException("TODO");
|
return dummyRelayQuery;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static EaglercraftLANClient rtcLANClient = null;
|
private static EaglercraftLANClient rtcLANClient = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user