Skip to content

Commit

Permalink
Deobfuscate SoundManager code
Browse files Browse the repository at this point in the history
No functional changes intended. Code changes except for renaming things:
- combine AApplet and Applet fields
- make `loadSoundClipsOnRegister` and `debug` fields final
- add generic types to Hashtables
  • Loading branch information
StenAL committed Apr 28, 2023
1 parent c9836b0 commit a786b57
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 131 deletions.
7 changes: 5 additions & 2 deletions client/src/main/java/com/aapeli/applet/AApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void run() {
this.loadingPanel.setLoadingMessage(this.textManager.getShared("Loader_LoadingGfxSfx") + (var8 != null ? var8 : ""));
this.soundManager = new SoundManager(this, true, this.isDebug());
if (startupDebug) {
this.soundManager.enableSUD(this);
this.soundManager.enableSUD();
}

this.loadingPanel.method465(0.15D);
Expand Down Expand Up @@ -625,6 +625,9 @@ public void contentReady() {

}

/**
* SUD == startup debug
*/
public void printSUD(String var1) {
System.out.println("SUD(" + System.currentTimeMillis() + "): " + var1);
}
Expand All @@ -634,7 +637,7 @@ public void printSUD(String var1) {
public void textsLoadedNotify(TextManager var1) {
}

public abstract void defineSounds(SoundManager var1);
public abstract void defineSounds(SoundManager soundManager);

public abstract void defineImages(ImageManager var1, String var2);

Expand Down
Loading

0 comments on commit a786b57

Please sign in to comment.