Exemple #1
0
 public static bool Run()
 {
     if (FileSystem.Backend.isError != null)
     {
         return(SelfCheck.Failed("Asset Bundle Error: " + (string)FileSystem.Backend.loadingError));
     }
     if (Object.op_Equality((Object)FileSystem.Load <GameManifest>("Assets/manifest.asset", true), (Object)null))
     {
         return(SelfCheck.Failed("Couldn't load game manifest - verify your game content!"));
     }
     if (!SelfCheck.TestRustNative())
     {
         return(false);
     }
     if (CommandLine.HasSwitch("-force-feature-level-9-3"))
     {
         return(SelfCheck.Failed("Invalid command line argument: -force-feature-level-9-3"));
     }
     if (CommandLine.HasSwitch("-force-feature-level-10-0"))
     {
         return(SelfCheck.Failed("Invalid command line argument: -force-feature-level-10-0"));
     }
     if (CommandLine.HasSwitch("-force-feature-level-10-1"))
     {
         return(SelfCheck.Failed("Invalid command line argument: -force-feature-level-10-1"));
     }
     return(true);
 }
Exemple #2
0
 private static bool TestRustNative()
 {
     try
     {
         if (!SelfCheck.RustNative_VersionCheck(5))
         {
             return(SelfCheck.Failed("RustNative is wrong version!"));
         }
     }
     catch (DllNotFoundException ex)
     {
         return(SelfCheck.Failed("RustNative library couldn't load! " + ex.Message));
     }
     return(true);
 }
    private static bool TestRustNative()
    {
        bool flag;

        try
        {
            if (SelfCheck.RustNative_VersionCheck(5))
            {
                return(true);
            }
            else
            {
                flag = SelfCheck.Failed("RustNative is wrong version!");
            }
        }
        catch (DllNotFoundException dllNotFoundException1)
        {
            DllNotFoundException dllNotFoundException = dllNotFoundException1;
            flag = SelfCheck.Failed(string.Concat("RustNative library couldn't load! ", dllNotFoundException.Message));
        }
        return(flag);
    }