From 0a6ed96533092a5e3368587a3e91c9ed87536624 Mon Sep 17 00:00:00 2001 From: Barinade Date: Sun, 22 Sep 2024 23:07:46 -0500 Subject: [PATCH] put chartkey on clipboard when you press f3 f8 q --- src/Etterna/Screen/Others/ScreenDebugOverlay.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Etterna/Screen/Others/ScreenDebugOverlay.cpp b/src/Etterna/Screen/Others/ScreenDebugOverlay.cpp index 2a0804f0ba..49988e4536 100644 --- a/src/Etterna/Screen/Others/ScreenDebugOverlay.cpp +++ b/src/Etterna/Screen/Others/ScreenDebugOverlay.cpp @@ -1585,11 +1585,7 @@ class DebugLineChartFolder: public IDebugLine bool ForceOffAfterUse() const override { Song* s = GAMESTATE->m_pCurSong; if (s != nullptr) { - auto d = s->GetSongDir(); - auto b = SONGMAN->WasLoadedFromAdditionalSongs(s); - auto p = FILEMAN->ResolveSongFolder(d, b); - - return Core::Platform::openFolder(p); + return SONGMAN->OpenSongFolder(s); } return false; } @@ -1610,8 +1606,11 @@ class DebugLineChartkey : public IDebugLine std::string GetDisplayValue() override { auto c = GAMESTATE->m_pCurSteps; - if (c != nullptr) - return c->GetChartKey(); + if (c != nullptr) { + const auto& ck = c->GetChartKey(); + Core::Platform::setClipboardText(ck); + return ck; + } return std::string("None"); } std::string GetPageName() const override { return "Misc"; }