More refactoring (tm)

This commit is contained in:
Lucas
2019-07-07 15:10:50 +02:00
parent e1a815eddd
commit e2aac6d899
159 changed files with 38213 additions and 46222 deletions

View File

@@ -55,11 +55,11 @@ public class SoundEnvelope {
signature = "(Lgr;)V"
)
@Export("decode")
final void decode(Buffer var1) {
this.form = var1.readUnsignedByte();
this.start = var1.readInt();
this.end = var1.readInt();
this.decodeSegments(var1);
final void decode(Buffer buffer) {
this.form = buffer.readUnsignedByte();
this.start = buffer.readInt();
this.end = buffer.readInt();
this.decodeSegments(buffer);
}
@ObfuscatedName("f")
@@ -67,14 +67,14 @@ public class SoundEnvelope {
signature = "(Lgr;)V"
)
@Export("decodeSegments")
final void decodeSegments(Buffer var1) {
this.segments = var1.readUnsignedByte();
final void decodeSegments(Buffer buffer) {
this.segments = buffer.readUnsignedByte();
this.durations = new int[this.segments];
this.phases = new int[this.segments];
for (int var2 = 0; var2 < this.segments; ++var2) {
this.durations[var2] = var1.readUnsignedShort();
this.phases[var2] = var1.readUnsignedShort();
this.durations[var2] = buffer.readUnsignedShort();
this.phases[var2] = buffer.readUnsignedShort();
}
}