2015-09-28 21:52:23 +00:00
using BizHawk.Emulation.Common ;
using Newtonsoft.Json ;
using System ;
using System.ComponentModel ;
using System.Drawing ;
namespace BizHawk.Emulation.Cores.Computers.Commodore64
{
2015-10-10 16:20:59 +00:00
// adelikat: changing settings to default object untl there are actually settings, as the ui depends on it to know if there are any settings avaialable
public partial class C64 : ISettable < object , C64 . C64SyncSettings >
2015-09-28 21:52:23 +00:00
{
2015-10-10 16:20:59 +00:00
public object /*C64Settings*/ GetSettings ( )
2015-09-28 21:52:23 +00:00
{
2015-10-10 16:20:59 +00:00
//return Settings.Clone();
return null ;
2015-09-28 21:52:23 +00:00
}
public C64SyncSettings GetSyncSettings ( )
{
return SyncSettings . Clone ( ) ;
}
2015-10-10 16:20:59 +00:00
public bool PutSettings ( object /*C64Settings*/ o )
2015-09-28 21:52:23 +00:00
{
2015-10-10 16:20:59 +00:00
//Settings = o;
2015-09-28 21:52:23 +00:00
return false ;
}
public bool PutSyncSettings ( C64SyncSettings o )
{
SyncSettings = o ;
return false ;
}
internal C64Settings Settings { get ; private set ; }
internal C64SyncSettings SyncSettings { get ; private set ; }
public class C64Settings
{
public C64Settings Clone ( )
{
return ( C64Settings ) MemberwiseClone ( ) ;
}
public C64Settings ( )
{
BizHawk . Common . SettingsUtil . SetDefaultValues ( this ) ;
}
}
public class C64SyncSettings
{
[DisplayName("VIC type")]
[Description("Set the type of video chip to use")]
[DefaultValue(VicType.PAL)]
public VicType vicType { get ; set ; }
public C64SyncSettings Clone ( )
{
return ( C64SyncSettings ) MemberwiseClone ( ) ;
}
public C64SyncSettings ( )
{
BizHawk . Common . SettingsUtil . SetDefaultValues ( this ) ;
}
}
public enum VicType
{
PAL , NTSC , NTSC_OLD , DREAN
}
}
}