idTech4.IO.idFileSystem.SetupGameDirectories C# (CSharp) Method

SetupGameDirectories() private method

Takes care of the correct search order.
private SetupGameDirectories ( string gameName ) : void
gameName string
return void
		private void SetupGameDirectories(string gameName)
		{
			// setup cdpath
			if(idE.CvarSystem.GetString("fs_cdpath") != string.Empty)
			{
				AddGameDirectory(idE.CvarSystem.GetString("fs_cdpath"), gameName);
			}

			// setup basepath
			if(idE.CvarSystem.GetString("fs_basepath") != string.Empty)
			{
				AddGameDirectory(idE.CvarSystem.GetString("fs_basepath"), gameName);
			}

			// setup devpath
			if(idE.CvarSystem.GetString("fs_devpath") != string.Empty)
			{
				AddGameDirectory(idE.CvarSystem.GetString("fs_devpath"), gameName);
			}

			// setup savepath
			if(idE.CvarSystem.GetString("fs_savepath") != string.Empty)
			{
				AddGameDirectory(idE.CvarSystem.GetString("fs_savepath"), gameName);
			}
		}