mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-09 10:10:01 +01:00
dce: fix buffer in use usage
This commit is contained in:
parent
6455fe6f5f
commit
700e75c5ab
|
|
@ -251,12 +251,12 @@ static orbis::ErrorCode dce_ioctl(orbis::File *file, std::uint64_t request,
|
|||
*(std::uint64_t *)args->ptr = kDceControlMemoryOffset; // dev offset
|
||||
*(std::uint64_t *)args->size = kDceControlMemorySize; // size
|
||||
} else if (args->id == 31) {
|
||||
// if ((std::uint64_t)args->ptr == 0xc) {
|
||||
// rx::bridge.header->bufferInUseAddress = args->size;
|
||||
// } else {
|
||||
// ORBIS_LOG_ERROR("buffer in use", args->ptr, args->size);
|
||||
// thread->where();
|
||||
// }
|
||||
if ((std::uint64_t)args->ptr == 0xc) {
|
||||
rx::bridge.header->bufferInUseAddress = args->size;
|
||||
} else {
|
||||
ORBIS_LOG_ERROR("buffer in use", args->ptr, args->size);
|
||||
thread->where();
|
||||
}
|
||||
// std::abort();
|
||||
return {};
|
||||
} else if (args->id == 33) { // adjust color
|
||||
|
|
|
|||
Loading…
Reference in a new issue