mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-26 22:02:15 +00:00
tma: better GetSettingsTask output
This commit is contained in:
parent
61ad4e0991
commit
d1985fe77e
1 changed files with 4 additions and 2 deletions
|
@ -39,8 +39,10 @@ void GetSettingTask::OnReceivePacket(TmaPacket *packet) {
|
||||||
|
|
||||||
void GetSettingTask::OnSendPacket(TmaPacket *packet) {
|
void GetSettingTask::OnSendPacket(TmaPacket *packet) {
|
||||||
packet->Write<u8>((u8)this->succeeded);
|
packet->Write<u8>((u8)this->succeeded);
|
||||||
packet->Write<u32>((u32)this->value_size);
|
if (this->succeeded) {
|
||||||
packet->Write(this->value, this->value_size);
|
packet->Write<u32>((u32)this->value_size);
|
||||||
|
packet->Write(this->value, this->value_size);
|
||||||
|
}
|
||||||
|
|
||||||
this->Complete();
|
this->Complete();
|
||||||
}
|
}
|
Loading…
Reference in a new issue