Added support for local multiplayer

This commit is contained in:
Gliniak
2022-01-04 17:44:58 +01:00
parent 7977d7ab98
commit 17b30be56a
9 changed files with 132 additions and 56 deletions

View File

@@ -19,12 +19,15 @@ namespace xe {
namespace kernel {
namespace xam {
UserProfile::UserProfile() {
UserProfile::UserProfile(uint8_t index) {
// 58410A1F checks the user XUID against a mask of 0x00C0000000000000 (3<<54),
// if non-zero, it prevents the user from playing the game.
// "You do not have permissions to perform this operation."
xuid_ = 0xB13EBABEBABEBABE;
xuid_ = 0xB13EBABEBABEBABE + index;
name_ = "User";
if (index) {
name_ = "User_" + std::to_string(index);
}
// https://cs.rin.ru/forum/viewtopic.php?f=38&t=60668&hilit=gfwl+live&start=195
// https://github.com/arkem/py360/blob/master/py360/constants.py