fatal: update for latest bindings

This commit is contained in:
Michael Scire 2020-04-12 18:30:15 -07:00
parent 16a25309d2
commit 6b3bf10e46
2 changed files with 6 additions and 6 deletions

View file

@ -60,8 +60,8 @@ namespace ams::fatal::srv {
std::memset(this, 0, sizeof(*this));
/* Get information from set. */
setsysGetSerialNumber(this->serial_number);
setsysGetFirmwareVersion(&this->firmware_version);
settings::system::GetSerialNumber(std::addressof(this->serial_number));
settings::system::GetFirmwareVersion(std::addressof(this->firmware_version));
setsysGetQuestFlag(&this->quest_flag);
this->UpdateLanguageCode();

View file

@ -20,8 +20,8 @@ namespace ams::fatal::srv {
class FatalConfig {
private:
char serial_number[0x18];
SetSysFirmwareVersion firmware_version;
settings::system::SerialNumber serial_number;
settings::system::FirmwareVersion firmware_version;
u64 language_code;
u64 quest_reboot_interval_second;
bool transition_to_fatal;
@ -35,11 +35,11 @@ namespace ams::fatal::srv {
public:
FatalConfig();
const char *GetSerialNumber() const {
const settings::system::SerialNumber &GetSerialNumber() const {
return this->serial_number;
}
const SetSysFirmwareVersion &GetFirmwareVersion() const {
const settings::system::FirmwareVersion &GetFirmwareVersion() const {
return this->firmware_version;
}