mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 22:48:21 +00:00
Issue #710 Information about deobfuscation settings in the error comment
This commit is contained in:
@@ -93,7 +93,7 @@ import java.util.logging.Logger;
|
||||
* Represents one ACTIONRECORD, also has some static method to work with Actions
|
||||
*/
|
||||
public class Action implements GraphSourceItem {
|
||||
|
||||
|
||||
private boolean ignored = false;
|
||||
/**
|
||||
* Action type identifier
|
||||
@@ -880,6 +880,7 @@ public class Action implements GraphSourceItem {
|
||||
"",
|
||||
" * " + AppResources.translate("decompilationError"),
|
||||
" * " + AppResources.translate("decompilationError.obfuscated"),
|
||||
Helper.decompilationErrorAdd==null?null:" * "+Helper.decompilationErrorAdd,
|
||||
" * " + AppResources.translate("decompilationError.errorType") + ": "
|
||||
+ ex2.getClass().getSimpleName(),
|
||||
""}));
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.graph.model;
|
||||
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
@@ -41,6 +42,9 @@ public class CommentItem extends GraphTargetItem {
|
||||
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) {
|
||||
writer.append("/* ");
|
||||
for (int i = 0; i < commentLines.length; i++) {
|
||||
if(commentLines[i]==null){
|
||||
continue;
|
||||
}
|
||||
writer.append(commentLines[i]);
|
||||
if (i != commentLines.length - 1) {
|
||||
writer.newLine();
|
||||
|
||||
@@ -59,6 +59,8 @@ import java.util.regex.Pattern;
|
||||
public class Helper {
|
||||
|
||||
public static String newLine = System.getProperty("line.separator");
|
||||
public static String decompilationErrorAdd = null;
|
||||
|
||||
|
||||
/**
|
||||
* Converts array of int values to string
|
||||
@@ -807,6 +809,9 @@ public class Helper {
|
||||
writer.appendNoHilight("/*").newLine();
|
||||
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError")).newLine();
|
||||
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError.obfuscated")).newLine();
|
||||
if(decompilationErrorAdd!=null){
|
||||
writer.appendNoHilight(" * ").appendNoHilight(decompilationErrorAdd).newLine();
|
||||
}
|
||||
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError.errorType")).
|
||||
appendNoHilight(": " + ex.getClass().getSimpleName()).newLine();
|
||||
writer.appendNoHilight(" */").newLine();
|
||||
|
||||
Reference in New Issue
Block a user