Files
wes c30e839b64 SBoT 1.0 decompiled with CFR 0.152
Full source recovered from SBoT.jar (July 2004) plus the three bundled
example scripts (BoneBury, GuildFish, GuildFisher). Class names are the
original RSC-era single-letter obfuscation (a.java-z.java); mudclient.java
and Script.java kept their real names since those weren't obfuscated.
2026-08-25 13:11:31 -04:00

59 lines
1.3 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* sun.audio.AudioPlayer
*/
import java.io.InputStream;
import sun.audio.AudioPlayer;
public class d
extends InputStream {
byte[] a;
int b;
int c;
public d() {
AudioPlayer.player.start((InputStream)this);
}
public void a() {
AudioPlayer.player.stop((InputStream)this);
}
public void a(byte[] byArray, int n2, int n3) {
this.a = byArray;
this.b = n2;
this.c = n2 + n3;
}
public int read(byte[] byArray, int n2, int n3) {
int n4;
block3: {
boolean bl = q.d;
boolean bl2 = false;
for (int i2 = 0; i2 < n3; ++i2) {
n4 = this.b;
if (!bl) {
if (n4 < this.c) {
byArray[n2 + i2] = this.a[this.b++];
if (!bl) continue;
}
byArray[n2 + i2] = -1;
if (!bl) continue;
}
break block3;
}
n4 = n3;
}
return n4;
}
public int read() {
byte[] byArray = new byte[1];
this.read(byArray, 0, 1);
return byArray[0];
}
}