Esempio n. 1
0
        public PSP(CoreComm comm, string isopath)
        {
            ServiceProvider = new BasicServiceProvider(this);
            if (attachedcore != null)
            {
                attachedcore.Dispose();
                attachedcore = null;
            }
            CoreComm = comm;

            glcontext = CoreComm.RequestGLContext(3, 0, true);
            CoreComm.ActivateGLContext(glcontext);

            logcallback = new PPSSPPDll.LogCB(LogCallbackFunc);

            bool good = PPSSPPDll.BizInit(isopath, logcallback);

            LogFlush();
            if (!good)
            {
                throw new Exception("PPSSPP Init failed!");
            }

            CoreComm.RomStatusDetails = "It puts the scythe in the chicken or it gets the abyss again!";

            attachedcore = this;
        }
Esempio n. 2
0
        public PSP(CoreComm comm, string isopath)
        {
            ServiceProvider = new BasicServiceProvider(this);
            if (attachedcore != null)
            {
                attachedcore.Dispose();
                attachedcore = null;
            }
            CoreComm = comm;

            glcontext = CoreComm.RequestGLContext(3, 0, true);
            CoreComm.ActivateGLContext(glcontext);

            logcallback = new PPSSPPDll.LogCB(LogCallbackFunc);

            bool good = PPSSPPDll.BizInit(isopath, logcallback);
            LogFlush();
            if (!good)
                throw new Exception("PPSSPP Init failed!");

            CoreComm.VsyncDen = 1;
            CoreComm.VsyncNum = 60;
            CoreComm.RomStatusDetails = "It puts the scythe in the chicken or it gets the abyss again!";

            attachedcore = this;
        }
Esempio n. 3
0
        public PSP(CoreComm comm, string isopath)
        {
            ServiceProvider = new BasicServiceProvider(this);
            if (attachedcore != null)
            {
                attachedcore.Dispose();
                attachedcore = null;
            }
            CoreComm = comm;

            logcallback = new PPSSPPDll.LogCB(LogCallbackFunc);

            bool good = PPSSPPDll.init(isopath, logcallback);

            LogFlush();
            if (!good)
            {
                throw new Exception("PPSSPP Init failed!");
            }
            vidhandle = GCHandle.Alloc(screenbuffer, GCHandleType.Pinned);
            PPSSPPDll.setvidbuff(vidhandle.AddrOfPinnedObject());

            CoreComm.VsyncDen         = 1;
            CoreComm.VsyncNum         = 60;
            CoreComm.RomStatusDetails = "It puts the scythe in the chicken or it gets the abyss again!";

            attachedcore = this;
        }
Esempio n. 4
0
		public PSP(CoreComm comm, string isopath)
		{
			ServiceProvider = new BasicServiceProvider(this);
			if (attachedcore != null)
			{
				attachedcore.Dispose();
				attachedcore = null;
			}
			CoreComm = comm;

			logcallback = new PPSSPPDll.LogCB(LogCallbackFunc);

			bool good = PPSSPPDll.init(isopath, logcallback);
			LogFlush();
			if (!good)
				throw new Exception("PPSSPP Init failed!");
			vidhandle = GCHandle.Alloc(screenbuffer, GCHandleType.Pinned);
			PPSSPPDll.setvidbuff(vidhandle.AddrOfPinnedObject());

			CoreComm.VsyncDen = 1;
			CoreComm.VsyncNum = 60;
			CoreComm.RomStatusDetails = "It puts the scythe in the chicken or it gets the abyss again!";

			attachedcore = this;
		}
Esempio n. 5
0
        public void Dispose()
        {
            if (!disposed)
            {
                PPSSPPDll.BizClose();
                logcallback = null;
                disposed    = true;
                LogFlush();

                Console.WriteLine("PSP Core Disposed.");
            }
        }
Esempio n. 6
0
 public void Dispose()
 {
     if (!disposed)
     {
         vidhandle.Free();
         PPSSPPDll.setvidbuff(IntPtr.Zero);
         PPSSPPDll.die();
         logcallback = null;
         disposed    = true;
         LogFlush();
         Console.WriteLine("PSP Core Disposed.");
     }
 }
Esempio n. 7
0
		public void Dispose()
		{
			if (!disposed)
			{
				vidhandle.Free();
				PPSSPPDll.setvidbuff(IntPtr.Zero);
				PPSSPPDll.die();
				logcallback = null;
				disposed = true;
				LogFlush();
				Console.WriteLine("PSP Core Disposed.");
			}
		}
Esempio n. 8
0
        public void Dispose()
        {
            if (!disposed)
            {
                PPSSPPDll.BizClose();
                logcallback = null;
                disposed = true;
                LogFlush();

                Console.WriteLine("PSP Core Disposed.");
            }
        }