Fix eagswebrtc bug & add dummy relay to teavm eagleradapter

This commit is contained in:
ayunami2000 2022-08-13 12:50:47 -04:00
parent 84772d4172
commit f26e1b8f6d
8 changed files with 22037 additions and 21875 deletions

7
.gitignore vendored
View File

@ -8,6 +8,8 @@ eaglercraftbungee/bin
eaglercraftbungee/rundir
eaglercraftbungee/test
eaglercraftbungee/minecrafthtml5bungee.iml
eaglercraftbungee/src/main/java/META-INF
eaglercraftbungee/out
epkcompiler/bin
spigot-server/world*
eaglercraftbungee/rundir
@ -24,3 +26,8 @@ sp-server/bin
stable-download/_repl*
lwjgl-rundir/_eagstorage*
*.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.

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

View File

@ -578,7 +578,6 @@ window.initializeLANServer = (() => {
this.ICEServers = [];
this.hasInit = false;
this.peerList = new Map();
this.readyState = READYSTATE_NONE;
this.peerState = PEERSTATE_LOADING;
this.peerStateConnect = PEERSTATE_LOADING;
this.peerStateInitial = PEERSTATE_LOADING;

View File

@ -2933,8 +2933,51 @@ public class EaglerAdapterImpl2 {
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) {
throw new UnsupportedOperationException("TODO");
return dummyRelayQuery;
}
private static EaglercraftLANClient rtcLANClient = null;