mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-29 19:22:38 +00:00
Replays: replace slashes in branch name with hyphen
This commit is contained in:
parent
5ed7b13ddb
commit
d457a0b581
1 changed files with 9 additions and 0 deletions
|
|
@ -8159,6 +8159,15 @@ static void P_InitGametype(void)
|
|||
#else
|
||||
strcpy(ver, VERSIONSTRING);
|
||||
#endif
|
||||
// Replace path separators with hyphens
|
||||
{
|
||||
char *p = ver;
|
||||
while ((p = strpbrk(p, "/\\")))
|
||||
{
|
||||
*p = '-';
|
||||
p++;
|
||||
}
|
||||
}
|
||||
sprintf(buf, "%s" PATHSEP "media" PATHSEP "replay" PATHSEP "online" PATHSEP "%s" PATHSEP "%d-%s",
|
||||
srb2home, ver, (int) (time(NULL)), G_BuildMapName(gamemap));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue