Compare commits

..

6 Commits

Author SHA1 Message Date
niansa 21cd8db39d Merge branch 'niansa-master-patch-41092' into 'master'
Fixed link in CONTRIBUTING.md

See merge request suyu2/suyu!6
2024-03-05 22:25:54 +00:00
Crimson Hawk 978297fc81 Merge branch 'fix-compile-ubuntu-22.04' into 'master'
Fix Linux compile

See merge request suyu2/suyu!9
2024-03-05 22:25:39 +00:00
Crimson Hawk 5382be9787 Merge branch 'zqpvr-master-patch-32885' into 'master'
Update README.md

See merge request suyu2/suyu!14
2024-03-05 22:23:29 +00:00
zqpvr f7c0931e3c Update README.md 2024-03-05 18:06:23 +00:00
Andrea V 183ffc943f Merge remote-tracking branch 'origin/master' into fix-compile-ubuntu-22.04 2024-03-05 16:00:36 +01:00
Andrea V ebe9d3b0a2 Introduced default constructors to fix compile 2024-03-05 15:57:05 +01:00
4 changed files with 15 additions and 5 deletions

View File

@ -18,7 +18,7 @@ This repo is created based on yuzu EA 4176. Please contribute
<br> <br>
</h1> </h1>
<h4 align="center"><b>suyu</b>, prounced "sue-you" is the afterlife the world's most popular, open-source, Nintendo Switch emulator — started by the creators of <a href="https://citra-emu.org" target="_blank">Citra</a>. <h4 align="center"><b>suyu</b>, pronounced "sue-you" is the afterlife the world's most popular, open-source, Nintendo Switch emulator — started by the creators of <a href="https://citra-emu.org" target="_blank">Citra</a>.
<br> <br>
It is written in C++ with portability in mind, and we actively maintain builds for Windows, Linux and Android. It is written in C++ with portability in mind, and we actively maintain builds for Windows, Linux and Android.
</h4> </h4>

View File

@ -12,8 +12,10 @@ namespace Service {
// clang-format off // clang-format off
template <typename T> template <typename T>
struct AutoOut { class AutoOut {
T raw; public:
T raw;
AutoOut() : raw() {}
}; };
template <typename T> template <typename T>

View File

@ -401,6 +401,10 @@ static_assert(sizeof(AccountNotificationSettings) == 0x18,
/// This is nn::settings::factory::BatteryLot /// This is nn::settings::factory::BatteryLot
struct BatteryLot { struct BatteryLot {
std::array<char, 0x18> lot_number; std::array<char, 0x18> lot_number;
BatteryLot() = default;
BatteryLot(const char* str) {
std::copy(str, str + std::min(sizeof(lot_number), strlen(str)), lot_number.begin());
}
}; };
static_assert(sizeof(BatteryLot) == 0x18, "BatteryLot is an invalid size"); static_assert(sizeof(BatteryLot) == 0x18, "BatteryLot is an invalid size");
@ -477,6 +481,10 @@ static_assert(sizeof(NotificationSettings) == 0x18, "NotificationSettings is an
/// This is nn::settings::factory::SerialNumber /// This is nn::settings::factory::SerialNumber
struct SerialNumber { struct SerialNumber {
std::array<char, 0x18> serial_number; std::array<char, 0x18> serial_number;
SerialNumber() = default;
SerialNumber(const char* str) {
std::copy(str, str + std::min(sizeof(serial_number), strlen(str)), serial_number.begin());
}
}; };
static_assert(sizeof(SerialNumber) == 0x18, "SerialNumber is an invalid size"); static_assert(sizeof(SerialNumber) == 0x18, "SerialNumber is an invalid size");

View File

@ -932,14 +932,14 @@ Result ISystemSettingsServer::SetPrimaryAlbumStorage(PrimaryAlbumStorage primary
Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) { Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) {
LOG_INFO(Service_SET, "called"); LOG_INFO(Service_SET, "called");
*out_battery_lot = {"YUZU0EMULATOR14022024"}; *out_battery_lot = BatteryLot("YUZU0EMULATOR14022024");
R_SUCCEED(); R_SUCCEED();
} }
Result ISystemSettingsServer::GetSerialNumber(Out<SerialNumber> out_console_serial) { Result ISystemSettingsServer::GetSerialNumber(Out<SerialNumber> out_console_serial) {
LOG_INFO(Service_SET, "called"); LOG_INFO(Service_SET, "called");
*out_console_serial = {"YUZ10000000001"}; *out_console_serial = SerialNumber("YUZ10000000001");
R_SUCCEED(); R_SUCCEED();
} }