Something went wrong. Try again.
A C# library for reading PlayStation metadata files.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546using PSMetadataLib;using PSMetadataLib.PS3.Content;
namespace PS3GetInfo;
public class GameProgram{ private static void PrintColouredBool(string label, bool boolean) { Console.Write($"{label}\t"); if (boolean) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("YES"); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("NO"); } Console.ResetColor(); } public static void Main(string gamePath) { var game = new PS3Game(gamePath); Console.WriteLine($"{game.Title} ({game.TitleId})"); Console.WriteLine($"{game.Category.GetDescription()}"); Console.WriteLine($"Attributes: {game.Attribute?.ToDescriptions() ?? "None"}"); var packages = game.Packages; if (packages.Count > 0) { Console.WriteLine($"Packages:"); foreach (var package in packages) { Console.WriteLine($"\t- {package.Title} ({package.TitleId})"); } } Console.WriteLine();
Console.WriteLine("Metadata:"); PrintColouredBool("\tHas icon video:", game.HasIconVideo); PrintColouredBool("\tHas icon sound:", game.HasIconSound); PrintColouredBool("\tHas XMB bkg:", game.HasBackgroundImg); }}