forked from Mirror/GodMode9
Fix #702
This commit is contained in:
parent
7e01954e48
commit
8680358aa1
@ -2982,7 +2982,7 @@ u32 DumpTicketForGameFile(const char* path, bool force_legit) {
|
|||||||
|
|
||||||
// replace extension
|
// replace extension
|
||||||
char* dot = strrchr(dest, '.');
|
char* dot = strrchr(dest, '.');
|
||||||
if (!dot || (dot < strrchr(dest, '/')))
|
if (!dot || (strpbrk(dot, "/(){}[]!$#*+-")))
|
||||||
dot = dest + strnlen(dest, 256);
|
dot = dest + strnlen(dest, 256);
|
||||||
snprintf(dot, 16, ".%s", force_legit ? "legit.tik" : "tik");
|
snprintf(dot, 16, ".%s", force_legit ? "legit.tik" : "tik");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user