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

Cmd_Path() private method

private Cmd_Path ( object sender, CommandEventArgs e ) : void
sender object
e CommandEventArgs
return void
		private void Cmd_Path(object sender, CommandEventArgs e)
		{
			idConsole.WriteLine("Current search path:");

			foreach(SearchPath path in _searchPaths)
			{
				if(path.Pack != null)
				{
					if(idE.CvarSystem.GetBool("developer") == true)
					{
						if(path.Pack.IsAddon == true)
						{
							idConsole.WriteLine("{0} ({1} files - {2} - addon)", path.Pack.FileName, path.Pack.FileCount, (path.Pack.IsReferenced == true) ? "referenced" : "not referenced");
						}
						else
						{
							idConsole.WriteLine("{0} ({1} files - {2})", path.Pack.FileName, path.Pack.FileCount, (path.Pack.IsReferenced == true) ? "referenced" : "not referenced");
						}
					}
					else
					{
						idConsole.WriteLine("{0} ({1} files)", path.Pack.FileName, path.Pack.FileCount);
					}

					// TODO
					/*if(fileSystemLocal.serverPaks.Num())
					{
						if(fileSystemLocal.serverPaks.Find(sp->pack))
						{
							common->Printf("    on the pure list\n");
						}
						else
						{
							common->Printf("    not on the pure list\n");
						}
					}*/
				}
				else
				{
					idConsole.WriteLine(Path.Combine(path.Directory.Path, path.Directory.GameDirectory));
				}
			}

			// TODO
			/*common->Printf("game DLL: 0x%x in pak: 0x%x\n", fileSystemLocal.gameDLLChecksum, fileSystemLocal.gamePakChecksum);*/

			/*for(i = 0; i < MAX_GAME_OS; i++)
			{
				if(fileSystemLocal.gamePakForOS[i])
				{
					common->Printf("OS %d - pak 0x%x\n", i, fileSystemLocal.gamePakForOS[i]);
				}
			}*/

			// show addon packs that are *not* in the search lists
			/*common->Printf("Addon pk4s:\n");
			for(sp = fileSystemLocal.addonPaks; sp; sp = sp->next)
			{
				if(com_developer.GetBool())
				{
					common->Printf("%s (%i files - 0x%x)\n", sp->pack->pakFilename.c_str(), sp->pack->numfiles, sp->pack->checksum);
				}
				else
				{
					common->Printf("%s (%i files)\n", sp->pack->pakFilename.c_str(), sp->pack->numfiles);
				}
			}*/
		}