Disable frame duplication by default

It breaks newer PCSX rearmed versions by pushing dozen of frames in bursts.

To implement a proper support later.
This commit is contained in:
Sergey Stepanov 2024-02-13 18:50:38 +03:00
parent e2226e7492
commit ce7aa1be62
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -713,8 +713,9 @@ func coreEnvironment(cmd C.unsigned, data unsafe.Pointer) C.bool {
setRotation((*(*uint)(data) % 4) * 90)
return true
case C.RETRO_ENVIRONMENT_GET_CAN_DUPE:
*(*C.bool)(data) = C.bool(true)
return true
// !to implement frame dup (nil) some time later
*(*C.bool)(data) = C.bool(false)
return false
case C.RETRO_ENVIRONMENT_GET_USERNAME:
*(**C.char)(data) = Nan0.cUserName
return true