Exemplo n.º 1
0
 public void NewPrefs(Prefs prefs)
 {
     open_close_reu(GlobalPrefs.ThePrefs.REUSize, prefs.REUSize);
 }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
 internal void NewPrefs(Prefs prefs)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
 public abstract void NewPrefs(Prefs prefs);
Exemplo n.º 6
0
 public void NewPrefs(Prefs prefs)
 {
     open_close_reu(GlobalPrefs.ThePrefs.REUSize, prefs.REUSize);
 }
Exemplo n.º 7
0
        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();
        }