Skip to content

Commit 6c6da40

Browse files
authored
Fix new genesis-plus-gx not loading (#548)
1 parent adee53e commit 6c6da40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libretro/libretro.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,9 @@ type DiskControlCallback struct {
924924

925925
// SetDiskControlCallback sets an interface which frontend can use to eject and insert disk images
926926
func (core *Core) SetDiskControlCallback(data unsafe.Pointer) {
927+
if data == nil {
928+
return
929+
}
927930
c := *(*C.struct_retro_disk_control_callback)(data)
928931
dcc := &DiskControlCallback{}
929932
dcc.SetEjectState = func(state bool) {

0 commit comments

Comments
 (0)