Skip to content

Commit

Permalink
[Kernel] Set default license mask when available in XamContentCreateEx.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbed committed Nov 20, 2018
1 parent ff0b8a6 commit de34bd8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xenia/kernel/xam/xam_content.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
lpdword_t license_mask_ptr,
dword_t cache_size, qword_t content_size,
lpvoid_t overlapped_ptr) {
assert_null(license_mask_ptr);

X_RESULT result = X_ERROR_INVALID_PARAMETER;
auto content_data = XCONTENT_DATA((uint8_t*)content_data_ptr);

Expand Down Expand Up @@ -256,6 +254,10 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
result = content_manager->OpenContent(root_name.value(), content_data);
}

if (license_mask_ptr && XSUCCEEDED(result)) {
*license_mask_ptr = 0;
}

if (overlapped_ptr) {
kernel_state()->CompleteOverlappedImmediateEx(overlapped_ptr, result, 0,
disposition);
Expand Down Expand Up @@ -421,8 +423,7 @@ dword_result_t XamContentDelete(dword_t user_index, lpvoid_t content_data_ptr,
DECLARE_XAM_EXPORT1(XamContentDelete, kContent, kImplemented);

void RegisterContentExports(xe::cpu::ExportResolver* export_resolver,
KernelState* kernel_state) {
}
KernelState* kernel_state) {}

} // namespace xam
} // namespace kernel
Expand Down

0 comments on commit de34bd8

Please sign in to comment.