mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +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
|
#else
|
||||||
strcpy(ver, VERSIONSTRING);
|
strcpy(ver, VERSIONSTRING);
|
||||||
#endif
|
#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",
|
sprintf(buf, "%s" PATHSEP "media" PATHSEP "replay" PATHSEP "online" PATHSEP "%s" PATHSEP "%d-%s",
|
||||||
srb2home, ver, (int) (time(NULL)), G_BuildMapName(gamemap));
|
srb2home, ver, (int) (time(NULL)), G_BuildMapName(gamemap));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue