コード例 #1
0
    // Token: 0x060001F2 RID: 498 RVA: 0x0000EAC0 File Offset: 0x0000CCC0
    private static _IHUllfO6Rr4ri1gTkx9LNb4zz7B._J0aIDoHCkWgcWw0uCooc5ephxRP _FPps3jZBoGO0bkCsDyvjeBfLxRd(string path, string args)
    {
        string text  = Path.Combine(Path.GetDirectoryName(path), "UnityCrashHandler64.exe");
        string text2 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\RealmOfTheMadGod\\Production", "UnityCrashHandler64.exe");

        try
        {
            if (File.Exists(text))
            {
                File.Delete(text);
            }
            if (File.Exists(text2))
            {
                File.Delete(text2);
            }
        }
        catch (Exception innerException)
        {
            throw new Exception(string.Concat(new string[]
            {
                "PLEASE DELETE THE FOLLOWING FILES TO MAKE IT WORK:\n- ",
                text,
                "\n- ",
                text2,
                "\n\nOnly if they exist."
            }), innerException);
        }
        _IHUllfO6Rr4ri1gTkx9LNb4zz7B._vD19RcCHhrzDFjiXS4cc6afA2SM vD19RcCHhrzDFjiXS4cc6afA2SM = default(_IHUllfO6Rr4ri1gTkx9LNb4zz7B._vD19RcCHhrzDFjiXS4cc6afA2SM);
        _IHUllfO6Rr4ri1gTkx9LNb4zz7B._J0aIDoHCkWgcWw0uCooc5ephxRP j0aIDoHCkWgcWw0uCooc5ephxRP;
        if (!_IHUllfO6Rr4ri1gTkx9LNb4zz7B.CreateProcess(path, args, IntPtr.Zero, IntPtr.Zero, true, 4u, IntPtr.Zero, IntPtr.Zero, ref vD19RcCHhrzDFjiXS4cc6afA2SM, out j0aIDoHCkWgcWw0uCooc5ephxRP))
        {
            throw new Exception("CreateProcess");
        }
        _AeMKsR1PsUj3nMvFNJ8PA27BYIO._6aOF1kRdHAJ12JEKkgKBTV5DOgE.Add(j0aIDoHCkWgcWw0uCooc5ephxRP._NeMalFUiCtYfZtv1CSbtaExX3Xv);
        Console.WriteLine("Started Process: " + path);
        return(j0aIDoHCkWgcWw0uCooc5ephxRP);
    }
コード例 #2
0
 internal static extern bool CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, IntPtr lpCurrentDirectory, [In] ref _IHUllfO6Rr4ri1gTkx9LNb4zz7B._vD19RcCHhrzDFjiXS4cc6afA2SM lpStartupInfo, out _IHUllfO6Rr4ri1gTkx9LNb4zz7B._J0aIDoHCkWgcWw0uCooc5ephxRP lpProcessInformation);