mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 02:01:15 +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
1ab5273400
commit
602701d6dd
1 changed files with 6 additions and 1 deletions
|
@ -1452,6 +1452,11 @@ static void Command_Playdemo_f(void)
|
|||
|
||||
CONS_Printf(M_GetText("Playing back demo '%s'.\n"), 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue