Пример #1
0
        public bool GetAllowMoreThanEightSprites()
        {
            if (Quicknes != null)
            {
                return(Quicknes.GetSettings().NumSprites != 8);
            }

            if (Neshawk != null)
            {
                return(Neshawk.GetSettings().AllowMoreThanEightSprites);
            }

            throw new InvalidOperationException();
        }
Пример #2
0
        public bool GetDisplaySprites()
        {
            if (Quicknes != null)
            {
                return(Quicknes.GetSettings().NumSprites > 0);
            }

            if (Neshawk != null)
            {
                return(Neshawk.GetSettings().DispSprites);
            }

            throw new InvalidOperationException();
        }
Пример #3
0
        public bool GetClipLeftAndRight()
        {
            if (Quicknes != null)
            {
                return(Quicknes.GetSettings().ClipLeftAndRight);
            }

            if (Neshawk != null)
            {
                return(Neshawk.GetSettings().ClipLeftAndRight);
            }

            throw new InvalidOperationException();
        }
Пример #4
0
 public void SetDisplaySprites(bool show)
 {
     if (Neshawk != null)
     {
         var s = Neshawk.GetSettings();
         s.DispSprites = show;
         Neshawk.PutSettings(s);
     }
     else if (Quicknes != null)
     {
         var s = Quicknes.GetSettings();
         s.NumSprites = show ? 8 : 0;
         Quicknes.PutSettings(s);
     }
 }
Пример #5
0
 public void SetClipLeftAndRight(bool leftandright)
 {
     if (Neshawk != null)
     {
         var s = Neshawk.GetSettings();
         s.ClipLeftAndRight = leftandright;
         Neshawk.PutSettings(s);
     }
     else if (Quicknes != null)
     {
         var s = Quicknes.GetSettings();
         s.ClipLeftAndRight = leftandright;
         Quicknes.PutSettings(s);
     }
 }
Пример #6
0
 public void SetAllowMoreThanEightSprites(bool allow)
 {
     if (Neshawk != null)
     {
         var s = Neshawk.GetSettings();
         s.AllowMoreThanEightSprites = allow;
         Neshawk.PutSettings(s);
     }
     else if (Quicknes != null)
     {
         var s = Quicknes.GetSettings();
         s.NumSprites = allow ? 64 : 8;
         Quicknes.PutSettings(s);
     }
 }
Пример #7
0
        public int GetBottomScanline(bool pal = false)
        {
            if (Quicknes != null)
            {
                return(Quicknes.GetSettings().ClipTopAndBottom ? 231 : 239);
            }

            if (Neshawk != null)
            {
                return(pal
                                        ? Neshawk.GetSettings().PAL_BottomLine
                                        : Neshawk.GetSettings().NTSC_BottomLine);
            }

            throw new InvalidOperationException();
        }