Skip to content

Commit

Permalink
put chartkey on clipboard when you press f3 f8 q
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Sep 23, 2024
1 parent a024c37 commit 0a6ed96
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Etterna/Screen/Others/ScreenDebugOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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"; }
Expand Down

0 comments on commit 0a6ed96

Please sign in to comment.