mirror of https://git.suyu.dev/suyu/suyu
Compare commits
10 Commits
1f28cf4053
...
e554fddcd1
Author | SHA1 | Date |
---|---|---|
niansa | e554fddcd1 | |
Crimson Hawk | 6e1a5b35ac | |
Crimson Hawk | 5fb6db78bc | |
Crimson Hawk | 978297fc81 | |
Crimson Hawk | 5382be9787 | |
zqpvr | f7c0931e3c | |
Andrea V | 183ffc943f | |
Andrea V | ebe9d3b0a2 | |
zqpvr | a154a5c4bf | |
niansa | 4d3d83e928 |
|
@ -3,4 +3,4 @@ SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
|||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
-->
|
||||
|
||||
**The Contributor's Guide has moved to [the yuzu wiki](https://github.com/yuzu-emu/yuzu/wiki/Contributing).**
|
||||
**The Contributor's Guide has moved to [the yuzu wiki](https://gitlab.com/suyu2/suyu/-/wikis/Contributing).**
|
||||
|
|
|
@ -3,7 +3,7 @@ SPDX-FileCopyrightText: 2024 suyu emulator project
|
|||
SPDX-License-Identifier: GPL v3
|
||||
-->
|
||||
|
||||
<h4>This project DOES NOT suppot piracy, you are required to source your own games and keys, we make no money off this project (mainly so that Nintendon't sue us lol)</h4>
|
||||
<h4>This project DOES NOT suppot piracy, you are required to source your own games and keys, we make no money off this project (mainly so that Nintendo won't sue us lol)</h4>
|
||||
|
||||
|
||||
We are in great need of developers, join our discord server at <a href="https://discord.gg/2gQRBp44KT">https://discord.gg/2gQRBp44KT</a>
|
||||
|
@ -18,7 +18,7 @@ This repo is created based on yuzu EA 4176. Please contribute
|
|||
<br>
|
||||
</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>
|
||||
It is written in C++ with portability in mind, and we actively maintain builds for Windows, Linux and Android.
|
||||
</h4>
|
||||
|
|
|
@ -12,8 +12,10 @@ namespace Service {
|
|||
|
||||
// clang-format off
|
||||
template <typename T>
|
||||
struct AutoOut {
|
||||
class AutoOut {
|
||||
public:
|
||||
T raw;
|
||||
AutoOut() : raw() {}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
|
@ -401,6 +401,10 @@ static_assert(sizeof(AccountNotificationSettings) == 0x18,
|
|||
/// This is nn::settings::factory::BatteryLot
|
||||
struct BatteryLot {
|
||||
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");
|
||||
|
||||
|
@ -477,6 +481,10 @@ static_assert(sizeof(NotificationSettings) == 0x18, "NotificationSettings is an
|
|||
/// This is nn::settings::factory::SerialNumber
|
||||
struct SerialNumber {
|
||||
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");
|
||||
|
||||
|
|
|
@ -932,14 +932,14 @@ Result ISystemSettingsServer::SetPrimaryAlbumStorage(PrimaryAlbumStorage primary
|
|||
Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) {
|
||||
LOG_INFO(Service_SET, "called");
|
||||
|
||||
*out_battery_lot = {"YUZU0EMULATOR14022024"};
|
||||
*out_battery_lot = BatteryLot("YUZU0EMULATOR14022024");
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result ISystemSettingsServer::GetSerialNumber(Out<SerialNumber> out_console_serial) {
|
||||
LOG_INFO(Service_SET, "called");
|
||||
|
||||
*out_console_serial = {"YUZ10000000001"};
|
||||
*out_console_serial = SerialNumber("YUZ10000000001");
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue