uLaunch/SystemAppletQDaemon/Source/ipc/ipc_IDaemonService.cpp
2019-10-11 17:43:17 +02:00

16 lines
No EOL
389 B
C++

#include <ipc/ipc_IDaemonService.hpp>
#include <am/am_QCommunications.hpp>
extern HosMutex latestqlock;
extern am::QMenuMessage latestqmenumsg;
namespace ipc
{
Result IDaemonService::GetLatestMessage(Out<u32> msg)
{
std::scoped_lock lck(latestqlock);
msg.SetValue((u32)latestqmenumsg);
latestqmenumsg = am::QMenuMessage::Invalid;
return 0;
}
}