Skip to content

SNES ROM Loader does not detect valid ROM #5

Description

@ran-j

I was trying to to use this plugin with TENCHI MUYO! 1.1 translated to English.

The plugin is installed correctly and the SNES ROM Loader appears in Ghidra's loader list. But when I importing the ROM, Ghidra defaults to Raw Binary because the SNES loader does not auto-detect the file as a supported SNES ROM.

After checking the ROM header manually, the ROM appears to be:

File size:        0x300200 bytes
SMC header:       0x200 bytes
Actual ROM size:  0x300000 bytes / 3 MiB / 24 Mbit
Internal header:  0x101C0 in the file
Title:            TENCHI MUYO! 1.1
Map mode:         0x31
Mapping:          HiROM / FastROM
Checksum:         0xCE1A
Complement:       0x31E5
Reset vector:     0x8000

The declare ROM size byte = 0x0B that means 2 MiB. But the actual file size is 3 MiB. Since this is a translated from japanese idk if this messup the ROM size.

Checking a bit of SnesRomHeaderDetector it seens that it will reject the room if

declaredRomSize < romSize

That seens to be my case:

declaredRomSize = 0x200000
romSize         = 0x300000

But again is just a theory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions