Esempio n. 1
0
        public static List <bool> CheckGameState(MEDirectories.MEDirectories MEExDirecs, bool askIfNotFound, out List <string> messages)
        {
            DebugOutput.PrintLn("In CheckGameState, checkin ur gamez.");

            List <bool> results = new List <bool>()
            {
                false, false, false
            };

            messages = MEExDirecs.SetupPathing(askIfNotFound);
            for (int i = 0; i < 3; i++)
            {
                string message = messages[i];
                DebugOutput.PrintLn("Message from MEExDirecs: " + message);
                DebugOutput.PrintLn("Setting indicators...");

                // KFreon: Set visual cues
                if (!message.Contains("game files not found"))
                {
                    //if (Directory.Exists(MEExDirecs.GetDifferentPathBIOGame(i + 1)))
                    string temp    = MEExDirecs.GetDifferentPathBIOGame(i + 1).TrimEnd(Path.DirectorySeparatorChar);
                    string tocPath = null;
                    switch (i)
                    {
                    case 0:
                        temp    = Path.GetDirectoryName(temp);
                        tocPath = Path.Combine(temp, "Binaries\\MassEffect.exe");
                        break;

                    case 1:
                        temp    = Path.GetDirectoryName(temp);
                        tocPath = Path.Combine(temp, "Binaries\\MassEffect2.exe");
                        break;

                    case 2:
                        tocPath = Path.Combine(temp, "PCConsoleTOC.bin");
                        break;
                    }
                    DebugOutput.PrintLn("Path of file to check if game files present: " + tocPath);

                    if (File.Exists(tocPath))
                    {
                        results[i] = true;
                    }

                    DebugOutput.PrintLn("BIOGame Path = " + MEExDirecs.GetDifferentPathBIOGame(i + 1) + "  found using: " + (message.Contains("Found installation") ? "ME" + i + "Directory Class." : "Texplorer Settings."));
                }
            }
            return(results);
        }
 public AbstractTexInfo(MEDirectories.MEDirectories direcs) : this()
 {
     GameDirecs = direcs;
 }
 public ThumbnailWriter(MEDirectories.MEDirectories gameDirec)
 {
     GameDirecs = gameDirec;
     CachePath = GameDirecs.ThumbnailCachePath;
 }
Esempio n. 4
0
 public TreeDB(int gameversion)
 {
     GameDirecs = new MEDirectories.MEDirectories(gameversion);
 }