RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

New client DataPath auto-detection

Scriptiz

Sorceror
Hello,

I saw that you haven't added the new Client data directory auto-detection in Scripts/Misc/DataPath.cs.

Here is my modifications (lines added begins with *>)
Code:
        public static void Configure()
        {
            string pathUO = GetPath(@"Origin Worlds Online\Ultima Online\1.0", "ExePath");
            string pathTD = GetPath(@"Origin Worlds Online\Ultima Online Third Dawn\1.0", "ExePath"); //These refer to 2D & 3D, not the Third Dawn expansion
            string pathKR = GetPath(@"Origin Worlds Online\Ultima Online\KR Legacy Beta", "ExePath"); //After KR, This is the new registry key for the 2D client
            string pathSA = GetPath(@"Electronic Arts\EA Games\Ultima Online Stygian Abyss Classic", "InstallDir");
*>          string pathClassic = GetPath(@"Electronic Arts\EA Games\Ultima Online Classic", "InstallDir"); // Scriptiz : Registry key of the new client (7.0.1x.x)

            if (CustomPath != null)
                Core.DataDirectories.Add(CustomPath);

            if (pathUO != null)
                Core.DataDirectories.Add(pathUO);

            if (pathTD != null)
                Core.DataDirectories.Add(pathTD);

            if (pathKR != null)
                Core.DataDirectories.Add(pathKR);

            if (pathSA != null)
                Core.DataDirectories.Add(pathSA);

*>          // Scriptiz : let's add the folder found in the registry key (if the key exists)
*>          if (pathClassic != null)
*>              Core.DataDirectories.Add(pathClassic);

            if (Core.DataDirectories.Count == 0 && !Core.Service)
            {
                Console.WriteLine("Enter the Ultima Online directory:");
                Console.Write("> ");

                Core.DataDirectories.Add(Console.ReadLine());
            }
        }

Thanks
 
Top