This repository was archived by the owner on Jun 15, 2026. It is now read-only.
Handling of NGP ROM name #708
ickaze
started this conversation in
Coding Corner
Replies: 3 comments 2 replies
|
In fact, this sounds logical here. Cotton is maybe the first cart to have this character in header... |
0 replies
|
Issue confirmed, and fix pushed ;) Thank you ! |
0 replies
|
@ickaze is your Cotton cartridge an original one ? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When I tried to read the Japanese version of the NGP cotton, the ROM name was 'COTTON-NGP/C' and it displayed 'Can't create file' and could not be read because there was a '/' in the file name that could not be used.
Therefore, I recommend the following response to replace '/' with '_' when reading the ROM name.
// get app name
for (uint32_t i = 0; i < 17; i++)
{
romName[i] = readByte_NGP(0x24 + i);
if( romName[i] == '/' )
romName[i] = '_';
}
All reactions