Skip to content

Commit

Permalink
dce: add stub for open ioctl
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Aug 31, 2024
1 parent ee9dd30 commit c8abd75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rpcsx-os/iodev/dce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ static orbis::ErrorCode dce_ioctl(orbis::File *file, std::uint64_t request,
// ORBIS_LOG_NOTICE("dce: FlipControl", args->id, args->arg2, args->ptr,
// args->size);

if (args->id == 0) {
ORBIS_LOG_NOTICE("dce: FlipControl: open",
args->padding, args->arg2, args->ptr, args->size,
args->arg5, args->arg6);
ORBIS_RET_ON_ERROR(
orbis::uwrite(orbis::ptr<orbis::ulong>(args->arg5 + 0), 1));
return orbis::uwrite(orbis::ptr<orbis::sint>(args->arg5 + 8), 0);
}

if (args->id == 6) { // set flip rate?
ORBIS_LOG_NOTICE("dce: FlipControl: set flip rate", args->arg2, args->ptr,
args->size);
Expand Down

0 comments on commit c8abd75

Please sign in to comment.