Abstract Decompiler API Update

This commit is contained in:
Konloch 2024-10-02 16:12:32 -06:00
parent 7105cf93c3
commit ce2d2cd96c

AI 샘플 코드 생성 중입니다

Loading...
2 changed files with 6 additions and 3 deletions

View File

@ -63,7 +63,10 @@ public enum Decompiler
return getDecompiler().getDecompilerName();
}
public String getDecompilerNameProgrammic()
/**
* Used for the compressed exports (Zip / Jar)
*/
public String getDecompilerNameProgrammatic()
{
if(decompiler == null)
return "";

View File

@ -258,7 +258,7 @@ public class ResourceDecompiling
//decompile all opened classes to zip
decompiler.getDecompiler().decompileToZip(targetJar.getAbsolutePath(), saveAll ? MiscUtils.append(outputZip,
"-" + decompiler.getDecompilerNameProgrammic() + ".zip") : outputZip.getAbsolutePath());
"-" + decompiler.getDecompilerNameProgrammatic() + ".zip") : outputZip.getAbsolutePath());
//signal to the user that BCV is finished performing that action
BytecodeViewer.updateBusyStatus(false);
@ -271,7 +271,7 @@ public class ResourceDecompiling
//decompile the currently opened resource and save it to the specified file
DiskWriter.replaceFile(saveAll ? MiscUtils.append(outputFile,
"-" + decompiler.getDecompilerNameProgrammic() + ".java") : outputFile.getAbsolutePath(), BCV.decompileCurrentlyOpenedClassNode(decompiler), false);
"-" + decompiler.getDecompilerNameProgrammatic() + ".java") : outputFile.getAbsolutePath(), BCV.decompileCurrentlyOpenedClassNode(decompiler), false);
//signal to the user that BCV is finished performing that action
BytecodeViewer.updateBusyStatus(false);