Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EvaluatorOptions
Browse files Browse the repository at this point in the history
sbruyere committed Jan 6, 2023
1 parent 96df638 commit a5f5e22
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/vbSparkle.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ private static string DeobfuscateContent(string content)
JunkCodeProcessingMode = JunkCodeProcessingMode.Remove,
PerfomPartialEvaluation = true,
IndentSpacing = 4,
SymbolRenamingMode = SymbolRenamingMode.All
SymbolRenamingMode = SymbolRenamingMode.None
});

perfWatch.Stop();
13 changes: 8 additions & 5 deletions Sources/vbSparkle/Options/EvaluatorOptions.cs
Original file line number Diff line number Diff line change
@@ -2,14 +2,17 @@
{
public class EvaluatorOptions
{
public int ConstIdx { get; set; }
public int VarIdx { get; set; }

public bool PerfomPartialEvaluation { get; set; } = true;
public SymbolRenamingMode SymbolRenamingMode { get; set; } = SymbolRenamingMode.None;
public JunkCodeProcessingMode JunkCodeProcessingMode { get; set; } = JunkCodeProcessingMode.Comment;

public int IndentSpacing { get; set; } = 4;

public SymbolRenamingMode SymbolRenamingMode { get; set; } = SymbolRenamingMode.None;

//TODO: public bool PerfomPartialEvaluation { get; set; } = true;
#region Internal
internal int ConstIdx { get; set; } = 0;
internal int VarIdx { get; set; } = 0;
#endregion

}
}

0 comments on commit a5f5e22

Please sign in to comment.