From 1a080c3029e3443b7a22dde9a19715dfd544f0a6 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 10 Jul 2017 22:44:26 +0200 Subject: [PATCH] Replaces spaces -> '_' in cart names --- source/gamecart/gamecart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gamecart/gamecart.c b/source/gamecart/gamecart.c index 3c5121d..24bc5e0 100644 --- a/source/gamecart/gamecart.c +++ b/source/gamecart/gamecart.c @@ -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; }