mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-01 09:27:11 +02:00
misc: move Models & Helpers into Common & Avalonia projects
This commit is contained in:
parent
9baaa2b8f8
commit
6caab1aa37
65 changed files with 141 additions and 146 deletions
12
src/Ryujinx/Common/Models/DownloadableContentModel.cs
Normal file
12
src/Ryujinx/Common/Models/DownloadableContentModel.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
namespace Ryujinx.Ava.Common.Models
|
||||
{
|
||||
// NOTE: most consuming code relies on this model being value-comparable
|
||||
public record DownloadableContentModel(ulong TitleId, string ContainerPath, string FullPath)
|
||||
{
|
||||
public bool IsBundled { get; } = System.IO.Path.GetExtension(ContainerPath)?.ToLower() == ".xci";
|
||||
|
||||
public string FileName => System.IO.Path.GetFileName(ContainerPath);
|
||||
public string TitleIdStr => TitleId.ToString("x16");
|
||||
public ulong TitleIdBase => TitleId & ~0x1FFFUL;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue