mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_DoPlayDemo: prepend srb2home to the demo name (if an external file) so that demos in custom home paths can be loaded
This commit is contained in:
parent
26ce50f02c
commit
00fe750722
1 changed files with 6 additions and 1 deletions
|
|
@ -1452,7 +1452,12 @@ static void Command_Playdemo_f(void)
|
||||||
|
|
||||||
CONS_Printf(M_GetText("Playing back demo '%s'.\n"), name);
|
CONS_Printf(M_GetText("Playing back demo '%s'.\n"), name);
|
||||||
|
|
||||||
G_DoPlayDemo(name);
|
// Internal if no extension, external if one exists
|
||||||
|
// If external, convert the file name to a path in SRB2's home directory
|
||||||
|
if (FIL_CheckExtension(name))
|
||||||
|
G_DoPlayDemo(va("%s"PATHSEP"%s", srb2home, name))
|
||||||
|
else
|
||||||
|
G_DoPlayDemo(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Command_Timedemo_f(void)
|
static void Command_Timedemo_f(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue