[XAM] Write stub buffer in XamReadTileToTexture.

[XAM] Write stub texture buffer (white) in XamReadTileToTexture.
This commit is contained in:
gibbed 2021-05-08 11:08:13 -05:00 committed by Rick Gibbed
parent 8d8bab853d
commit 21c28a07f1
1 changed files with 4 additions and 0 deletions

View File

@ -737,6 +737,10 @@ dword_result_t XamReadTileToTexture(dword_t unknown, dword_t title_id,
lpvoid_t buffer_ptr, dword_t stride,
dword_t height, dword_t overlapped_ptr) {
// TODO(gibbed): unknown=0,2,3,9
size_t size = size_t(stride) * size_t(height);
std::memset(buffer_ptr, 0xFF, size);
if (overlapped_ptr) {
kernel_state()->CompleteOverlappedImmediate(overlapped_ptr,
X_ERROR_SUCCESS);