Files
LCE-Revelations/tools/FindMenuTitle.java
itsRevela a4f55dde16 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/.
2026-03-29 21:14:34 -05:00

34 lines
1.4 KiB
Java

import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.tags.*;
import com.jpexs.decompiler.flash.tags.base.*;
import java.io.*;
public class FindMenuTitle {
public static void main(String[] args) throws Exception {
String path = args[0];
System.out.println("Scanning: " + path);
SWF swf = new SWF(new FileInputStream(path), false);
for (Tag tag : swf.getTags()) {
if (tag instanceof SymbolClassTag) {
SymbolClassTag sym = (SymbolClassTag) tag;
for (int i = 0; i < sym.tags.size(); i++) {
String name = sym.names.get(i);
if (name.contains("Menu") || name.contains("Logo") || name.contains("Title")) {
System.out.println(" Symbol: id=" + sym.tags.get(i) + " name=" + name);
}
}
}
if (tag instanceof ExportAssetsTag) {
ExportAssetsTag exp = (ExportAssetsTag) tag;
for (int i = 0; i < exp.tags.size(); i++) {
String name = exp.names.get(i);
if (name.contains("Menu") || name.contains("Logo") || name.contains("Title")) {
System.out.println(" Export: id=" + exp.tags.get(i) + " name=" + name);
}
}
}
}
}
}