mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Client: Omit '.demo' extension from the video file name
This commit is contained in:
parent
c172b369b2
commit
7802dc2760
|
@ -1314,7 +1314,9 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
if(DoButton_Menu(&s_RenderButton, Localize("Render"), 0, &RenderRect) || (Input()->KeyPress(KEY_R) && m_pClient->m_GameConsole.IsClosed()))
|
||||
{
|
||||
m_Popup = POPUP_RENDER_DEMO;
|
||||
m_DemoRenderInput.Set(m_vDemos[m_DemolistSelectedIndex].m_aFilename);
|
||||
char aNameWithoutExt[IO_MAX_PATH_LENGTH];
|
||||
fs_split_file_extension(m_vDemos[m_DemolistSelectedIndex].m_aFilename, aNameWithoutExt, sizeof(aNameWithoutExt));
|
||||
m_DemoRenderInput.Set(aNameWithoutExt);
|
||||
UI()->SetActiveItem(&m_DemoRenderInput);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue