From d5fc613b8b9e50b74f404ad1a37d58448ba0fd5d Mon Sep 17 00:00:00 2001 From: def Date: Sun, 4 Oct 2020 18:24:07 +0200 Subject: [PATCH] Revert "Show File button in demo player" As reported by Soreu, doesn't work on Windows (Can't open file warning pops up) This reverts commit 8efff70d884b819a1a8d1c8a445d56c9ce2d1f5e. --- src/game/client/components/menus_demo.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index a5deab688..ba976d531 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -463,23 +463,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) DemolistOnUpdate(false); } - // file button - ButtonBar.VSplitRight(Margins, &ButtonBar, 0); - ButtonBar.VSplitRight(ButtonbarHeight * 3, &ButtonBar, &Button); - static int s_FileButton = 0; - if(DoButton_DemoPlayer(&s_FileButton, Localize("File"), 0, &Button)) - { - char aBuf[MAX_PATH_LENGTH]; - char aBufFull[MAX_PATH_LENGTH + 7]; - str_format(aBufFull, sizeof(aBufFull), "%s/%s", m_aCurrentDemoFolder, m_lDemos[m_DemolistSelectedIndex].m_aFilename); - Storage()->GetCompletePath(m_lDemos[m_DemolistSelectedIndex].m_StorageType, aBufFull, aBuf, sizeof(aBuf)); - str_format(aBufFull, sizeof(aBufFull), "file://%s", aBuf); - if(!open_link(aBufFull)) - { - dbg_msg("menus", "couldn't open link"); - } - } - // toggle keyboard shortcuts button ButtonBar.VSplitRight(Margins * 3, &ButtonBar, 0); ButtonBar.VSplitRight(ButtonbarHeight, &ButtonBar, &Button);