mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Replace all invalid characters when dumping DS ROM
Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
This commit is contained in:
parent
49c40dbf53
commit
7eef467119
@ -367,9 +367,18 @@ void ndsCardDump(void) {
|
||||
if (gameTitle[0] == 0 || gameTitle[0] == 0x2E || gameTitle[0] == 0xFF) {
|
||||
sprintf(gameTitle, "NO-TITLE");
|
||||
} else {
|
||||
for (int i = 0; i < 13; i++) {
|
||||
if (gameTitle[i] == 0x2F || gameTitle[i] == 0x5C) {
|
||||
gameTitle[i] = '_';
|
||||
for(uint i = 0; i < sizeof(gameTitle); i++) {
|
||||
switch(gameTitle[i]) {
|
||||
case '>':
|
||||
case '<':
|
||||
case ':':
|
||||
case '"':
|
||||
case '/':
|
||||
case '\x5C':
|
||||
case '|':
|
||||
case '?':
|
||||
case '*':
|
||||
gameTitle[i] = '_';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user