Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide description of difference between ROM dump options. #227

Open
RokeJulianLockhart opened this issue Sep 17, 2023 · 7 comments
Open

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Sep 17, 2023

The options are

  1. All
  2. All (Trimmed ROM)
  3. ROM
  4. ROM (Trimmed)
  5. Save
  6. Metadata

Luckily, https://dsi.cfw.guide/dumping-game-cards.html#section-ii-nintendo-dsi-instructions

The "Trimmed" options for the ROM will dump a smaller file that can save SD card space, however they won't work for most patches such as ROM hacks

explains when not to create a trimmed ROM dump, but nothing online appears to describe what the differences between these options are, and https://github.com/DS-Homebrew/GodMode9i/blob/1f9cf753c99ad37daff95bc4768420e1a659858f/README.md#features certainly doesn't either.

@Masamune3210
Copy link

It just trims sections of 00's or FF's out of the end of sections, usually the end of the file. The reason it doesn't end well with patches is twofold, one because most patchers will check the base rom and make sure it adheres to an expected hash, refusing to go through with the patch if it fails. The other is the patches expect whatever they used as a base, applying them to anything else isn't usually going to get the patch to line up correctly with what its trying to patch in the file, causing corruption instead of the intended effect.

@RokeJulianLockhart
Copy link
Author

It just trims sections

Which option does? There are 6, @Masamune3210.

@Masamune3210
Copy link

.....the ones that, in fact, have the word trimmed in them?

@RokeJulianLockhart
Copy link
Author

However, what would then be the difference between

All (Trimmed)

and

ROM (Trimmed)

I don't believe that this is explained anywhere, nor the difference between merely

All

and

ROM

or

Save

and

Metadata

@Peter0x44
Copy link
Contributor

@RokeJulianLockhart

enum DumpOption {
        none = 0, 
        rom = 1, 
        romTrimmed = 2, 
        save = 4, 
        metadata = 8, 
        ndsSave = 16,
        all = rom | save | metadata,
        allTrimmed = romTrimmed | save | metadata
};

allTrimmed just means dump a trimmed rom, and the save, and the metadata, all in one operation
there is no difference in the rom

@RokeJulianLockhart
Copy link
Author

Thanks for the answers. Per the issue, I'm reiterating that the software itself should explain this somewhere in its GUI.

@Peter0x44
Copy link
Contributor

I don't know how it should be worded or where to put it. I think a PR or constructive suggestion of some kind would be welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants