File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ bool retro_load_game(const struct retro_game_info *info)
634634
635635 snprintf (retro_game_path, sizeof (retro_game_path), " %s" , info->path );
636636
637- struct retro_memory_descriptor descs[5 ];
637+ struct retro_memory_descriptor descs[7 ];
638638
639639 memset (descs, 0 , sizeof (descs));
640640
@@ -658,6 +658,14 @@ bool retro_load_game(const struct retro_game_info *info)
658658 descs[4 ].ptr = core->GetCartridge ()->GetROM ();
659659 descs[4 ].start = 0x8000 ;
660660 descs[4 ].len = 0x8000 ;
661+ // SGM LOWER
662+ descs[5 ].ptr = core->GetMemory ()->GetSGMRam ();
663+ descs[5 ].start = 0x010000 ;
664+ descs[5 ].len = 0x2000 ;
665+ // SGM UPPER
666+ descs[6 ].ptr = core->GetMemory ()->GetSGMRam () + 0x2000 ;
667+ descs[6 ].start = 0x012000 ;
668+ descs[6 ].len = 0x6000 ;
661669
662670 struct retro_memory_map mmaps;
663671 mmaps.descriptors = descs;
You can’t perform that action at this time.
0 commit comments