コード例 #1
0
ファイル: REU.cs プロジェクト: rosc77/vita64
 public void NewPrefs(Prefs prefs)
 {
     open_close_reu(GlobalPrefs.ThePrefs.REUSize, prefs.REUSize);
 }
コード例 #2
0
ファイル: SIDRenderer.cs プロジェクト: rosc77/vita64
 public abstract void NewPrefs(Prefs prefs);
コード例 #3
0
ファイル: Job1541.cs プロジェクト: rosc77/vita64
        //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;
        //    }
        //}
        public void NewPrefs(Prefs prefs)
        {
            // 1541 emulation turned off?
            if (!prefs.Emul1541Proc)
                CloseD64File();

            // 1541 emulation turned on?
            else if (!GlobalPrefs.ThePrefs.Emul1541Proc && prefs.Emul1541Proc)
                OpenD64File(prefs.DrivePath[0], prefs.DriveData[0]);

            // .d64 file name changed?
            else if (GlobalPrefs.ThePrefs.DrivePath[0] != prefs.DrivePath[0])
            {
                CloseD64File();
                OpenD64File(prefs.DrivePath[0], prefs.DriveData[0]);
                disk_changed = true;
            }
        }
コード例 #4
0
ファイル: C64.cs プロジェクト: rosc77/vita64
        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();
            }
        }
コード例 #5
0
ファイル: MOS6581.cs プロジェクト: rosc77/vita64
 public void NewPrefs(Prefs prefs)
 {
     open_close_renderer(GlobalPrefs.ThePrefs.SIDType, prefs.SIDType);
     if (the_renderer != null)
         the_renderer.NewPrefs(prefs);
 }
コード例 #6
0
ファイル: C64Display.cs プロジェクト: rosc77/vita64
 internal void NewPrefs(Prefs prefs)
 {
     //throw new Exception("The method or operation is not implemented.");
 }