~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/debugger/gui/RomWidget.cxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: RomWidget.cxx 2318 2011-12-31 21:56:36Z stephena $
 
17
// $Id: RomWidget.cxx 2504 2012-05-27 19:27:55Z stephena $
18
18
//
19
19
//   Based on code from ScummVM - Scumm Interpreter
20
20
//   Copyright (C) 2002-2004 The ScummVM project
104
104
  mySaveRom->setTarget(this);
105
105
 
106
106
  // By default, we try to automatically determine code vs. data sections
107
 
  myResolveData->setSelected(instance().settings().getString("resolvedata"), "auto");
 
107
  myResolveData->setSelected(
 
108
    instance().settings().getString("dis.resolvedata"), "auto");
108
109
}
109
110
 
110
111
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
178
179
      else if(rmb == "pcaddr")
179
180
      {
180
181
        DiStella::settings.show_addresses = !DiStella::settings.show_addresses;
181
 
        instance().settings().setString("showaddr",
182
 
            DiStella::settings.show_addresses ? "true" : "false");
 
182
        instance().settings().setBool("dis.showaddr",
 
183
            DiStella::settings.show_addresses);
183
184
        invalidate();
184
185
      }
185
186
      else if(rmb == "gfx")
187
188
        if(DiStella::settings.gfx_format == kBASE_16)
188
189
        {
189
190
          DiStella::settings.gfx_format = kBASE_2;
190
 
          instance().settings().setString("gfxformat", "2");
 
191
          instance().settings().setString("dis.gfxformat", "2");
191
192
        }
192
193
        else
193
194
        {
194
195
          DiStella::settings.gfx_format = kBASE_16;
195
 
          instance().settings().setString("gfxformat", "16");
 
196
          instance().settings().setString("dis.gfxformat", "16");
196
197
        }
197
198
        invalidate();
198
199
      }
 
200
      else if(rmb == "relocate")
 
201
      {
 
202
        DiStella::settings.rflag = !DiStella::settings.rflag;
 
203
        instance().settings().setBool("dis.relocate",
 
204
            DiStella::settings.rflag);
 
205
        invalidate();
 
206
      }
199
207
      break;  // kCMenuItemSelectedCmd
200
208
    }
201
209
 
204
212
      break;
205
213
 
206
214
    case kResolveDataChanged:
207
 
      instance().settings().setString("resolvedata", myResolveData->getSelectedTag());
 
215
      instance().settings().setString("dis.resolvedata", myResolveData->getSelectedTag());
208
216
      invalidate();
209
217
      loadConfig();
210
218
      break;