mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 17:19:50 -06:00
misc: move Models & Helpers into Common & Avalonia projects
This commit is contained in:
11
src/Ryujinx/Common/Models/TitleUpdateModel.cs
Normal file
11
src/Ryujinx/Common/Models/TitleUpdateModel.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Ryujinx.Ava.Common.Models
|
||||
{
|
||||
// NOTE: most consuming code relies on this model being value-comparable
|
||||
public record TitleUpdateModel(ulong TitleId, ulong Version, string DisplayVersion, string Path)
|
||||
{
|
||||
public bool IsBundled { get; } = System.IO.Path.GetExtension(Path)?.ToLower() == ".xci";
|
||||
|
||||
public string TitleIdStr => TitleId.ToString("x16");
|
||||
public ulong TitleIdBase => TitleId & ~0x1FFFUL;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user