mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Replaces spaces -> '_' in cart names
This commit is contained in:
parent
cfe68b4ff9
commit
1a080c3029
@ -51,7 +51,7 @@ u32 GetCartName(char* name, CartData* cdata) {
|
||||
snprintf(name, 24, "%.12s_%.6s_%02u", nds->game_title, nds->game_code, nds->rom_version);
|
||||
} else return 1;
|
||||
for (char* c = name; *c != '\0'; c++)
|
||||
if ((*c == ':') || (*c == '*') || (*c == '?') || (*c == '/') || (*c == '\\')) *c = '_';
|
||||
if ((*c == ':') || (*c == '*') || (*c == '?') || (*c == '/') || (*c == '\\') || (*c == ' ')) *c = '_';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user