Handling of NGP ROM name #708
Replies: 3 comments 2 replies
-
In fact, this sounds logical here. Cotton is maybe the first cart to have this character in header... |
Beta Was this translation helpful? Give feedback.
-
Issue confirmed, and fix pushed ;) Thank you ! |
Beta Was this translation helpful? Give feedback.
-
@ickaze is your Cotton cartridge an original one ? |
Beta Was this translation helpful? Give feedback.
-
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] = '_';
}
Beta Was this translation helpful? Give feedback.
All reactions