Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resources/GhidraSrc.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package resources;

import org.apache.commons.lang3.SystemUtils;
import ghidra.app.script.GhidraScript;
import ghidra.app.util.exporter.BinaryExporter;
import ghidra.app.util.exporter.ExporterException;
Expand Down Expand Up @@ -115,7 +116,7 @@ public byte[] getDataThroughAddressIteration() {

public byte[] getJavaData() {
String path = currentProgram.getExecutablePath();
if(System.getProperty("os.name").equals("Windows 10") && (path.charAt(0) == '\\' || path.charAt(0) == '/')) {
if(SystemUtils.IS_OS_WINDOWS && (path.charAt(0) == '\\' || path.charAt(0) == '/')) {
path = path.substring(1);
}
Path path_p = Paths.get(path);
Expand Down