From 8d00abe10fd50645caa1cf845e2ff88f1b7cb3e6 Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 20 Jun 2016 15:45:12 -0500 Subject: [PATCH] 'Unsetting' the title specific user settings. Fixes UnrealEngine-based games try to decompress 3000 null bytes and end up barfing all over the stack instead. --- src/xenia/kernel/xam/user_profile.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/xenia/kernel/xam/user_profile.cc b/src/xenia/kernel/xam/user_profile.cc index b72973b19..9e555405d 100644 --- a/src/xenia/kernel/xam/user_profile.cc +++ b/src/xenia/kernel/xam/user_profile.cc @@ -75,14 +75,12 @@ UserProfile::UserProfile() { AddSetting( std::make_unique(0x4064000F, L"gamercard_picture_key")); - std::vector zeros; - zeros.resize(1000); // XPROFILE_TITLE_SPECIFIC1 - AddSetting(std::make_unique(0x63E83FFF, zeros)); + AddSetting(std::make_unique(0x63E83FFF)); // XPROFILE_TITLE_SPECIFIC2 - AddSetting(std::make_unique(0x63E83FFE, zeros)); + AddSetting(std::make_unique(0x63E83FFE)); // XPROFILE_TITLE_SPECIFIC3 - AddSetting(std::make_unique(0x63E83FFD, zeros)); + AddSetting(std::make_unique(0x63E83FFD)); } void UserProfile::AddSetting(std::unique_ptr setting) {