diff --git a/src/xenia/kernel/user_profile.cc b/src/xenia/kernel/user_profile.cc index 9397767e0..9c9a3cfd4 100644 --- a/src/xenia/kernel/user_profile.cc +++ b/src/xenia/kernel/user_profile.cc @@ -17,6 +17,7 @@ UserProfile::UserProfile() { name_ = "User"; // http://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 // XPROFILE_GAMER_YAXIS_INVERSION AddSetting(std::make_unique(0x10040002, 0)); // XPROFILE_OPTION_CONTROLLER_VIBRATION @@ -45,6 +46,10 @@ UserProfile::UserProfile() { AddSetting(std::make_unique(0x10040015, 0)); // XPROFILE_GAMER_CONTROL_SENSITIVITY AddSetting(std::make_unique(0x10040018, 0)); + // Preferred color 1 + AddSetting(std::make_unique(0x1004001D, 0xFFFF0000u)); + // Preferred color 2 + AddSetting(std::make_unique(0x1004001E, 0xFF00FF00u)); // XPROFILE_GAMER_ACTION_AUTO_AIM AddSetting(std::make_unique(0x10040022, 1)); // XPROFILE_GAMER_ACTION_AUTO_CENTER @@ -66,7 +71,8 @@ UserProfile::UserProfile() { // If we set this, games will try to get it. // XPROFILE_GAMERCARD_PICTURE_KEY - AddSetting(std::make_unique(0x4064000F, L"gamercard_picture_key")); + AddSetting( + std::make_unique(0x4064000F, L"gamercard_picture_key")); std::vector zeros; zeros.resize(1000); diff --git a/src/xenia/kernel/xam_user.cc b/src/xenia/kernel/xam_user.cc index f77cdcd5b..4b34e5bad 100644 --- a/src/xenia/kernel/xam_user.cc +++ b/src/xenia/kernel/xam_user.cc @@ -130,6 +130,7 @@ SHIM_CALL XamUserReadProfileSettings_shim(PPCContext* ppc_state, } const auto& user_profile = state->user_profile(); + // First call asks for size (fill buffer_size_ptr). // Second call asks for buffer contents with that size.