mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-12 01:20:13 +03:00
Improve how we keep expanded variables in debugger.
This commit is contained in:
@@ -330,10 +330,15 @@ void DebuggerPlugin::loadDAPConfig( const std::string& path, bool updateConfigFi
|
||||
|
||||
if ( j.contains( "config" ) ) {
|
||||
auto& config = j["config"];
|
||||
if ( config.contains( "display_registers" ) )
|
||||
mDisplayRegisters = config.value( "display_registers", false );
|
||||
if ( config.contains( "fetch_registers" ) )
|
||||
mFetchRegisters = config.value( "fetch_registers", false );
|
||||
else if ( updateConfigFile )
|
||||
config["display_registers"] = mDisplayRegisters;
|
||||
config["fetch_registers"] = mFetchRegisters;
|
||||
|
||||
if ( config.contains( "fetch_globals" ) )
|
||||
mFetchGlobals = config.value( "fetch_globals", false );
|
||||
else if ( updateConfigFile )
|
||||
config["fetch_globals"] = mFetchGlobals;
|
||||
}
|
||||
|
||||
if ( j.contains( "dap" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user