diff --git a/Ryujinx.Core/OsHle/Services/Am/IHomeMenuFunctions.cs b/Ryujinx.Core/OsHle/Services/Am/IHomeMenuFunctions.cs index f48ac3be61..0295a10384 100644 --- a/Ryujinx.Core/OsHle/Services/Am/IHomeMenuFunctions.cs +++ b/Ryujinx.Core/OsHle/Services/Am/IHomeMenuFunctions.cs @@ -1,37 +1,36 @@ using Ryujinx.Core.OsHle.Handles; -using Ryujinx.Core.OsHle.Ipc; -using System.Collections.Generic; - -namespace Ryujinx.Core.OsHle.Services.Am -{ - class IHomeMenuFunctions : IpcService - { - private Dictionary m_Commands; - - public override IReadOnlyDictionary Commands => m_Commands; - - private KEvent ChannelEvent; - - public IHomeMenuFunctions() - { - m_Commands = new Dictionary() - { - { 10, RequestToGetForeground }, - { 21, GetPopFromGeneralChannelEvent } +using Ryujinx.Core.OsHle.Ipc; +using System.Collections.Generic; + +namespace Ryujinx.Core.OsHle.Services.Am +{ + class IHomeMenuFunctions : IpcService + { + private Dictionary m_Commands; + + public override IReadOnlyDictionary Commands => m_Commands; + + private KEvent ChannelEvent; + + public IHomeMenuFunctions() + { + m_Commands = new Dictionary() + { + { 10, RequestToGetForeground }, + { 21, GetPopFromGeneralChannelEvent } }; ChannelEvent = new KEvent(); - //TODO: We shouldn't be signaling this here. - ChannelEvent.WaitEvent.Set(); - } - + //ToDo: Signal this Event somewhere in future. + } + public long RequestToGetForeground(ServiceCtx Context) { Logging.Stub(LogClass.ServiceAm, "Stubbed"); return 0; - } - + } + public long GetPopFromGeneralChannelEvent(ServiceCtx Context) { int Handle = Context.Process.HandleTable.OpenHandle(ChannelEvent); @@ -41,6 +40,6 @@ namespace Ryujinx.Core.OsHle.Services.Am Logging.Stub(LogClass.ServiceAm, "Stubbed"); return 0; - } - } -} \ No newline at end of file + } + } +}