Ejemplo n.º 1
0
        /// <summary>
        /// Attaches to target process.
        /// This should automatically continue the process if it is stopped.
        /// </summary>
        public bool Attach()
        {
            if (_ps3mapi == null)
            {
                _ps3mapi = new PS3MAPI();
            }

            if (_ps3mapi.Process.Process_Pid > 0)
            {
                return(_ps3mapi.AttachProcess(_ps3mapi.Process.Process_Pid));
            }
            return(_ps3mapi.AttachProcess());
        }
Ejemplo n.º 2
0
 static void AttachProcess()
 {
     try
     {
         //Attach the first PID, which usually is the game PID
         uint[] GAMEPID = API.Process.GetPidProcesses();
         API.AttachProcess(GAMEPID[0]);
         Console.ForegroundColor = ConsoleColor.Green;
         Console.WriteLine("Process Attached successfully");
         GAME_PID   = GAMEPID[0];
         iSAttached = true;
         Console.ResetColor();
     }
     catch (Exception e)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Something bad happened");
         Console.ResetColor();
     }
 }