mirror of
https://github.com/XorTroll/uLaunch
synced 2024-11-23 04:13:18 +00:00
16 lines
No EOL
389 B
C++
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;
|
|
}
|
|
} |