Playnite Video Game Library Manager

repository·master·Indexed 12 days ago

https://github.com/josefnemec/playnite

An open-source video game library manager and launcher for Windows 10 and 11 that provides a unified interface for games from 3rd party libraries and supports emulation. It is extensible via .NET plugins, PowerShell scripts, and UI themes, and provides a dedicated SDK for developers to extend its functionality.

Tokens
860
Snippets
4
Records
7
Agent score
93%

What's inside Playnite

  1. Use the Playnite SDK to develop plugins

    master

    The Playnite SDK is the official package used for developing plugins for the Playnite video game launcher and manager. It provides the necessary interfaces and tools to extend Playnite's functionality.

    For comprehensive documentation, including API references and development guides, visit the official Playnite documentation site.

  2. Extend Playnite with Add-ons

    master

    Playnite is extensible through several types of add-ons:

    • Plugins: Written in .NET languages.
    • PowerShell scripts: For automation and custom logic.
    • User interface themes: To customize the visual appearance.

    For detailed instructions on how to develop these extensions, refer to the extensions portal.

  3. Install Playnite

    master

    To use Playnite, download the latest installer or portable package from the official download page. Playnite requires Windows 10 or 11. Once installed, the application will automatically notify you when a new version is available.

    Download from: https://playnite.link/download.html
  4. Report bugs and provide diagnostics

    master
    If you encounter a bug, file an issue on the GitHub repository. For crashes or broken features, it is highly recommended to attach a diagnostics package. You can generate this package from within the Playnite application via the "About Playnite..." submenu.
  5. Navigate to a URL

    master

    Use NavigateUrl to open a web address or a link object in the system's default browser. The method supports several input types: string, Link objects, or Uri objects.

    It supports the following placeholder replacement:

    • {DocsRootUrl}: Replaces the placeholder with the value from PlayniteEnvironment.DocsRootUrl.
    • {AppBranch}: Replaces the placeholder with the current PlayniteEnvironment.AppBranch.

    If the provided string does not contain a protocol (e.g., ://) and is not a full local file path, the method automatically prepends http:// before attempting to open it.

    // Using a string
    Playnite.Commands.GlobalCommands.NavigateUrl("https://google.com");
    
    // Using a Uri
    Playnite.Commands.GlobalCommands.NavigateUrl(new Uri("https://playnite.link"));
  6. Navigate to a directory

    master

    Use NavigateDirectoryCommand to open a specific folder in the system's file explorer.

    The command behavior depends on the AppSettings.DirectoryOpenCommand configuration:

    1. Custom Command: If AppSettings.DirectoryOpenCommand is configured, it executes that command, replacing the {Dir} placeholder with the target path.
    2. Default Behavior: If no custom command is configured, it uses Explorer.OpenDirectory(path) to open the folder using the system default.

    Note: If the custom command fails, the system will attempt to fall back to the default Process.Start(path).

    // Triggering the command with a path string
    Playnite.Commands.GlobalCommands.NavigateDirectoryCommand.Execute("C:\\Games");