示例#1
0
		static LocationProvider()
		{
			var path = Path.Combine(Environment.CurrentDirectory, "Plugins\\ExBuddy\\Data\\" + LocationIndexFileName);

			if (File.Exists(path))
			{
				DataFilePath = path;
			}
			else
			{
				DataFilePath =
					Directory.GetFiles(PluginManager.PluginDirectory, "*" + LocationIndexFileName, SearchOption.AllDirectories)
						.FirstOrDefault();
			}

			Instance = new LocationProvider(DataFilePath);
		}