UI: Pretty Atmosphère mod names #601

Merged
GreemDev merged 3 commits from feature/ava/ams-mod-pretty-name into master 2025-01-30 23:41:25 +00:00
Showing only changes of commit 52338db1e8 - Show all commits

View File

@ -111,6 +111,18 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
return data; return data;
} }
/// <summary>
/// Gets a name for an available content file based on the Application ID '<paramref name="id"/>'.
/// <br/><br/>
/// For Applications, this returns the localized name of the app found in the file.
/// For DLCs, this returns the name of the file that contains the DLC, minus the file extension.
/// </summary>
/// <param name="id">The Application ID to search for.</param>
/// <remarks>
/// If the provided Application ID does not have a corresponding Application OR DLC file,
/// <paramref name="id"/> formatted as hexadecimal is returned.
/// </remarks>
/// <returns>A formatted Application name, or <paramref name="id"/> as hexadecimal if none is found.</returns>
public string GetNameForApplicationId(ulong id) public string GetNameForApplicationId(ulong id)
{ {
DynamicData.Kernel.Optional<ApplicationData> appData = Applications.Lookup(id); DynamicData.Kernel.Optional<ApplicationData> appData = Applications.Lookup(id);