Some user profile settings.

This commit is contained in:
Ben Vanik 2015-01-05 22:11:26 -08:00
parent 4aa98ae1e9
commit 9e65e35a09
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ UserProfile::UserProfile() {
name_ = "User"; name_ = "User";
// http://cs.rin.ru/forum/viewtopic.php?f=38&t=60668&hilit=gfwl+live&start=195 // 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 // XPROFILE_GAMER_YAXIS_INVERSION
AddSetting(std::make_unique<Int32Setting>(0x10040002, 0)); AddSetting(std::make_unique<Int32Setting>(0x10040002, 0));
// XPROFILE_OPTION_CONTROLLER_VIBRATION // XPROFILE_OPTION_CONTROLLER_VIBRATION
@ -45,6 +46,10 @@ UserProfile::UserProfile() {
AddSetting(std::make_unique<Int32Setting>(0x10040015, 0)); AddSetting(std::make_unique<Int32Setting>(0x10040015, 0));
// XPROFILE_GAMER_CONTROL_SENSITIVITY // XPROFILE_GAMER_CONTROL_SENSITIVITY
AddSetting(std::make_unique<Int32Setting>(0x10040018, 0)); AddSetting(std::make_unique<Int32Setting>(0x10040018, 0));
// Preferred color 1
AddSetting(std::make_unique<Int32Setting>(0x1004001D, 0xFFFF0000u));
// Preferred color 2
AddSetting(std::make_unique<Int32Setting>(0x1004001E, 0xFF00FF00u));
// XPROFILE_GAMER_ACTION_AUTO_AIM // XPROFILE_GAMER_ACTION_AUTO_AIM
AddSetting(std::make_unique<Int32Setting>(0x10040022, 1)); AddSetting(std::make_unique<Int32Setting>(0x10040022, 1));
// XPROFILE_GAMER_ACTION_AUTO_CENTER // XPROFILE_GAMER_ACTION_AUTO_CENTER
@ -66,7 +71,8 @@ UserProfile::UserProfile() {
// If we set this, games will try to get it. // If we set this, games will try to get it.
// XPROFILE_GAMERCARD_PICTURE_KEY // XPROFILE_GAMERCARD_PICTURE_KEY
AddSetting(std::make_unique<UnicodeSetting>(0x4064000F, L"gamercard_picture_key")); AddSetting(
std::make_unique<UnicodeSetting>(0x4064000F, L"gamercard_picture_key"));
std::vector<uint8_t> zeros; std::vector<uint8_t> zeros;
zeros.resize(1000); zeros.resize(1000);

View File

@ -130,6 +130,7 @@ SHIM_CALL XamUserReadProfileSettings_shim(PPCContext* ppc_state,
} }
const auto& user_profile = state->user_profile(); const auto& user_profile = state->user_profile();
// First call asks for size (fill buffer_size_ptr). // First call asks for size (fill buffer_size_ptr).
// Second call asks for buffer contents with that size. // Second call asks for buffer contents with that size.