Skip to content

Commit

Permalink
Fix new genesis-plus-gx not loading (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar authored Jan 14, 2025
1 parent adee53e commit 6c6da40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libretro/libretro.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,9 @@ type DiskControlCallback struct {

// SetDiskControlCallback sets an interface which frontend can use to eject and insert disk images
func (core *Core) SetDiskControlCallback(data unsafe.Pointer) {
if data == nil {
return
}
c := *(*C.struct_retro_disk_control_callback)(data)
dcc := &DiskControlCallback{}
dcc.SetEjectState = func(state bool) {
Expand Down

0 comments on commit 6c6da40

Please sign in to comment.