Compare commits

...

4 Commits

Author SHA1 Message Date
Guus Waals 88d10a9a2e Make sure files exist, move menu path 2024-09-20 17:43:25 +08:00
Guus Waals b30e53babd Java help 2024-09-20 17:43:17 +08:00
Guus Waals 06b6124231 Move clangd config to .clangd.template 2024-09-20 17:43:09 +08:00
Guus Waals d3a82e3336 Move .vscode to template 2024-09-20 17:14:20 +08:00
7 changed files with 9 additions and 10 deletions

4
.gitignore vendored
View File

@ -13,8 +13,10 @@ windows_libs_other/
.venv
*.gpr
*.rep
.vscode
.clangd
ACP_Ray2/
build/
# game_re/
windows_libs/
windows_libs/

View File

@ -6,14 +6,7 @@
"Rayman4Dev": true,
"vbox": true,
},
// "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:disable -jar C:\\Projects\\ghidra_11.1.2_PUBLIC\\Ghidra\\Features\\Base\\lib\\Base.jar"
// "java.configuration.runtimes": [
// {
// "name": "JavaSE-1.8",
// "path": "C:\\Program Files\\Microsoft\\jdk-17.0.11.9-hotspot\\",
// "sources": "C:\\Projects\\ghidra_11.1.2_PUBLIC\\Ghidra\\Features\\Base\\lib\\Base.jar"
// }
// ],
// Use the redhat java extension
"java.project.referencedLibraries": [
"C:\\Projects\\ghidra_11.1.2_PUBLIC\\Ghidra\\Features\\Base\\lib\\Base.jar",
"C:\\Projects\\ghidra_11.1.2_PUBLIC\\Ghidra\\Features\\Decompiler\\lib\\Decompiler.jar",

View File

@ -1,6 +1,6 @@
// Script to export decompiled C code from Ghidra
// @category _Reman3
// @menupath Tools.Reman3.Decompile All
// @menupath Reman3.Decompile All
import java.io.File;
import java.io.PrintWriter;
@ -500,6 +500,10 @@ public class Decompile extends GhidraScript {
throw new Exception("Output directory does not exist: " + RecompileConfig.INSTANCE.outputDir);
}
// Make sure to create output folders
RecompileConfig.INSTANCE.dirDecompFix.mkdirs();
RecompileConfig.INSTANCE.dirDecompAuto.mkdirs();
buildFunctionBlacklist();
List<Function> functions = new ArrayList<>();