mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-5545_5600: ProgramLoader.Builder can now take a string-based source
This commit is contained in:
parent
d4758498ac
commit
66f48fe95b
1 changed files with 12 additions and 0 deletions
|
@ -146,6 +146,18 @@ public class ProgramLoader {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the required import source to the given filesystem path
|
||||||
|
* <p>
|
||||||
|
* NOTE: Any previously defined sources will be overwritten
|
||||||
|
*
|
||||||
|
* @param path The filesystem path to import. A {@code null} value will unset the source.
|
||||||
|
* @return This {@link Builder}
|
||||||
|
*/
|
||||||
|
public Builder source(String path) {
|
||||||
|
return source(new File(path));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the {@link Project}. Loaders can use this to take advantage of existing
|
* Sets the {@link Project}. Loaders can use this to take advantage of existing
|
||||||
* {@link DomainFolder}s and {@link DomainFile}s to do custom behaviors such as loading
|
* {@link DomainFolder}s and {@link DomainFile}s to do custom behaviors such as loading
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue