Example #1
0
		public PsxCore(IExternalCoreAccessor accessor)
			: base(accessor)
		{
			var domains = new List<MemoryDomain>(1);
			memoryDomains = domains.AsReadOnly();
			CoreOutputComm = new CoreOutputComm();
			CoreInputComm = new CoreInputComm();

			mDiscInterface = new DiscInterface(mAccessor);

			UnmanagedOpaque = QueryCoreCall<Func<IntPtr,IntPtr>>("PsxCore.Construct")(ManagedOpaque);

			QueryCoreCall(out cGetResolution, "PsxCore.GetResolution");
			QueryCoreCall(out cUpdateVideoBuffer, "PsxCore.UpdateVideoBuffer");
			QueryCoreCall(out cFrameAdvance, "PsxCore.FrameAdvance");
		}
Example #2
0
        public PsxCore(IExternalCoreAccessor accessor)
            : base(accessor)
        {
            var domains = new List <MemoryDomain>(1);

            memoryDomains  = domains.AsReadOnly();
            CoreOutputComm = new CoreOutputComm();
            CoreInputComm  = new CoreInputComm();

            mDiscInterface = new DiscInterface(mAccessor);

            UnmanagedOpaque = QueryCoreCall <Func <IntPtr, IntPtr> >("PsxCore.Construct")(ManagedOpaque);

            QueryCoreCall(out cGetResolution, "PsxCore.GetResolution");
            QueryCoreCall(out cUpdateVideoBuffer, "PsxCore.UpdateVideoBuffer");
            QueryCoreCall(out cFrameAdvance, "PsxCore.FrameAdvance");
        }