From 0a0cd2a8824d7a45d68e2492b6d5e897a6f9f7ea Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 12 Oct 2024 16:54:47 +0200 Subject: [PATCH] [XAM] Fixed license for extracted XBLA games This fixes bug introduced few days ago that prevented XBLA games from going into full game mode. --- src/xenia/kernel/xam/xam_content.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam/xam_content.cc b/src/xenia/kernel/xam/xam_content.cc index 3bf6d2cec..bcf4d4988 100644 --- a/src/xenia/kernel/xam/xam_content.cc +++ b/src/xenia/kernel/xam/xam_content.cc @@ -46,7 +46,10 @@ dword_result_t XamContentGetLicenseMask_entry(lpdword_t mask_ptr, auto run = [mask_ptr](uint32_t& extended_error, uint32_t& length) { X_RESULT result = X_ERROR_FUNCTION_FAILED; - if (kernel_state()->deployment_type_ != XDeploymentType::kOpticalDisc) { + // Remark: This cannot be reflected as on console. Xenia can boot games + // directly and XBLA games can be repacked to ZAR. For these titles we must + // provide some license. Normally it should fail for OpticalDisc type. + if (kernel_state()->deployment_type_ != XDeploymentType::kUnknown) { // Each bit in the mask represents a granted license. Available licenses // seems to vary from game to game, but most appear to use bit 0 to // indicate if the game is purchased or not.