mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LCE-Revelations.git
synced 2026-07-02 18:44:36 +00:00
chore: add LCRE banner, SWF/ARC tools, ignore build artifacts
Replace README banner with LCRE-banner.png. Add SWF inspection and ARC archive tools. Ignore compiled .class, .swf intermediates, and staging directory in tools/.
This commit is contained in:
37
tools/FindMenuTitleAll.java
Normal file
37
tools/FindMenuTitleAll.java
Normal file
@@ -0,0 +1,37 @@
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.tags.*;
|
||||
import com.jpexs.decompiler.flash.tags.base.*;
|
||||
import java.io.*;
|
||||
|
||||
public class FindMenuTitleAll {
|
||||
public static void main(String[] args) throws Exception {
|
||||
String[] files = {"skinHD.swf", "skinHDGraphics.swf", "skinHDWin.swf", "skinHDInGame.swf", "skinHDLabels.swf", "skinHDHud.swf", "skinHDGraphicsInGame.swf", "skinHDGraphicsLabels.swf", "skinHDGraphicsHud.swf", "skin.swf", "skinGraphics.swf", "skinWin.swf"};
|
||||
String base = "C:/Users/revela/Documents/Minecraft/itsRevela/Minecraft.Client/Common/Media/";
|
||||
|
||||
for (String file : files) {
|
||||
try {
|
||||
SWF swf = new SWF(new FileInputStream(base + file), false);
|
||||
for (Tag tag : swf.getTags()) {
|
||||
if (tag instanceof SymbolClassTag) {
|
||||
SymbolClassTag sym = (SymbolClassTag) tag;
|
||||
for (int i = 0; i < sym.tags.size(); i++) {
|
||||
if (sym.names.get(i).contains("Title") || sym.names.get(i).contains("MenuTitle")) {
|
||||
System.out.println(file + " -> Symbol: id=" + sym.tags.get(i) + " name=" + sym.names.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tag instanceof ExportAssetsTag) {
|
||||
ExportAssetsTag exp = (ExportAssetsTag) tag;
|
||||
for (int i = 0; i < exp.tags.size(); i++) {
|
||||
if (exp.names.get(i).contains("Title") || exp.names.get(i).contains("MenuTitle")) {
|
||||
System.out.println(file + " -> Export: id=" + exp.tags.get(i) + " name=" + exp.names.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.err.println("Error reading " + file + ": " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user