[XAM/User] Only add arcade games to profile if license_mask is set
This commit is contained in:
parent
3319bb8c14
commit
50fede65cf
|
@ -19,13 +19,15 @@
|
||||||
#include "xenia/kernel/util/shim_utils.h"
|
#include "xenia/kernel/util/shim_utils.h"
|
||||||
#include "xenia/kernel/xam/user_profile.h"
|
#include "xenia/kernel/xam/user_profile.h"
|
||||||
|
|
||||||
namespace xe {
|
DECLARE_int32(license_mask);
|
||||||
namespace kernel {
|
|
||||||
namespace xam {
|
|
||||||
|
|
||||||
DEFINE_string(profile_directory, "Content\\Profile\\",
|
DEFINE_string(profile_directory, "Content\\Profile\\",
|
||||||
"The directory to store profile data inside", "Kernel");
|
"The directory to store profile data inside", "Kernel");
|
||||||
|
|
||||||
|
namespace xe {
|
||||||
|
namespace kernel {
|
||||||
|
namespace xam {
|
||||||
|
|
||||||
std::string X_XAMACCOUNTINFO::GetGamertagString() const {
|
std::string X_XAMACCOUNTINFO::GetGamertagString() const {
|
||||||
return xe::to_string(std::wstring(gamertag));
|
return xe::to_string(std::wstring(gamertag));
|
||||||
}
|
}
|
||||||
|
@ -280,7 +282,11 @@ xdbf::GpdFile* UserProfile::SetTitleSpaData(const xdbf::SpaFile& spa_data) {
|
||||||
(uint32_t)xdbf::X_XDBF_XTHD_DATA::Flags::kNeverIncludeInProfile) {
|
(uint32_t)xdbf::X_XDBF_XTHD_DATA::Flags::kNeverIncludeInProfile) {
|
||||||
title_included = false;
|
title_included = false;
|
||||||
}
|
}
|
||||||
// TODO: set title_included if 'owned' (license_mask check?)
|
|
||||||
|
// If arcade game, only include if license_mask is set
|
||||||
|
if ((title_data.title_id >> 16) == 0x5841) {
|
||||||
|
title_included = cvars::license_mask != 0;
|
||||||
|
}
|
||||||
|
|
||||||
xdbf::TitlePlayed title_info;
|
xdbf::TitlePlayed title_info;
|
||||||
auto gpd = title_gpds_.find(title_data.title_id);
|
auto gpd = title_gpds_.find(title_data.title_id);
|
||||||
|
|
Loading…
Reference in New Issue