Upgrade folder structure
This commit is contained in:
@@ -63,13 +63,13 @@ public class Decompile extends GhidraScript {
|
||||
// PrintWriter hwriter = new PrintWriter(globalSymbolsListH, "UTF-8");
|
||||
// hwriter.println("// AUTO-GENERATED FILE ");
|
||||
// headerGuardPre(hwriter, "GLOBALS");
|
||||
// hwriter.println("#include <gh_global_binder.h>");
|
||||
// hwriter.println("#include <r3/binder/global.h>");
|
||||
// hwriter.println();
|
||||
|
||||
// File globalSymbolsListC = new File(RecompileConfig.INSTANCE.outputDir, "gh_global.cxx");
|
||||
// PrintWriter cwriter = new PrintWriter(globalSymbolsListC, "UTF-8");
|
||||
// cwriter.println("// AUTO-GENERATED FILE ");
|
||||
// cwriter.println("#include <gh_global_binder.h>");
|
||||
// cwriter.println("#include <r3/binder/global.h>");
|
||||
// hwriter.println();
|
||||
|
||||
// for (GlobalRec sym : globalSymbols.values()) {
|
||||
|
@@ -134,8 +134,8 @@ public class FunctionDumper {
|
||||
try (PrintWriter writer2 = new PrintWriter(f0, "UTF-8")) {
|
||||
writer2.println("// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!! ");
|
||||
writer2.println();
|
||||
writer2.println("#include <gh_auto_binder.h>");
|
||||
writer2.println("#include \"../gh_global.h\"");
|
||||
writer2.println("#include <r3/binders/auto.h>");
|
||||
writer2.println("#include <gh_global.h>");
|
||||
writer2.println();
|
||||
writer2.println("extern \"C\" {");
|
||||
|
||||
@@ -287,8 +287,8 @@ public class FunctionDumper {
|
||||
writer2.println("// This function has yet to be decompiled using 'Dump Current Function' in ghidra");
|
||||
writer2.println("// with possible manualy fixes");
|
||||
writer2.println();
|
||||
writer2.println("#include <gh_auto_binder.h>");
|
||||
writer2.println("#include \"../gh_global.h\"");
|
||||
writer2.println("#include <r3/binders/auto.h>");
|
||||
writer2.println("#include <gh_global.h>");
|
||||
writer2.println("#include <stdexcept>");
|
||||
writer2.println();
|
||||
writer2.println("// " + externalFunction.getEntryPoint());
|
||||
|
@@ -155,13 +155,13 @@ public class GlobalDumper {
|
||||
PrintWriter hwriter = new PrintWriter(globalSymbolsListH, "UTF-8");
|
||||
hwriter.println("// AUTO-GENERATED FILE ");
|
||||
Utils.headerGuardPre(hwriter, "GLOBALS");
|
||||
hwriter.println("#include <gh_global_binder.h>");
|
||||
hwriter.println("#include <r3/binders/global.h>");
|
||||
hwriter.println();
|
||||
|
||||
File globalSymbolsListC = new File(RecompileConfig.INSTANCE.outputDir, "gh_global.cxx");
|
||||
PrintWriter cwriter = new PrintWriter(globalSymbolsListC, "UTF-8");
|
||||
cwriter.println("// AUTO-GENERATED FILE ");
|
||||
cwriter.println("#include <gh_global_binder.h>");
|
||||
cwriter.println("#include <r3/binders/global.h>");
|
||||
hwriter.println();
|
||||
|
||||
List<GlobalRec> globals = new ArrayList<>(globalAddrs.values());
|
||||
|
@@ -60,7 +60,7 @@ public class TypeDumper {
|
||||
"UTF-8")) {
|
||||
Utils.headerGuardPre(writer, "STRUCTS");
|
||||
writer.println("// AUTO-GENERATED FILE ");
|
||||
writer.println("#include <gh_struct_binder.h>");
|
||||
writer.println("#include <r3/binders/type.h>");
|
||||
|
||||
DataTypeWriter dtw = new DataTypeWriter(dtm, writer);
|
||||
dtw.blacklistedTypes = typeBlacklist;
|
||||
|
Reference in New Issue
Block a user