mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/GP-4611_d-millar_better_launch_defaults'
This commit is contained in:
commit
8d18be9e39
1 changed files with 8 additions and 3 deletions
|
@ -224,8 +224,8 @@ public abstract class AbstractTraceRmiLaunchOffer implements TraceRmiLaunchOffer
|
|||
}
|
||||
|
||||
protected void saveState(SaveState state) {
|
||||
plugin.writeToolLaunchConfig(getConfigName(), state);
|
||||
if (program == null) {
|
||||
plugin.writeToolLaunchConfig(getConfigName(), state);
|
||||
return;
|
||||
}
|
||||
plugin.writeProgramLaunchConfig(program, getConfigName(), state);
|
||||
|
@ -415,10 +415,15 @@ public abstract class AbstractTraceRmiLaunchOffer implements TraceRmiLaunchOffer
|
|||
}
|
||||
|
||||
protected SaveState loadState(boolean forPrompt) {
|
||||
SaveState state = plugin.readToolLaunchConfig(getConfigName());
|
||||
if (program == null) {
|
||||
return plugin.readToolLaunchConfig(getConfigName());
|
||||
return state;
|
||||
}
|
||||
return plugin.readProgramLaunchConfig(program, getConfigName(), forPrompt);
|
||||
SaveState pstate = plugin.readProgramLaunchConfig(program, getConfigName(), forPrompt);
|
||||
if (!pstate.isEmpty()) {
|
||||
state = pstate;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue