public void NewPrefs(Prefs prefs) { open_close_reu(GlobalPrefs.ThePrefs.REUSize, prefs.REUSize); }
public void NewPrefs(Prefs prefs) { // 1541 emulation turned off? if (!prefs.Emul1541Proc) close_d64_file(); // 1541 emulation turned on? else if (!GlobalPrefs.ThePrefs.Emul1541Proc && prefs.Emul1541Proc) open_d64_file(prefs.DrivePath[0]); // .d64 file name changed? else if (GlobalPrefs.ThePrefs.DrivePath[0] != prefs.DrivePath[0]) { close_d64_file(); open_d64_file(prefs.DrivePath[0]); disk_changed = true; } }
internal void NewPrefs(Prefs prefs) { throw new Exception("The method or operation is not implemented."); }
public void NewPrefs(Prefs prefs) { // Delete and recreate all changed drives for (int i = 0; i < 4; i++) if ((GlobalPrefs.ThePrefs.DriveType[i] != prefs.DriveType[i]) || GlobalPrefs.ThePrefs.DrivePath[i] != prefs.DrivePath[i] || GlobalPrefs.ThePrefs.Emul1541Proc != prefs.Emul1541Proc) { drive[i] = null; // Important because UpdateLEDs is called from drive constructors (via set_error()) if (!prefs.Emul1541Proc) { if (prefs.DriveType[i] == DriveType.DRVTYPE_DIR) drive[i] = new FSDrive(this, prefs.DrivePath[i]); else if (prefs.DriveType[i] == DriveType.DRVTYPE_D64) drive[i] = new D64Drive(this, prefs.DrivePath[i]); else drive[i] = new T64Drive(this, prefs.DrivePath[i]); } } UpdateLEDs(); }
public abstract void NewPrefs(Prefs prefs);
public void NewPrefs(Prefs prefs) { open_close_joysticks(GlobalPrefs.ThePrefs.Joystick1On, GlobalPrefs.ThePrefs.Joystick2On, prefs.Joystick1On, prefs.Joystick2On); patch_kernel(prefs.FastReset, prefs.Emul1541Proc); TheDisplay.NewPrefs(prefs); TheIEC.NewPrefs(prefs); TheJob1541.NewPrefs(prefs); TheREU.NewPrefs(prefs); TheSID.NewPrefs(prefs); // Reset 1541 processor if turned on if (!GlobalPrefs.ThePrefs.Emul1541Proc && prefs.Emul1541Proc) TheCPU1541.AsyncReset(); }