aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Mii/DatabaseSessionMetadata.cs
blob: b01295d80ef9abfae2e20fe99e0a718475517e71 (plain) (tree)
1
2
3
4
5
6
7
                                         



                                      
                                     





                                                                                         
                                          






                                                                      
using Ryujinx.HLE.HOS.Services.Mii.Types;

namespace Ryujinx.HLE.HOS.Services.Mii
{
    class DatabaseSessionMetadata
    {
        public uint InterfaceVersion;
        public ulong UpdateCounter;

        public SpecialMiiKeyCode MiiKeyCode { get; private set; }

        public DatabaseSessionMetadata(ulong updateCounter, SpecialMiiKeyCode miiKeyCode)
        {
            InterfaceVersion = 0;
            UpdateCounter = updateCounter;
            MiiKeyCode = miiKeyCode;
        }

        public bool IsInterfaceVersionSupported(uint interfaceVersion)
        {
            return InterfaceVersion >= interfaceVersion;
        }
    }
}